Fix css on order_items
This commit is contained in:
parent
7c7c93f607
commit
f5c970af53
2 changed files with 7 additions and 4 deletions
|
@ -34,3 +34,6 @@
|
||||||
margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
|
margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.form_row .btn-lg {
|
||||||
|
padding: 10px 10px;
|
||||||
|
}
|
||||||
|
|
|
@ -53,9 +53,9 @@ class FormattedFormBuilder < ActionView::Helpers::FormBuilder
|
||||||
end
|
end
|
||||||
|
|
||||||
def counter(name, options = {})
|
def counter(name, options = {})
|
||||||
form_group_builder(name, options) do
|
form_group_builder(name, options.merge(wrapper_class: "input-group input-group-lg")) do
|
||||||
counter_button("btn-dec", "glyphicon-minus") +
|
counter_button("btn-dec", "glyphicon-minus") +
|
||||||
number_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 center'})) +
|
||||||
counter_button("btn-inc", "glyphicon-plus")
|
counter_button("btn-inc", "glyphicon-plus")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -177,8 +177,8 @@ class FormattedFormBuilder < ActionView::Helpers::FormBuilder
|
||||||
|
|
||||||
def counter_button(button, glyphicon)
|
def counter_button(button, glyphicon)
|
||||||
content_tag :span, class: "input-group-btn" do
|
content_tag :span, class: "input-group-btn" do
|
||||||
content_tag :button, class: "btn btn-default btn-lg #{button}", type: "button" do
|
content_tag :button, class: "btn btn-default #{button}", type: "button" do
|
||||||
content_tag :span, "", class: "glyphicon btn-lg #{glyphicon}"
|
content_tag :span, "", class: "glyphicon #{glyphicon}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue