style add row button
This commit is contained in:
parent
bf27a5ffc4
commit
cecf210503
2 changed files with 15 additions and 1 deletions
|
@ -65,4 +65,13 @@
|
||||||
border-color: $dark-red;
|
border-color: $dark-red;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.add-row {
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: 25px;
|
||||||
|
margin: 0 $default-padding $default-padding;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -170,7 +170,12 @@ class TypesDeChamp::ConditionsComponent < ApplicationComponent
|
||||||
end
|
end
|
||||||
|
|
||||||
def add_condition_tag
|
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
|
end
|
||||||
|
|
||||||
def delete_condition_tag(row_index)
|
def delete_condition_tag(row_index)
|
||||||
|
|
Loading…
Reference in a new issue