Use cms page for signup
This commit is contained in:
@@ -7,6 +7,8 @@ class NewSuppliersController < ApplicationController
|
|||||||
def new
|
def new
|
||||||
@new_supplier = NewSupplier.new
|
@new_supplier = NewSupplier.new
|
||||||
@new_supplier.current_employee = current_employee
|
@new_supplier.current_employee = current_employee
|
||||||
|
@page = Page.find_by_name_and_locale('suppliers-signup', I18n.locale.to_s)
|
||||||
|
@page ||= Page.new(title: 'Signup as a restaurant')
|
||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
@@ -18,6 +20,8 @@ class NewSuppliersController < ApplicationController
|
|||||||
session[:supplier_id] = @new_supplier.supplier.try(:id)
|
session[:supplier_id] = @new_supplier.supplier.try(:id)
|
||||||
redirect_to supplier_root_path(anchor: '/pages/introduction')
|
redirect_to supplier_root_path(anchor: '/pages/introduction')
|
||||||
else
|
else
|
||||||
|
@page = Page.find_by_name_and_locale('suppliers-signup', I18n.locale.to_s)
|
||||||
|
@page ||= Page.new(title: 'Signup as a restaurant')
|
||||||
render 'new'
|
render 'new'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,15 +1,6 @@
|
|||||||
h1.page-title= t 'devise.registrations.title'
|
h1.page-title== @page.title
|
||||||
.row
|
.row
|
||||||
.small-12.columns
|
.small-12.columns== @page.body
|
||||||
ul
|
|
||||||
li Its free!
|
|
||||||
li
|
|
||||||
span To try do the following
|
|
||||||
ul
|
|
||||||
li Create and setup a restaurant account
|
|
||||||
li Open the qr codes page displaying the qr-codes of your created tables
|
|
||||||
li Download the app on your phone to test as a user
|
|
||||||
li Scan a qr-code from you restaurant screen with your phone, and you can test ordering products!!!
|
|
||||||
.row
|
.row
|
||||||
.large-8.large-offset-1.columns
|
.large-8.large-offset-1.columns
|
||||||
= form_for @new_supplier do |f|
|
= form_for @new_supplier do |f|
|
||||||
@@ -38,4 +29,6 @@ h1.page-title= t 'devise.registrations.title'
|
|||||||
.form-actions
|
.form-actions
|
||||||
= f.submit class: 'button'
|
= f.submit class: 'button'
|
||||||
|
|
||||||
|
.row
|
||||||
|
.small-12.columns== @page.footer
|
||||||
= render "devise/links", resource_name: :employee
|
= render "devise/links", resource_name: :employee
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
en:
|
en:
|
||||||
website:
|
website:
|
||||||
contact_form:
|
contact_form:
|
||||||
submitted: Submitted: You successfully submitted the contact form
|
submitted: You successfully submitted the contact form
|
||||||
send_button: "Send form"
|
send_button: "Send form"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
nl:
|
nl:
|
||||||
website:
|
website:
|
||||||
contact_form:
|
contact_form:
|
||||||
submitted: Submitted: You successfully submitted the contact form
|
submitted: You successfully submitted the contact form
|
||||||
send_button: Verstuur
|
send_button: Verstuur
|
||||||
|
|||||||
Reference in New Issue
Block a user