Refactor supplier settings

This commit is contained in:
2014-07-16 17:41:43 +02:00
parent a302123c6b
commit 2fec0b3bb6
31 changed files with 311 additions and 49 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
- content_for :head do
= javascript_include_tag "https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=places&language=#{I18n.locale}"
= javascript_include_tag 'supplier/app/application'
= form_for @supplier, url: supplier_update_settings_path, html: {class: 'form-horizontal'} do |f|
/= form_for @supplier, url: supplier_update_settings_path, html: {class: 'form-horizontal'} do |f|
= render 'suppliers/application/error_messages', target: current_supplier
.control-group class=(@supplier.errors[:name].any? ? 'error' : nil)
= f.label :name, class: 'control-label'