Add user product info

This commit is contained in:
2014-04-22 18:42:02 +02:00
parent 821f59b761
commit ea498cb9c5
26 changed files with 1474 additions and 105 deletions
+3 -3
View File
@@ -1,17 +1,17 @@
-# DEPRICATED
= form_for [:suppliers, @section], html: {class: 'form-horizontal' } do |f|
= render 'error_messages', target: @section
.form-row class=(@section.errors[:title].any? ? 'error' : nil)
.form-row class=(f.object.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-row class=(f.object.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-row class=(f.object.errors[:height].any? ? 'error' : nil)
.form-label
= f.label :height
.form-field