add export template feature flag

This commit is contained in:
Christophe Robillard 2024-04-09 15:12:21 +02:00 committed by simon lehericey
parent cec73e07a5
commit e235131c4c
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5
3 changed files with 21 additions and 18 deletions

View file

@ -20,6 +20,7 @@
- menu.with_item do
= link_to download_export_path(export_template_id: export_template.id), role: 'menuitem', data: { turbo_method: :post, turbo: true } do
= "Exporter à partir du modèle #{export_template.name}"
- if feature_enabled?(:export_template)
- menu.with_item do
= link_to new_instructeur_export_template_path(procedure_id: params[:procedure_id]), role: 'menuitem' do
Ajouter un modèle d'export

View file

@ -23,6 +23,7 @@
- else
= t('.no_export_html', expiration_time: Export::MAX_DUREE_CONSERVATION_EXPORT.in_hours.to_i )
- if feature_enabled?(:export_template)
%h2.fr-mb-1w.fr-mt-8w
Liste des modèles d'export
%p.fr-hint-text

View file

@ -25,6 +25,7 @@ features = [
:dossier_pdf_vide,
:engagement_juridique_type_de_champ,
:export_order_by_revision,
:export_template,
:expression_reguliere_type_de_champ,
:gallery_demande,
:groupe_instructeur_api_hack,