This commit is contained in:
benji 2015-02-20 09:21:24 +01:00
commit 1c6be64e5c
3 changed files with 9 additions and 8 deletions

View file

@ -1,14 +1,15 @@
// Place all the styles related to the Orders controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
.form-control.input-lg {
height:66px;
text-align: center;
}
.big-form-button {
height:65px;
width:65px;
height: 65px;
width: 65px;
}
.form-control.big-form-field {
height: 66px;
text-align: center;
}
.form_row_image {

View file

@ -49,7 +49,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 input-lg row_counter'})) +
text_field_without_format(name, options.merge({class: 'form-control row_counter big-form-field'})) +
counter_button("btn-inc", "glyphicon-plus")
end
end

View file

@ -2,7 +2,7 @@
<%= f.label :total_price %>
<div class="input-group">
<span class="input-group-addon">&euro;</span>
<%= f.number_field :total_price, skip_label: true, step: :any, class: 'form-control input-lg' %>
<%= f.number_field :total_price, skip_label: true, step: :any, class: 'form-control big-form-field' %>
<span class="input-group-btn">
<%= f.submit "Order!", class: "btn btn-primary big-form-button" %>
</span>