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

18 lines
637 B
Text
Raw Normal View History

2024-10-16 14:31:08 +02:00
.fr-col-6.fr-col-md-4.fr-col-lg-3
= link_to admin_procedure_procedure_labels_path(@procedure), class: 'fr-tile fr-enlarge-link' do
.fr-tile__body.flex.column.align-center.justify-between
- if @procedure.procedure_labels.present?
%p.fr-badge.fr-badge--info
Configuré
%div
.line-count.fr-my-1w
%p.fr-tag= @procedure.procedure_labels.size
- else
%p.fr-badge
Non configuré
%h3.fr-h6
= t('.title')
%p.fr-tile-subtitle Gérer les labels utilisables par les instructeurs
%p.fr-btn.fr-btn--tertiary= t('views.shared.actions.edit')