style delete row button
This commit is contained in:
parent
30859774e4
commit
bf27a5ffc4
2 changed files with 12 additions and 1 deletions
|
@ -32,6 +32,12 @@
|
||||||
|
|
||||||
.delete-column {
|
.delete-column {
|
||||||
width: 50px;
|
width: 50px;
|
||||||
|
|
||||||
|
button {
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -174,7 +174,12 @@ class TypesDeChamp::ConditionsComponent < ApplicationComponent
|
||||||
end
|
end
|
||||||
|
|
||||||
def delete_condition_tag(row_index)
|
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
|
end
|
||||||
|
|
||||||
def render?
|
def render?
|
||||||
|
|
Loading…
Add table
Reference in a new issue