style delete row button

This commit is contained in:
simon lehericey 2022-06-28 13:03:11 +02:00
parent 30859774e4
commit bf27a5ffc4
2 changed files with 12 additions and 1 deletions

View file

@ -32,6 +32,12 @@
.delete-column {
width: 50px;
button {
background: none;
border: none;
cursor: pointer;
}
}
}

View file

@ -174,7 +174,12 @@ class TypesDeChamp::ConditionsComponent < ApplicationComponent
end
def delete_condition_tag(row_index)
submit_tag('X', formaction: delete_row_condition_path(@tdc.id, row_index: row_index))
tag.button(
tag.span('', class: 'icon delete') + tag.span('Supprimer la ligne', class: 'sr-only'),
formaction: delete_row_admin_procedure_condition_path(@procedure_id, @tdc.id, row_index: row_index),
formmethod: 'delete',
formnovalidate: true
)
end
def render?