update qr code system and add location setter for suppliers
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
- content_for :head do
|
||||
= javascript_include_tag 'https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false'
|
||||
|
||||
= form_for @supplier, url: supplier_update_settings_path, html: {class: 'form-horizontal'} do |f|
|
||||
= render 'error_messages', target: current_supplier
|
||||
.control-group class=(@supplier.errors[:name].any? ? 'error' : nil)
|
||||
@@ -8,6 +11,10 @@
|
||||
= f.label :email, class: 'control-label'
|
||||
.controls
|
||||
= f.text_field :email, class: 'text_field'
|
||||
.control-group class=(@supplier.errors[:location].any? ? 'error' : nil)
|
||||
= f.label :location, class: 'control-label'
|
||||
.controls
|
||||
= f.text_field :location, class: 'location_picker'
|
||||
.control-group class=(@supplier.errors[:offer_wifi].any? ? 'error' : nil)
|
||||
= f.label :offer_wifi, class: 'control-label'
|
||||
.controls
|
||||
|
||||
Reference in New Issue
Block a user