changes
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
App.PageBodyComponent = Ember.Component.extend
|
||||||
|
setTemplate: (->
|
||||||
|
body = @get('templateBody')
|
||||||
|
body ||= ""
|
||||||
|
try
|
||||||
|
template = Ember.HTMLBars.compile(body)
|
||||||
|
catch
|
||||||
|
template = Ember.HTMLBars.compile(tspan('page.cannot_compile'))
|
||||||
|
@set 'template', Ember.HTMLBars.template(template)
|
||||||
|
@rerender()
|
||||||
|
).on('init').observes('templateBody')
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
attr = DS.attr
|
attr = DS.attr
|
||||||
App.Supplier = DS.Model.extend
|
App.Supplier = DS.Model.extend
|
||||||
name: attr 'string'
|
name: attr 'string'
|
||||||
|
user_message: attr 'string'
|
||||||
email: attr 'string'
|
email: attr 'string'
|
||||||
time_zone: attr 'string'
|
time_zone: attr 'string'
|
||||||
address: attr 'string'
|
address: attr 'string'
|
||||||
|
|||||||
@@ -2,6 +2,9 @@
|
|||||||
.form-row
|
.form-row
|
||||||
.form-label: label=t 'attributes.supplier.name'
|
.form-label: label=t 'attributes.supplier.name'
|
||||||
.form-field= input type="text" value=globals.current_supplier.name class="supplier-name"
|
.form-field= input type="text" value=globals.current_supplier.name class="supplier-name"
|
||||||
|
.form-row
|
||||||
|
.form-label: label=t 'attributes.supplier.user_message'
|
||||||
|
.form-field= textarea value=globals.current_supplier.user_message class="supplier-user-message"
|
||||||
.form-row
|
.form-row
|
||||||
.form-label: label=t 'attributes.supplier.email'
|
.form-label: label=t 'attributes.supplier.email'
|
||||||
.form-field= input value=globals.current_supplier.email type="email" class="supplier-email"
|
.form-field= input value=globals.current_supplier.email type="email" class="supplier-email"
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
#App.PageBodyView = Ember.View.extend
|
|
||||||
# setTemplate: (->
|
|
||||||
# body = @get('templateBody')
|
|
||||||
# body ||= ""
|
|
||||||
# try
|
|
||||||
# template = Ember.Handlebars.compile(body)
|
|
||||||
# catch
|
|
||||||
# template = Ember.Handlebars.compile(tspan('page.cannot_compile'))
|
|
||||||
# @set 'template', template
|
|
||||||
# @rerender()
|
|
||||||
# ).on('init').observes('templateBody')
|
|
||||||
@@ -22,6 +22,7 @@ var Qstorage = localStorage;
|
|||||||
$.extend($translations.en, <%= I18n.t('supplier', locale: :en).to_json %>);
|
$.extend($translations.en, <%= I18n.t('supplier', locale: :en).to_json %>);
|
||||||
$.extend($translations.nl, <%= I18n.t('supplier', locale: :nl).to_json %>);
|
$.extend($translations.nl, <%= I18n.t('supplier', locale: :nl).to_json %>);
|
||||||
|
|
||||||
|
|
||||||
String.prototype.capitalize = function() { return this.charAt(0).toUpperCase() + this.slice(1); }
|
String.prototype.capitalize = function() { return this.charAt(0).toUpperCase() + this.slice(1); }
|
||||||
|
|
||||||
window.time_zones = <%= ActiveSupport::TimeZone.all.map{|tz| {name: tz.name, formatted: "GMT#{tz.formatted_offset} #{tz.name}"}}.to_json.html_safe %>;
|
window.time_zones = <%= ActiveSupport::TimeZone.all.map{|tz| {name: tz.name, formatted: "GMT#{tz.formatted_offset} #{tz.name}"}}.to_json.html_safe %>;
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
@ttry = (path, vars={})->
|
@ttry = (path, vars={})->
|
||||||
@t(path, $.extend(vars, emptyWhenNotFound: true))
|
@t(path, $.extend(vars, emptyWhenNotFound: true))
|
||||||
|
|
||||||
|
|
||||||
# return translation in the form
|
# return translation in the form
|
||||||
# <span data-t="models.table">Tafel</span>
|
# <span data-t="models.table">Tafel</span>
|
||||||
@tspan = (path, vars={}) -> "<span data-t='#{path}' class='translation' data-t-attributes='#{JSON.stringify(vars)}'>#{t(path, vars)}</span>"
|
@tspan = (path, vars={}) -> "<span data-t='#{path}' class='translation' data-t-attributes='#{JSON.stringify(vars)}'>#{t(path, vars)}</span>"
|
||||||
|
|||||||
@@ -72,7 +72,8 @@ module Suppliers
|
|||||||
:postal_code,
|
:postal_code,
|
||||||
:city,
|
:city,
|
||||||
:country,
|
:country,
|
||||||
:facebook_promotion_url
|
:facebook_promotion_url,
|
||||||
|
:user_message
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ class Supplier
|
|||||||
property :facebook_promotion_url
|
property :facebook_promotion_url
|
||||||
property :week_starts_on_monday, type: :boolean, default: true
|
property :week_starts_on_monday, type: :boolean, default: true
|
||||||
property :employee_settings_storage
|
property :employee_settings_storage
|
||||||
|
property :user_message
|
||||||
|
|
||||||
# PAYMENT
|
# PAYMENT
|
||||||
property :accept_bitpay, type: :boolean, default: false
|
property :accept_bitpay, type: :boolean, default: false
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
class Suppliers::SupplierSerializer
|
class Suppliers::SupplierSerializer
|
||||||
include Qwaiter::SupplierBaseSerializer
|
include Qwaiter::SupplierBaseSerializer
|
||||||
attributes :open, :name, :email, :lat, :lng, :time_zone, :address, :house_number, :house_number_addition, :postal_code, :city, :country,
|
attributes :open, :name, :email, :lat, :lng, :time_zone, :address, :house_number, :house_number_addition, :postal_code, :city, :country,
|
||||||
:facebook_promotion_url, :iens_profile, :week_starts_on_monday, :orders_in_process_count, :orders_placed_count
|
:facebook_promotion_url, :iens_profile, :week_starts_on_monday, :orders_in_process_count, :orders_placed_count, :user_message
|
||||||
|
|
||||||
has_many :sections, serializer: Suppliers::SectionSerializer
|
has_many :sections, serializer: Suppliers::SectionSerializer
|
||||||
has_many :product_categories, serializer: Suppliers::ProductCategorySerializer
|
has_many :product_categories, serializer: Suppliers::ProductCategorySerializer
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
class Users::SupplierSerializer
|
class Users::SupplierSerializer
|
||||||
include Qwaiter::UserBaseSerializer
|
include Qwaiter::UserBaseSerializer
|
||||||
attributes :open, :name, :orders_placed_count, :orders_in_process_count
|
attributes :open, :name, :orders_placed_count, :orders_in_process_count, :user_message
|
||||||
has_many :product_categories, serializer: Users::ProductCategorySerializer
|
has_many :product_categories, serializer: Users::ProductCategorySerializer
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ module Qwaiter
|
|||||||
|
|
||||||
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
||||||
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
||||||
config.i18n.default_locale = :en
|
config.i18n.default_locale = :nl
|
||||||
config.i18n.available_locales = [:en, :nl]
|
config.i18n.available_locales = [:en, :nl]
|
||||||
|
|
||||||
# Configure the default encoding used in templates for Ruby 1.9.
|
# Configure the default encoding used in templates for Ruby 1.9.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
en:
|
en:
|
||||||
activemodel:
|
activemodel:
|
||||||
models:
|
models:
|
||||||
user: User
|
user: Guest
|
||||||
supplier: Restaurant
|
supplier: Restaurant
|
||||||
new_supplier: New restaurant
|
new_supplier: New restaurant
|
||||||
table: Table
|
table: Table
|
||||||
@@ -19,7 +19,7 @@ en:
|
|||||||
section_element: Section element
|
section_element: Section element
|
||||||
section_area: Section area
|
section_area: Section area
|
||||||
plural:
|
plural:
|
||||||
user: Users
|
user: Guests
|
||||||
supplier: Restaurants
|
supplier: Restaurants
|
||||||
new_supplier: New restaurants
|
new_supplier: New restaurants
|
||||||
table: Tables
|
table: Tables
|
||||||
@@ -69,6 +69,7 @@ en:
|
|||||||
created_at: Created
|
created_at: Created
|
||||||
supplier:
|
supplier:
|
||||||
name: ${models.supplier} name
|
name: ${models.supplier} name
|
||||||
|
user_message: Message for ${models.plural.user}
|
||||||
email: 'Email'
|
email: 'Email'
|
||||||
password: 'Password'
|
password: 'Password'
|
||||||
password_confirmation: 'Confirmation'
|
password_confirmation: 'Confirmation'
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
nl:
|
nl:
|
||||||
activemodel:
|
activemodel:
|
||||||
models:
|
models:
|
||||||
user: Gebruiker
|
user: Gast
|
||||||
supplier: Restaurant
|
supplier: Restaurant
|
||||||
new_supplier: Nieuw restaurant
|
new_supplier: Nieuw restaurant
|
||||||
table: Tafel
|
table: Tafel
|
||||||
@@ -18,7 +18,7 @@ nl:
|
|||||||
section_element: Ruimte element
|
section_element: Ruimte element
|
||||||
section_area: Ruimte blok
|
section_area: Ruimte blok
|
||||||
plural:
|
plural:
|
||||||
user: Gebruikers
|
user: Gasten
|
||||||
supplier: Restaurants
|
supplier: Restaurants
|
||||||
new_supplier: Nieuwe restaurants
|
new_supplier: Nieuwe restaurants
|
||||||
table: Tafels
|
table: Tafels
|
||||||
@@ -68,6 +68,7 @@ nl:
|
|||||||
created_at: Aangemaakt
|
created_at: Aangemaakt
|
||||||
supplier:
|
supplier:
|
||||||
name: ${models.supplier} naam
|
name: ${models.supplier} naam
|
||||||
|
user_message: Bericht voor ${models.plural.user}
|
||||||
email: 'E-mail'
|
email: 'E-mail'
|
||||||
password: 'Wachtwoord'
|
password: 'Wachtwoord'
|
||||||
password_confirmation: 'Bevestiging'
|
password_confirmation: 'Bevestiging'
|
||||||
|
|||||||
+1
-1
@@ -208,7 +208,7 @@ Qwaiter::Application.routes.draw do
|
|||||||
#devise_scope :supplier do
|
#devise_scope :supplier do
|
||||||
#get '/:locale/suppliers/sign_up' => 'registrations#new', constraints: {locale: ALLOWED_LOCALES}
|
#get '/:locale/suppliers/sign_up' => 'registrations#new', constraints: {locale: ALLOWED_LOCALES}
|
||||||
#end
|
#end
|
||||||
scope '(/:locale)', constraints: {locale: ALLOWED_LOCALES}, defaults: { locale: 'en' } do
|
scope '(/:locale)', constraints: {locale: ALLOWED_LOCALES}, defaults: { locale: Rails.application.config.i18n.default_locale } do
|
||||||
root to: 'pages#home'
|
root to: 'pages#home'
|
||||||
resources :contact_forms, only: [:create]
|
resources :contact_forms, only: [:create]
|
||||||
resources :new_suppliers
|
resources :new_suppliers
|
||||||
|
|||||||
@@ -1,8 +1,19 @@
|
|||||||
Release
|
Release
|
||||||
=======
|
=======
|
||||||
|
|
||||||
|
Release todos:
|
||||||
|
--------------
|
||||||
|
- Make font-awesome icons work
|
||||||
|
- Render supplier info pages (page-body)
|
||||||
|
- Drag drop on tablet persisting
|
||||||
|
- Top menu height for ipad resolution
|
||||||
|
- Release android version of MozoUser
|
||||||
|
- Maybe responsive supplier dashboard
|
||||||
|
|
||||||
Supplier
|
Supplier
|
||||||
--------
|
--------
|
||||||
|
- Better message when signing up and already logged in, give link to go
|
||||||
|
to current supplier!!!
|
||||||
- fix page-body template compile view
|
- fix page-body template compile view
|
||||||
- Add supplier specific name field to my_account
|
- Add supplier specific name field to my_account
|
||||||
- Add styling to active class active navigation items in top menu, side
|
- Add styling to active class active navigation items in top menu, side
|
||||||
@@ -20,9 +31,11 @@ Supplier
|
|||||||
- Change list table
|
- Change list table
|
||||||
- Set product_category day from false to true
|
- Set product_category day from false to true
|
||||||
- Product order check for product being active
|
- Product order check for product being active
|
||||||
|
- Add product_variant price_difference
|
||||||
|
|
||||||
User
|
User
|
||||||
----
|
----
|
||||||
|
- Check test ordering just inactivated product
|
||||||
- Implement https://github.com/EddyVerbruggen/Custom-URL-scheme with mozo:// scheme
|
- Implement https://github.com/EddyVerbruggen/Custom-URL-scheme with mozo:// scheme
|
||||||
- test met veel producten
|
- test met veel producten
|
||||||
- remove active orders on list close
|
- remove active orders on list close
|
||||||
|
|||||||
Reference in New Issue
Block a user