commit
b9ea668ddf
5 changed files with 34 additions and 8 deletions
|
@ -12,6 +12,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
|
margin-right: 20px;
|
||||||
|
|
||||||
.card-admin-status-accept {
|
.card-admin-status-accept {
|
||||||
color: #50AA75;
|
color: #50AA75;
|
||||||
|
@ -47,6 +48,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#test-procedure-link {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 600px) {
|
@media only screen and (max-width: 600px) {
|
||||||
.card-admin {
|
.card-admin {
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
|
|
|
@ -2,5 +2,4 @@
|
||||||
.procedure-grid {
|
.procedure-grid {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: space-between;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,11 @@ module NewAdministrateur
|
||||||
|
|
||||||
def show
|
def show
|
||||||
@procedure = current_administrateur.procedures.find(params[:id])
|
@procedure = current_administrateur.procedures.find(params[:id])
|
||||||
|
if @procedure.brouillon?
|
||||||
|
@procedure_lien = commencer_test_url(path: @procedure.path)
|
||||||
|
else
|
||||||
|
@procedure_lien = commencer_url(path: @procedure.path)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def edit
|
def edit
|
||||||
|
|
|
@ -2,8 +2,10 @@
|
||||||
locals: { steps: [link_to('Démarches', admin_procedures_path),
|
locals: { steps: [link_to('Démarches', admin_procedures_path),
|
||||||
"#{@procedure.libelle} (crée le #{@procedure.created_at.strftime('%d/%m/%Y')})"] }
|
"#{@procedure.libelle} (crée le #{@procedure.created_at.strftime('%d/%m/%Y')})"] }
|
||||||
|
|
||||||
.container{ style: "text-align:right; margin-bottom: 20px" }
|
.container{ style: "display: flex; justify-content: flex-end; margin-bottom: 20px" }
|
||||||
= button_to 'Publier la démarche', admin_procedure_publication_path(@procedure), method: :get, class: 'button primary',id: 'publish-procedure-link', disabled: @procedure.publiee? ? true : false
|
- if @procedure.brouillon?
|
||||||
|
= link_to "Tester la démarche", sanitize_url(@procedure_lien), target: :blank, rel: :noopener, class: 'button primary', id: 'test-procedure-link'
|
||||||
|
= button_to 'Publier la démarche', admin_procedure_publication_path(@procedure), method: :get, class: 'button primary', id: 'publish-procedure-link', disabled: @procedure.publiee? ? true : false
|
||||||
|
|
||||||
.container
|
.container
|
||||||
%h2.explication-libelle{ style: "font-weight: bold; font-size: 20px; margin-bottom: 20px;" } Indispensable avant publication
|
%h2.explication-libelle{ style: "font-weight: bold; font-size: 20px; margin-bottom: 20px;" } Indispensable avant publication
|
||||||
|
@ -69,8 +71,12 @@
|
||||||
%div
|
%div
|
||||||
%p.card-admin-title
|
%p.card-admin-title
|
||||||
= feature_enabled?(:administrateur_routage) ? "Groupe Instructeurs" : "Instructeurs"
|
= feature_enabled?(:administrateur_routage) ? "Groupe Instructeurs" : "Instructeurs"
|
||||||
%span.badge.baseline
|
- if feature_enabled?(:administrateur_routage)
|
||||||
= @procedure.instructeurs.count
|
%span.badge.baseline
|
||||||
|
= @procedure.groupe_instructeurs.count
|
||||||
|
- else
|
||||||
|
%span.badge.baseline
|
||||||
|
= @procedure.instructeurs.count
|
||||||
%p.card-admin-subtitle Suivi des dossiers
|
%p.card-admin-subtitle Suivi des dossiers
|
||||||
.card-admin-action
|
.card-admin-action
|
||||||
- if feature_enabled?(:administrateur_routage)
|
- if feature_enabled?(:administrateur_routage)
|
||||||
|
@ -78,6 +84,17 @@
|
||||||
- else
|
- else
|
||||||
= button_to 'Modifier', admin_procedure_groupe_instructeur_path(@procedure, @procedure.defaut_groupe_instructeur), method: :get, class: 'card-admin-action-btn', id: "instructeurs"
|
= button_to 'Modifier', admin_procedure_groupe_instructeur_path(@procedure, @procedure.defaut_groupe_instructeur), method: :get, class: 'card-admin-action-btn', id: "instructeurs"
|
||||||
|
|
||||||
|
.card-admin
|
||||||
|
%div
|
||||||
|
%span.icon.preview
|
||||||
|
%p.card-admin-status-todo À visualiser
|
||||||
|
%div
|
||||||
|
%p.card-admin-title
|
||||||
|
Prévisualisation
|
||||||
|
%p.card-admin-subtitle Apperçu de la démarche
|
||||||
|
.card-admin-action
|
||||||
|
= button_to 'Voir', apercu_admin_procedure_path(@procedure), method: :get, class: 'card-admin-action-btn'
|
||||||
|
|
||||||
%h2.explication-libelle{ style: "font-weight: bold; font-size: 20px; margin-bottom: 20px;" } Pour aller plus loin
|
%h2.explication-libelle{ style: "font-weight: bold; font-size: 20px; margin-bottom: 20px;" } Pour aller plus loin
|
||||||
.procedure-grid
|
.procedure-grid
|
||||||
.card-admin
|
.card-admin
|
||||||
|
|
|
@ -5597,9 +5597,9 @@ lodash.uniq@^4.5.0:
|
||||||
integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=
|
integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=
|
||||||
|
|
||||||
lodash@^4.0.0, lodash@^4.17.11, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.5, lodash@~4.17.12:
|
lodash@^4.0.0, lodash@^4.17.11, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.5, lodash@~4.17.12:
|
||||||
version "4.17.15"
|
version "4.17.19"
|
||||||
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548"
|
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.19.tgz#e48ddedbe30b3321783c5b4301fbd353bc1e4a4b"
|
||||||
integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==
|
integrity sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==
|
||||||
|
|
||||||
loglevel@^1.6.8:
|
loglevel@^1.6.8:
|
||||||
version "1.6.8"
|
version "1.6.8"
|
||||||
|
|
Loading…
Reference in a new issue