style(attestation): revamp bottom bar
This commit is contained in:
parent
475406f3f2
commit
ce2ae53def
2 changed files with 14 additions and 7 deletions
|
@ -110,16 +110,19 @@
|
|||
.fixed-footer
|
||||
.fr-container
|
||||
.fr-grid-row
|
||||
.fr-col-7
|
||||
.fr-col-12.fr-col-md-7
|
||||
%ul.fr-btns-group.fr-btns-group--inline-md
|
||||
%li
|
||||
= f.button 'Enregistrer', class: 'fr-btn'
|
||||
= link_to 'Prévisualiser l’attestation PDF', admin_procedure_attestation_template_v2_path(@procedure, format: :pdf), class: 'fr-btn fr-btn', target: '_blank', rel: 'noopener'
|
||||
%li
|
||||
= link_to 'Prévisualiser l’attestation PDF', admin_procedure_attestation_template_v2_path(@procedure, format: :pdf), class: 'fr-btn fr-btn--secondary', target: '_blank', rel: 'noopener'
|
||||
%li
|
||||
= link_to 'Annuler', admin_procedure_path(id: @procedure), class: 'fr-btn fr-btn--tertiary-no-outline', data: { confirm: 'Êtes-vous sûr de vouloir annuler les modifications effectuées ?'}
|
||||
.fr-col-5
|
||||
= link_to admin_procedure_path(id: @procedure), class: 'fr-btn fr-btn--secondary' do
|
||||
%span.fr-icon-arrow-go-back-line.fr-icon--sm.fr-mr-1v
|
||||
Revenir à la démarche
|
||||
|
||||
.fr-col-12.fr-col-md-5
|
||||
-# .fr-toggle
|
||||
-# = f.check_box :activated, class: "fr-toggle-input", disabled: true, id: dom_id(@attestation_template, :activated)
|
||||
-# %label.fr-toggle__label{ for: dom_id(@attestation_template, :activated), data: { fr_checked_label: "Attestation activée", fr_unchecked_label: "Attestation désactivée" } }
|
||||
%p.fr-pt-1w.fr-hint-text.text-right L’activation de cette attestation sera bientôt disponible.
|
||||
.text-right
|
||||
%span#autosave-notice
|
||||
%p.fr-hint-text L’activation de cette attestation sera bientôt disponible.
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
= turbo_stream.show 'autosave-notice'
|
||||
= turbo_stream.replace 'autosave-notice', render(partial: 'administrateurs/autosave_notice')
|
||||
= turbo_stream.hide 'autosave-notice', delay: 15000
|
||||
|
||||
- if @attestation_template.logo_blob&.previously_new_record?
|
||||
= turbo_stream.update dom_id(@attestation_template, :logo_attachment) do
|
||||
= render(Attachment::EditComponent.new(attached_file: @attestation_template.logo, direct_upload: false))
|
||||
|
|
Loading…
Reference in a new issue