style(labels): fix new admin labels table
This commit is contained in:
parent
3c880a0849
commit
f399c7eb2a
1 changed files with 26 additions and 23 deletions
|
@ -13,31 +13,34 @@
|
||||||
class: "fr-btn fr-btn--primary fr-btn--icon-left fr-icon-add-circle-line mb-3"
|
class: "fr-btn fr-btn--primary fr-btn--icon-left fr-icon-add-circle-line mb-3"
|
||||||
|
|
||||||
- if @procedure.labels.present?
|
- if @procedure.labels.present?
|
||||||
.fr-table.fr-table--layout-fixed
|
.fr-table.fr-table--lg
|
||||||
%table
|
.fr-table__wrapper
|
||||||
%caption Liste des labels
|
.fr-table__container
|
||||||
%thead
|
.fr-table__content
|
||||||
%tr
|
%table
|
||||||
%th{ scope: "col" }
|
%caption Liste des labels
|
||||||
Nom
|
%thead
|
||||||
%th.change{ scope: "col" }
|
%tr
|
||||||
Actions
|
%th{ scope: "col" }
|
||||||
|
Nom
|
||||||
|
%th.change{ scope: "col" }
|
||||||
|
Actions
|
||||||
|
|
||||||
%tbody
|
%tbody
|
||||||
- @labels.each do |label|
|
- @labels.each do |label|
|
||||||
%tr
|
%tr
|
||||||
%td
|
%td
|
||||||
= tag_label(label.name, label.color)
|
= tag_label(label.name, label.color)
|
||||||
%td.change
|
%td.change
|
||||||
|
|
||||||
= link_to 'Modifier',
|
= link_to 'Modifier',
|
||||||
[:edit, :admin, @procedure, label],
|
[:edit, :admin, @procedure, label],
|
||||||
class: 'fr-btn fr-btn--sm fr-btn--secondary fr-btn--icon-left fr-icon-pencil-line'
|
class: 'fr-btn fr-btn--sm fr-btn--secondary fr-btn--icon-left fr-icon-pencil-line'
|
||||||
|
|
||||||
= link_to 'Supprimer',
|
= link_to 'Supprimer',
|
||||||
[:admin, @procedure, label],
|
[:admin, @procedure, label],
|
||||||
method: :delete,
|
method: :delete,
|
||||||
data: { confirm: "Confirmez vous la suppression de #{label.name}" },
|
data: { confirm: "Confirmez vous la suppression de #{label.name}" },
|
||||||
class: 'fr-btn fr-btn--sm fr-btn--secondary fr-btn--icon-left fr-icon-delete-line fr-ml-1w'
|
class: 'fr-btn fr-btn--sm fr-btn--secondary fr-btn--icon-left fr-icon-delete-line fr-ml-1w'
|
||||||
|
|
||||||
= render Procedure::FixedFooterComponent.new(procedure: @procedure)
|
= render Procedure::FixedFooterComponent.new(procedure: @procedure)
|
||||||
|
|
Loading…
Reference in a new issue