[fix #878] change motivation text and display a label if not action is possible
This commit is contained in:
parent
e28b18d978
commit
d9f44e013a
3 changed files with 21 additions and 11 deletions
|
@ -24,3 +24,9 @@
|
|||
// are ligned with those that have text
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.mixed-buttons-bar .label {
|
||||
padding: $default-spacer $default-padding;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
|
|
@ -127,7 +127,7 @@
|
|||
}
|
||||
|
||||
.dossier-motivation {
|
||||
margin-top: 2 * $default-padding;
|
||||
margin: $default-padding 0;
|
||||
}
|
||||
|
||||
.attestation {
|
||||
|
|
|
@ -60,14 +60,18 @@
|
|||
= button_tag "Valider la décision", name: :process_action, value: "close", class: 'button primary', title: 'Accepter', data: { confirm: "Accepter ce dossier ?" }
|
||||
|
||||
- else
|
||||
- if dossier.motivation.present? || dossier.attestation.present?
|
||||
%span.button.dropdown{ class: dossier.closed? ? 'success' : nil }
|
||||
= dossier.statut
|
||||
.dropdown-content.fade-in-down.terminated
|
||||
%h4
|
||||
= "Dossier nº #{dossier.id} #{dossier.statut}"
|
||||
|
||||
%p.dossier-motivation= dossier.motivation.present? ? dossier.motivation : "aucune motivation n'a été fournie"
|
||||
- if dossier.motivation.present?
|
||||
%h4 Motivation
|
||||
%p.dossier-motivation= dossier.motivation
|
||||
|
||||
- if dossier.attestation.present?
|
||||
%h4 Attestation
|
||||
%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'
|
||||
- else
|
||||
%span.label{ class: dossier.closed? ? 'success' : nil }
|
||||
= dossier.statut
|
||||
|
|
Loading…
Reference in a new issue