Files
mozo-backend/app/views/suppliers/sections/_form.html.slim
T
2014-04-18 20:38:13 +02:00

20 lines
615 B
Plaintext

-# 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-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