Fix css on order_items

This commit is contained in:
benji 2015-06-30 23:33:11 +02:00
parent 7c7c93f607
commit f5c970af53
2 changed files with 7 additions and 4 deletions

View file

@ -34,3 +34,6 @@
margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}
.form_row .btn-lg {
padding: 10px 10px;
}

View file

@ -53,9 +53,9 @@ class FormattedFormBuilder < ActionView::Helpers::FormBuilder
end
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") +
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")
end
end
@ -177,8 +177,8 @@ class FormattedFormBuilder < ActionView::Helpers::FormBuilder
def counter_button(button, glyphicon)
content_tag :span, class: "input-group-btn" do
content_tag :button, class: "btn btn-default btn-lg #{button}", type: "button" do
content_tag :span, "", class: "glyphicon btn-lg #{glyphicon}"
content_tag :button, class: "btn btn-default #{button}", type: "button" do
content_tag :span, "", class: "glyphicon #{glyphicon}"
end
end
end