Add user product info
This commit is contained in:
@@ -7,7 +7,7 @@ html lang="en"
|
||||
title Qwaiter
|
||||
= stylesheet_link_tag "user/foundation/application"
|
||||
= javascript_include_tag "vendor/modernizr"
|
||||
/= javascript_include_tag 'http://connect.facebook.net/en_US/all.js'
|
||||
= javascript_include_tag 'http://connect.facebook.net/en_US/all.js'
|
||||
= javascript_include_tag "user/flat/application"
|
||||
- if ENV['QWAITER_MOBILE_EXPORT'] == 'yes'
|
||||
javascript:
|
||||
|
||||
@@ -1,20 +1,25 @@
|
||||
= form_for [:suppliers, @product] do |f|
|
||||
= render 'error_messages', target: @product
|
||||
.form-row
|
||||
.form-row class=(f.object.errors[:name].any? ? 'error' : nil)
|
||||
.form-label
|
||||
= f.label :name, data: {t: 'attributes.product.name'}
|
||||
.form-field
|
||||
= f.text_field :name
|
||||
.form-row
|
||||
.form-row class=(f.object.errors[:code].any? ? 'error' : nil)
|
||||
.form-label
|
||||
= f.label :code, data: {t: 'attributes.product.code'}
|
||||
.form-field
|
||||
= f.text_field :code
|
||||
.form-row
|
||||
.form-row class=(f.object.errors[:price].any? ? 'error' : nil)
|
||||
.form-label
|
||||
= f.label :price, data: {t: 'attributes.product.price'}
|
||||
.form-field
|
||||
= f.text_field :price
|
||||
.form-row class=(f.object.errors[:description].any? ? 'error' : nil)
|
||||
.form-label
|
||||
= f.label :description, data: {t: 'attributes.product.description'}
|
||||
.form-field
|
||||
= f.text_area :description
|
||||
/= f.input :name
|
||||
/= f.input :code
|
||||
/= f.input :price
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user