demarches-normaliennes/app/components/procedure/card/champs_component/champs_component.html.haml

19 lines
691 B
Text

.fr-col-6.fr-col-md-4.fr-col-lg-3
= link_to champs_admin_procedure_path(@procedure), class: 'fr-tile fr-enlarge-link', title: error_messages do
.fr-tile__body.flex.column.align-center.justify-between
- if error_messages.present?
%div
%span.icon.refuse
%p.fr-tile-status-error À modifier
- elsif @count == 0
%p.fr-badge.fr-badge--warning À faire
- else
%p.fr-badge.fr-badge--success Validé
%div
.line-count.fr-my-1w
%p.fr-tag= @count
%h3.fr-h6
= t('.title')
%p.fr-tile-subtitle À remplir par les usagers
%p.fr-btn.fr-btn--tertiary= t('views.shared.actions.edit')