8e04b4f0c9
Extract the add_admin form to its own partial and re-render it when an admin is successfully added.
9 lines
358 B
Text
9 lines
358 B
Text
= render_flash(sticky: true)
|
|
- if @administrateur
|
|
= append_to_element("#procedure-#{@procedure.id}-administrateurs",
|
|
partial: 'administrateur',
|
|
locals: { administrateur: @administrateur })
|
|
= render_to_element("#procedure-#{@procedure.id}-new_administrateur",
|
|
partial: 'add_admin_form',
|
|
outer: true,
|
|
locals: { procedure: @procedure })
|