add AR component and page on admin view
This commit is contained in:
parent
cb2dd3dd3a
commit
ee91f47c5a
10 changed files with 76 additions and 2 deletions
|
@ -0,0 +1,5 @@
|
|||
class Procedure::Card::AccuseLectureComponent < ApplicationComponent
|
||||
def initialize(procedure:)
|
||||
@procedure = procedure
|
||||
end
|
||||
end
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
fr:
|
||||
title: Accusé de lecture
|
||||
subtitle: Pour les démarches avec voies de recours
|
|
@ -0,0 +1,11 @@
|
|||
.fr-col-6.fr-col-md-4.fr-col-lg-3
|
||||
= link_to accuse_lecture_admin_procedure_path(@procedure), class: 'fr-tile fr-enlarge-link' do
|
||||
.fr-tile__body.flex.column.align-center.justify-between
|
||||
- if @procedure.accuse_lecture.present?
|
||||
%p.fr-badge.fr-badge--success Activé
|
||||
- else
|
||||
%p.fr-badge.fr-badge--info À configurer
|
||||
%div
|
||||
%h3.fr-h6.fr-mt-10v= t('.title')
|
||||
%p.fr-tile-subtitle= t('.subtitle')
|
||||
%p.fr-btn.fr-btn--tertiary= t('views.shared.actions.edit')
|
Loading…
Add table
Add a link
Reference in a new issue