New Design: add motivation and attestation
This commit is contained in:
parent
25ed44704c
commit
1962037728
3 changed files with 55 additions and 6 deletions
|
@ -44,6 +44,17 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.success {
|
||||||
|
color: #FFFFFF;
|
||||||
|
border-color: $green;
|
||||||
|
background-color: $green;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: $green;
|
||||||
|
background-color: #FFFFFF;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&.large {
|
&.large {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
line-height: 26px;
|
line-height: 26px;
|
||||||
|
@ -91,6 +102,26 @@
|
||||||
right: 0;
|
right: 0;
|
||||||
top: 5 * $default-spacer;
|
top: 5 * $default-spacer;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
|
z-index: 10;
|
||||||
|
|
||||||
|
&.terminated {
|
||||||
|
width: 600px;
|
||||||
|
color: $black;
|
||||||
|
padding: $default-padding;
|
||||||
|
|
||||||
|
h4 {
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dossier-motivation {
|
||||||
|
margin-top: 2 * $default-padding;
|
||||||
|
}
|
||||||
|
|
||||||
|
.attestation {
|
||||||
|
margin: $default-padding 0;
|
||||||
|
color: $grey;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-items {
|
.dropdown-items {
|
||||||
|
|
|
@ -59,9 +59,25 @@
|
||||||
%span.button{ onclick: "TPS.motivationCancel();" } Annuler
|
%span.button{ onclick: "TPS.motivationCancel();" } Annuler
|
||||||
= button_tag "Valider la décision", name: :process_action, value: "close", class: 'button primary', title: 'Accepter', data: { confirm: "Accepter ce dossier ?" }
|
= button_tag "Valider la décision", name: :process_action, value: "close", class: 'button primary', title: 'Accepter', data: { confirm: "Accepter ce dossier ?" }
|
||||||
|
|
||||||
- elsif dossier.closed?
|
- else
|
||||||
%span.label.closed Accepté
|
%span.button.dropdown{ class: dossier.closed? ? 'success' : nil }
|
||||||
- elsif dossier.refused?
|
- if dossier.closed?
|
||||||
%span.label.refused Refusé
|
accepté
|
||||||
- elsif dossier.without_continuation?
|
- elsif dossier.without_continuation?
|
||||||
%span.label.without-continuation Sans suite
|
classé sans suite
|
||||||
|
- elsif dossier.refused?
|
||||||
|
refusé
|
||||||
|
.dropdown-content.fade-in-down.terminated
|
||||||
|
%h4
|
||||||
|
- if dossier.closed?
|
||||||
|
Dossier nº #{dossier.id} accepté
|
||||||
|
- elsif dossier.without_continuation?
|
||||||
|
Dossier nº #{dossier.id} classé sans suite
|
||||||
|
- elsif dossier.refused?
|
||||||
|
Dossier nº #{dossier.id} refusé
|
||||||
|
|
||||||
|
%p.dossier-motivation= dossier.motivation.present? ? dossier.motivation : "aucune motivation n'a été fournie"
|
||||||
|
|
||||||
|
- if dossier.attestation.present?
|
||||||
|
%p.attestation L'acceptation du dossier a envoyé automatiquement une attestation au demandeur
|
||||||
|
= link_to "Voir l'attestation", attestation_dossier_path(dossier.procedure, dossier), target: '_blank', class: 'button'
|
||||||
|
|
|
@ -39,6 +39,8 @@
|
||||||
|
|
||||||
= link_to ".button.secondary", "#", class: "button secondary"
|
= link_to ".button.secondary", "#", class: "button secondary"
|
||||||
|
|
||||||
|
= link_to ".button.success", "#", class: "button success"
|
||||||
|
|
||||||
= link_to ".button.large", "#", class: "button large"
|
= link_to ".button.large", "#", class: "button large"
|
||||||
|
|
||||||
= link_to ".button.large.primary", "#", class: "button large primary"
|
= link_to ".button.large.primary", "#", class: "button large primary"
|
||||||
|
|
Loading…
Reference in a new issue