This commit is contained in:
2020-03-05 17:53:35 -05:00
parent aac62f8e55
commit b170521619
12 changed files with 1292 additions and 568 deletions
+2 -8
View File
@@ -1,11 +1,5 @@
.phone-wrapper
- if Rails.env.development?
iframe.phone-content-frame src="http://localhost:4201/"
- else
iframe.phone-content-frame src=user_root_path
iframe.phone-content-frame src=user_root_path
.tablet-wrapper
- if Rails.env.development?
iframe.tablet-content-frame src="http://localhost:4202/supplier/"
- else
iframe.tablet-content-frame src=supplier_root_path
iframe.tablet-content-frame src=supplier_root_path
+12 -4
View File
@@ -15,7 +15,16 @@
- else
= f.email_field :email
.large-2.columns= f.error_message :email
- if not @new_supplier.current_employee.present?
- if @new_supplier.current_employee.present?
.row
.large-12.columns
- new_supplier_button_text = t 'new_supplier.already_signed_in_new_restaurant_button_text', supplier: Supplier.model_name.human
p== t 'new_supplier.employee_already_signed_in', employee: Employee.model_name.human, new_supplier_button: capture(&->{f.submit class: 'button', value: new_supplier_button_text})
- else
= f.row :email
.large-4.columns= f.label :email
.large-6.columns= f.email_field :email
.large-2.columns= f.error_message :email
= f.row :password
.large-4.columns= f.label :password
.large-4.columns= f.password_field :password
@@ -24,9 +33,8 @@
.large-4.columns= f.label :password_confirmation
.large-4.columns= f.password_field :password_confirmation
.large-4.columns= f.error_message :password_confirmation
.form-actions
= f.submit class: 'button'
.form-actions
= f.submit class: 'button'
.row
.small-12.columns== @page.footer