diff --git a/app/controllers/new_suppliers_controller.rb b/app/controllers/new_suppliers_controller.rb index a2f23528..252f8cdd 100644 --- a/app/controllers/new_suppliers_controller.rb +++ b/app/controllers/new_suppliers_controller.rb @@ -7,6 +7,8 @@ class NewSuppliersController < ApplicationController def new @new_supplier = NewSupplier.new @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 def create @@ -18,6 +20,8 @@ class NewSuppliersController < ApplicationController session[:supplier_id] = @new_supplier.supplier.try(:id) redirect_to supplier_root_path(anchor: '/pages/introduction') else + @page = Page.find_by_name_and_locale('suppliers-signup', I18n.locale.to_s) + @page ||= Page.new(title: 'Signup as a restaurant') render 'new' end end diff --git a/app/views/new_suppliers/new.html.slim b/app/views/new_suppliers/new.html.slim index 55c310a2..f9d97099 100644 --- a/app/views/new_suppliers/new.html.slim +++ b/app/views/new_suppliers/new.html.slim @@ -1,15 +1,6 @@ -h1.page-title= t 'devise.registrations.title' +h1.page-title== @page.title .row - .small-12.columns - 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!!! + .small-12.columns== @page.body .row .large-8.large-offset-1.columns = form_for @new_supplier do |f| @@ -38,4 +29,6 @@ h1.page-title= t 'devise.registrations.title' .form-actions = f.submit class: 'button' +.row + .small-12.columns== @page.footer = render "devise/links", resource_name: :employee diff --git a/config/locales/website.en.yml b/config/locales/website.en.yml index 3a8464b9..cc62a3ad 100644 --- a/config/locales/website.en.yml +++ b/config/locales/website.en.yml @@ -1,5 +1,5 @@ en: website: contact_form: - submitted: Submitted: You successfully submitted the contact form + submitted: You successfully submitted the contact form send_button: "Send form" diff --git a/config/locales/website.nl.yml b/config/locales/website.nl.yml index 8b8d4b4c..f27831b8 100644 --- a/config/locales/website.nl.yml +++ b/config/locales/website.nl.yml @@ -1,5 +1,5 @@ nl: website: contact_form: - submitted: Submitted: You successfully submitted the contact form + submitted: You successfully submitted the contact form send_button: Verstuur