End of week commit
This commit is contained in:
@@ -1,16 +1,19 @@
|
||||
-# DEPRICATED
|
||||
= form_for [:suppliers, @section], html: {class: 'form-horizontal' } do |f|
|
||||
= render 'error_messages', target: @section
|
||||
.control-group class=(@section.errors[:title].any? ? 'error' : nil)
|
||||
= f.label :title, class: 'control-label'
|
||||
.controls
|
||||
= f.text_field :title, class: 'text_field'
|
||||
.control-group class=(@section.errors[:width].any? ? 'error' : nil)
|
||||
= f.label :width, class: 'control-label'
|
||||
.controls
|
||||
= f.text_field :width, class: ['text_field', :numeric]
|
||||
.control-group class=(@section.errors[:height].any? ? 'error' : nil)
|
||||
= f.label :height, class: 'control-label'
|
||||
.controls
|
||||
= f.text_field :height, class: ['text_field', :numeric]
|
||||
.form-row class=(@section.errors[:title].any? ? 'error' : nil)
|
||||
.form-label
|
||||
= f.label :title
|
||||
.form-field
|
||||
= f.text_field :title
|
||||
.form-row class=(@section.errors[:width].any? ? 'error' : nil)
|
||||
.form-label
|
||||
= f.label :width
|
||||
.form-field
|
||||
= f.number_field :width
|
||||
.form-row class=(@section.errors[:height].any? ? 'error' : nil)
|
||||
.form-label
|
||||
= f.label :height
|
||||
.form-field
|
||||
= f.number_field :height
|
||||
= f.supplier_form_actions
|
||||
|
||||
Reference in New Issue
Block a user