UI
This commit is contained in:
parent
39c05ef97b
commit
b79220e711
4 changed files with 24 additions and 3 deletions
|
@ -183,7 +183,7 @@
|
||||||
color: $black;
|
color: $black;
|
||||||
padding: $default-padding;
|
padding: $default-padding;
|
||||||
|
|
||||||
h4 {
|
.title {
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -266,6 +266,10 @@
|
||||||
color: $black;
|
color: $black;
|
||||||
margin-bottom: $default-spacer;
|
margin-bottom: $default-spacer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.with-top-border {
|
||||||
|
border-top: 1px solid $grey;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-form {
|
.dropdown-form {
|
||||||
|
|
|
@ -93,6 +93,12 @@ module Gestionnaires
|
||||||
render partial: 'state_button_refresh', locals: { dossier: dossier }
|
render partial: 'state_button_refresh', locals: { dossier: dossier }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def repasser_en_instruction
|
||||||
|
flash.notice = "Le dossier #{dossier.id} a été repassé en instruction."
|
||||||
|
|
||||||
|
render partial: 'state_button_refresh', locals: { dossier: dossier }
|
||||||
|
end
|
||||||
|
|
||||||
def terminer
|
def terminer
|
||||||
motivation = params[:dossier] && params[:dossier][:motivation]
|
motivation = params[:dossier] && params[:dossier][:motivation]
|
||||||
justificatif = params[:dossier] && params[:dossier][:justificatif_motivation]
|
justificatif = params[:dossier] && params[:dossier][:justificatif_motivation]
|
||||||
|
|
|
@ -58,14 +58,24 @@
|
||||||
= dossier_display_state(dossier, lower: true)
|
= dossier_display_state(dossier, lower: true)
|
||||||
.dropdown-content.fade-in-down.terminated
|
.dropdown-content.fade-in-down.terminated
|
||||||
- if dossier.motivation.present?
|
- if dossier.motivation.present?
|
||||||
%h4 Motivation
|
%h4.title Motivation
|
||||||
%p.dossier-motivation= dossier.motivation
|
%p.dossier-motivation= dossier.motivation
|
||||||
= render partial: 'users/dossiers/show/download_justificatif', locals: { dossier: dossier }
|
= render partial: 'users/dossiers/show/download_justificatif', locals: { dossier: dossier }
|
||||||
|
|
||||||
- if dossier.attestation.present?
|
- if dossier.attestation.present?
|
||||||
%h4 Attestation
|
%h4.title Attestation
|
||||||
%p.attestation L'acceptation du dossier a envoyé automatiquement une attestation au demandeur
|
%p.attestation L'acceptation du dossier a envoyé automatiquement une attestation au demandeur
|
||||||
= link_to "Voir l'attestation", attestation_gestionnaire_dossier_path(dossier.procedure, dossier), target: '_blank', rel: 'noopener', class: 'button'
|
= link_to "Voir l'attestation", attestation_gestionnaire_dossier_path(dossier.procedure, dossier), target: '_blank', rel: 'noopener', class: 'button'
|
||||||
|
|
||||||
|
|
||||||
|
- if dossier.refuse? || dossier.sans_suite?
|
||||||
|
%ul.dropdown-items.with-top-border
|
||||||
|
%li
|
||||||
|
= link_to repasser_en_instruction_gestionnaire_dossier_path(dossier.procedure, dossier), method: :post, data: { remote:true, confirm: "Voulez vous remettre le dossier #{dossier.id} en instruction ?" } do
|
||||||
|
%span.icon.in-progress
|
||||||
|
.dropdown-description
|
||||||
|
%h4 Repasser en instruction
|
||||||
|
L’usager sera notifié que son dossier est réexaminé.
|
||||||
- else
|
- else
|
||||||
%span.label{ class: button_or_label_class(dossier) }
|
%span.label{ class: button_or_label_class(dossier) }
|
||||||
= dossier_display_state(dossier, lower: true)
|
= dossier_display_state(dossier, lower: true)
|
||||||
|
|
|
@ -325,6 +325,7 @@ Rails.application.routes.draw do
|
||||||
post 'commentaire' => 'dossiers#create_commentaire'
|
post 'commentaire' => 'dossiers#create_commentaire'
|
||||||
post 'passer-en-instruction' => 'dossiers#passer_en_instruction'
|
post 'passer-en-instruction' => 'dossiers#passer_en_instruction'
|
||||||
post 'repasser-en-construction' => 'dossiers#repasser_en_construction'
|
post 'repasser-en-construction' => 'dossiers#repasser_en_construction'
|
||||||
|
post 'repasser-en-instruction' => 'dossiers#repasser_en_instruction'
|
||||||
post 'terminer'
|
post 'terminer'
|
||||||
post 'send-to-instructeurs' => 'dossiers#send_to_instructeurs'
|
post 'send-to-instructeurs' => 'dossiers#send_to_instructeurs'
|
||||||
post 'avis' => 'dossiers#create_avis'
|
post 'avis' => 'dossiers#create_avis'
|
||||||
|
|
Loading…
Reference in a new issue