Skip to content
Snippets Groups Projects
Unverified Commit a30f64ab authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

fix teacher form

parent bc644523
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
</div>
<div class="card-body">
<% teacher_ids = @program.teachers.where.not(id: teacher.id).pluck(:person_id) %>
<%= f.association :person, collection: current_university.people.teachers.where(id: teacher_ids).ordered %>
<%= f.association :person, collection: current_university.people.teachers.where.not(id: teacher_ids).ordered %>
<%= f.input :description, input_html: { rows: 5 } %>
</div>
</div>
......
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