Change orderitems from text inputs to number fields
This commit is contained in:
parent
ec36ac619f
commit
97fdd2e24c
|
@ -28,3 +28,9 @@
|
|||
}
|
||||
}
|
||||
|
||||
.form_row input::-webkit-outer-spin-button,
|
||||
.form_row input::-webkit-inner-spin-button {
|
||||
-webkit-appearance: none;
|
||||
margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
|
||||
}
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ class FormattedFormBuilder < ActionView::Helpers::FormBuilder
|
|||
def counter(name, options = {})
|
||||
form_group_builder(name, options) do
|
||||
counter_button("btn-dec", "glyphicon-minus") +
|
||||
text_field_without_format(name, options.merge({class: 'form-control row_counter big-form-field'})) +
|
||||
number_field_without_format(name, options.merge({class: 'form-control row_counter big-form-field'})) +
|
||||
counter_button("btn-inc", "glyphicon-plus")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue