Skip to content
Snippets Groups Projects
Commit 0923d5c5 authored by pabois's avatar pabois
Browse files

wip #67

parent 8865cd97
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,6 @@ class Admin::Education::SchoolsController < Admin::Education::ApplicationControl
def school_params
params.require(:education_school)
.permit(:university_id, :name, :address, :zipcode, :city, :country, :phone)
.permit(:university_id, :name, :address, :zipcode, :city, :country, :phone, program_ids: [])
end
end
......@@ -4,7 +4,7 @@
<%= f.input :name %>
<%= f.input :phone %>
</div>
<div class="col-md-8">
<div class="col-md-4">
<%= f.input :address %>
<div class="row">
<div class="col-md-4">
......@@ -16,6 +16,11 @@
</div>
<%= f.input :country %>
</div>
<div class="col-md-4">
<%= f.association :programs,
as: :check_boxes,
collection: current_university.education_programs.ordered %>
</div>
</div>
<% content_for :action_bar_right do %>
<%= submit f %>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment