style add row button

This commit is contained in:
simon lehericey 2022-06-28 12:39:05 +02:00
parent bf27a5ffc4
commit cecf210503
2 changed files with 15 additions and 1 deletions

View file

@ -65,4 +65,13 @@
border-color: $dark-red;
}
}
.add-row {
background: none;
border: none;
cursor: pointer;
font-size: 16px;
line-height: 25px;
margin: 0 $default-padding $default-padding;
}
}

View file

@ -170,7 +170,12 @@ class TypesDeChamp::ConditionsComponent < ApplicationComponent
end
def add_condition_tag
submit_tag('Ajouter une condition', formaction: add_row_condition_path(@tdc.id))
tag.button(
tag.span('', class: 'icon add') + tag.span("Ajouter une condition"),
formaction: add_row_admin_procedure_condition_path(@procedure_id, @tdc.id),
formnovalidate: true,
class: 'add-row'
)
end
def delete_condition_tag(row_index)