app: remove old Admin::InstructeursController
It was only hosting the deprecated "Instructeurs globally attached to this admin", which wasn't used anywhere in the app anymore.
This commit is contained in:
parent
e87ab1dc40
commit
0f9d7d6b8c
9 changed files with 6 additions and 333 deletions
|
@ -1,4 +0,0 @@
|
|||
.form-group
|
||||
%p.notice
|
||||
= 'Email *'
|
||||
= text_field_tag 'instructeur[email]', nil, class: 'form-control', placeholder: 'ex : laura.azema@exemple.gouv.fr'
|
|
@ -1,22 +0,0 @@
|
|||
- if smart_listing.present?
|
||||
%table.table#liste-instructeur
|
||||
%thead
|
||||
%th#libelle= smart_listing.sortable 'Email', 'email'
|
||||
%th
|
||||
|
||||
- @instructeurs.each do |instructeur|
|
||||
%tr
|
||||
%td{ style: 'padding-top: 11px; font-size: 15px;' }= instructeur.email
|
||||
%td{ style: 'text-align: right;' }
|
||||
.delete.btn.btn-sm.fa.fa-trash
|
||||
|
||||
.confirm
|
||||
= link_to 'Valider', admin_instructeur_path(id: instructeur.id), { method: :delete, class: 'btn btn-sm btn-success' }
|
||||
.cancel.btn.btn-sm.btn-danger.fa.fa-minus{ style: 'top: 0;' }
|
||||
|
||||
= smart_listing.paginate
|
||||
= smart_listing.pagination_per_page_links
|
||||
|
||||
- else
|
||||
%h4.center
|
||||
Aucun instructeur
|
|
@ -1,28 +0,0 @@
|
|||
%h1 Instructeurs disponibles
|
||||
|
||||
%p
|
||||
Cette page vous permet de gérer la liste des instructeurs disponibles pour être affectés à une démarche.
|
||||
|
||||
%p{ style: 'font-style: italic' }
|
||||
N.B. : cette page ne concerne que la liste des personnes disponibles. Si vous souhaitez affecter ou enlever un instructeur d’une démarche particulière,
|
||||
utilisez plutôt la
|
||||
= link_to "page de la démarche", admin_procedures_path
|
||||
concernée.
|
||||
|
||||
.row
|
||||
.col-xs-4
|
||||
|
||||
= smart_listing_render :instructeurs
|
||||
.col-xs-1
|
||||
|
||||
.col-xs-6
|
||||
%h3 Ajouter un instructeur
|
||||
#procedure_new.section.section-label
|
||||
= form_with url: { controller: 'admin/instructeurs', action: :create } do
|
||||
.row
|
||||
.col-xs-5
|
||||
= render partial: 'admin/instructeurs/informations'
|
||||
.col-xs-2
|
||||
%br
|
||||
%br
|
||||
= submit_tag 'Ajouter', class: 'btn btn-info', style: 'float: left;'
|
|
@ -1 +0,0 @@
|
|||
<%= smart_listing_update :instructeurs %>
|
Loading…
Add table
Add a link
Reference in a new issue