commit
c2d5db70df
3 changed files with 9 additions and 8 deletions
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<%= f.label :total_price %>
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">€</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>
|
||||
|
|
Loading…
Reference in a new issue