Change orderitems from text inputs to number fields

This commit is contained in:
benji 2015-04-04 04:13:30 +02:00
parent ec36ac619f
commit 97fdd2e24c
2 changed files with 7 additions and 1 deletions

View file

@ -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 */
}

View file

@ -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