From 43b0eae3ee728dd8ca8263a4792954a30f0cc5f3 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Fri, 7 Apr 2023 16:48:24 +0200 Subject: [PATCH] refactor(ui): enough space for button --- app/assets/stylesheets/groupe_instructeur.scss | 9 +++++++-- .../administrateurs/groupe_instructeurs/_edit.html.haml | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/groupe_instructeur.scss b/app/assets/stylesheets/groupe_instructeur.scss index 419bf075f..a40243cd5 100644 --- a/app/assets/stylesheets/groupe_instructeur.scss +++ b/app/assets/stylesheets/groupe_instructeur.scss @@ -1,6 +1,11 @@ .groupe-instructeur { - .actions { - width: 200px; + .setup { text-align: center; + width: 100px; + } + + .actions { + text-align: center; + width: 250px; } } diff --git a/app/views/administrateurs/groupe_instructeurs/_edit.html.haml b/app/views/administrateurs/groupe_instructeurs/_edit.html.haml index 9740a2b5a..320a51fb2 100644 --- a/app/views/administrateurs/groupe_instructeurs/_edit.html.haml +++ b/app/views/administrateurs/groupe_instructeurs/_edit.html.haml @@ -46,13 +46,13 @@ %tr // i18n-tasks-use t('.existing_groupe') %th{ colspan: 2 }= t(".existing_groupe", count: groupes_instructeurs.total_count) - %th + %th.actions = link_to "Exporter au format CSV", export_groupe_instructeurs_admin_procedure_groupe_instructeurs_path(procedure, format: :csv) %tbody - groupes_instructeurs.each do |group| %tr %td= group.label - %td.actions= link_to t('.set_up'), admin_procedure_groupe_instructeur_path(procedure, group) + %td.setup= link_to t('.set_up'), admin_procedure_groupe_instructeur_path(procedure, group) - if group.can_delete? %td.actions = link_to admin_procedure_groupe_instructeur_path(procedure, group), { method: :delete, class: 'button', data: { confirm: t('.group_management.delete_confirmation', group_name: group.label) }} do