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

18 lines
597 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
2024-10-29 15:39:58 +01:00
= link_to [:admin, @procedure, :labels], class: 'fr-tile fr-enlarge-link' do
2024-10-16 14:31:08 +02:00
.fr-tile__body.flex.column.align-center.justify-between
2024-10-29 15:39:58 +01:00
- if @procedure.labels.present?
2024-10-16 14:31:08 +02:00
%p.fr-badge.fr-badge--info
Configuré
%div
.line-count.fr-my-1w
2024-10-29 15:39:58 +01:00
%p.fr-tag= @procedure.labels.size
2024-10-16 14:31:08 +02:00
- 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')