Better suppliers menu
This commit is contained in:
@@ -1,24 +1,26 @@
|
|||||||
if editMode
|
if editMode
|
||||||
.row
|
.row
|
||||||
.small-3.columns.name
|
.small-6.medium-3.columns.name
|
||||||
= input value=product.name placeholder=namePlaceholder action="save"
|
= input value=product.name placeholder=namePlaceholder action="save"
|
||||||
= errors product.errors.name
|
= errors product.errors.name
|
||||||
.small-3.columns.price
|
.small-6.medium-3.columns.actions
|
||||||
= edit-currency value=product.price action="save"
|
|
||||||
= errors product.errors.price
|
|
||||||
.small-3.columns.code= input value=product.code placeholder=codePlaceholder
|
|
||||||
.small-3.columns.actions
|
|
||||||
a.rollback-product-action{action "rollbackProduct"}: span
|
a.rollback-product-action{action "rollbackProduct"}: span
|
||||||
a.destroy-product-action{action "destroyProduct" product}: span
|
a.destroy-product-action{action "destroyProduct" product}: span
|
||||||
a.save-product-action{action "save"}: span
|
a.save-product-action{action "save"}: span
|
||||||
|
.small-6.medium-3.columns.price
|
||||||
|
= edit-currency value=product.price action="save"
|
||||||
|
= errors product.errors.price
|
||||||
|
.small-6.medium-3.columns.code= input value=product.code placeholder=codePlaceholder
|
||||||
.row
|
.row
|
||||||
.small-4.large-2.columns= t 'attributes.product.active'
|
.small-3.columns= t 'attributes.product.active'
|
||||||
.small-8.large-10.columns: view boolean-switch value=product.active
|
.small-9.columns: view boolean-switch value=product.active
|
||||||
.row.menu-product-container
|
.row.menu-product-container
|
||||||
.medium-4.small-6.columns
|
.small-12.medium-6.columns
|
||||||
|
= descriptionPlaceholder
|
||||||
|
= textarea value=product.description placeholder=descriptionPlaceholder
|
||||||
|
.small-12.medium-6.columns
|
||||||
= view "upload-file" name="image" accept="image/*" file=product.image
|
= view "upload-file" name="image" accept="image/*" file=product.image
|
||||||
.medium-4.small-6.columns: img src=product.image_src
|
img src=product.image_src
|
||||||
.medium-4.small-6.columns= textarea value=product.description placeholder=descriptionPlaceholder
|
|
||||||
else
|
else
|
||||||
if showProduct
|
if showProduct
|
||||||
.row
|
.row
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
.side-menu
|
.side-menu
|
||||||
ul
|
ul
|
||||||
li.title: h3 Menu
|
li.title: h3= supplier.name
|
||||||
li.supplier-name= supplier.name
|
|
||||||
can manage supplier
|
can manage supplier
|
||||||
if supplier.open
|
if supplier.open
|
||||||
li: a.supplier-close-shop{action "markSupplierClosed"}= t 'supplier.close_for_orders'
|
li: a.supplier-close-shop{action "markSupplierClosed"}= t 'supplier.close_for_orders'
|
||||||
@@ -11,7 +10,31 @@
|
|||||||
=link-to 'settings' class="supplier-settings-link"
|
=link-to 'settings' class="supplier-settings-link"
|
||||||
span.settings-icon
|
span.settings-icon
|
||||||
span= t 'supplier.settings'
|
span= t 'supplier.settings'
|
||||||
li class="supplier-sign-out-link"
|
li
|
||||||
|
= link-to 'index'
|
||||||
|
span.fa.fa-list-alt
|
||||||
|
= t 'dashboard.title'
|
||||||
|
li
|
||||||
|
= link-to 'menu'
|
||||||
|
span.fa.fa-coffee
|
||||||
|
= t 'top_menu.menu'
|
||||||
|
li
|
||||||
|
= link-to 'sections'
|
||||||
|
span.fa.fa-th-large
|
||||||
|
= t 'models.plural.section'
|
||||||
|
li
|
||||||
|
= link-to 'tables'
|
||||||
|
span.fa.fa-square-o
|
||||||
|
= t 'models.plural.table'
|
||||||
|
li
|
||||||
|
= link-to 'employees'
|
||||||
|
span.fa.fa-users
|
||||||
|
= t 'models.plural.employee'
|
||||||
|
li
|
||||||
|
= link-to 'schedule'
|
||||||
|
span.fa.fa-calendar
|
||||||
|
= t 'top_menu.schedule'
|
||||||
|
li.supplier-sign-out-link
|
||||||
a{action "signOut"}
|
a{action "signOut"}
|
||||||
span.sign-out-icon
|
span.sign-out-icon
|
||||||
= t 'supplier.sign_out'
|
= t 'supplier.sign_out'
|
||||||
|
|||||||
@@ -15,6 +15,9 @@
|
|||||||
margin-bottom: 3px
|
margin-bottom: 3px
|
||||||
ul
|
ul
|
||||||
list-style: none
|
list-style: none
|
||||||
|
li
|
||||||
|
font-size: 1.2em
|
||||||
|
margin-bottom: 11px
|
||||||
a
|
a
|
||||||
color: white
|
color: white
|
||||||
.title
|
.title
|
||||||
@@ -27,8 +30,10 @@
|
|||||||
margin-right: 18px
|
margin-right: 18px
|
||||||
@extend .fa, .fa-info-circle
|
@extend .fa, .fa-info-circle
|
||||||
.sign-out-icon
|
.sign-out-icon
|
||||||
margin-right: 18px
|
|
||||||
@extend .fa, .fa-caret-square-o-left
|
@extend .fa, .fa-caret-square-o-left
|
||||||
|
margin-right: 18px
|
||||||
|
.fa
|
||||||
|
margin-right: 18px
|
||||||
.supplier-close-shop
|
.supplier-close-shop
|
||||||
+alert($bg: $alert-color, $radius: true)
|
+alert($bg: $alert-color, $radius: true)
|
||||||
padding: 3px
|
padding: 3px
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ en:
|
|||||||
supplier: Restaurant
|
supplier: Restaurant
|
||||||
new_supplier: New restaurant
|
new_supplier: New restaurant
|
||||||
table: Table
|
table: Table
|
||||||
list: List
|
list: Tap
|
||||||
product: Product
|
product: Product
|
||||||
order: Order
|
order: Order
|
||||||
product_category: Product category
|
product_category: Product category
|
||||||
@@ -22,7 +22,7 @@ en:
|
|||||||
supplier: Restaurants
|
supplier: Restaurants
|
||||||
new_supplier: New restaurants
|
new_supplier: New restaurants
|
||||||
table: Tables
|
table: Tables
|
||||||
list: Lists
|
list: Taps
|
||||||
product: Products
|
product: Products
|
||||||
order: Orders
|
order: Orders
|
||||||
product_category: Product categories
|
product_category: Product categories
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ nl:
|
|||||||
supplier: Restaurant
|
supplier: Restaurant
|
||||||
new_supplier: Nieuw restaurant
|
new_supplier: Nieuw restaurant
|
||||||
table: Tafel
|
table: Tafel
|
||||||
list: Lijst
|
list: Bon
|
||||||
product: Product
|
product: Product
|
||||||
order: Bestelling
|
order: Bestelling
|
||||||
product_category: Product categorie
|
product_category: Product categorie
|
||||||
@@ -21,7 +21,7 @@ nl:
|
|||||||
supplier: Restaurants
|
supplier: Restaurants
|
||||||
new_supplier: Nieuwe restaurants
|
new_supplier: Nieuwe restaurants
|
||||||
table: Tafels
|
table: Tafels
|
||||||
list: Lijsten
|
list: Bonnen
|
||||||
product: Producten
|
product: Producten
|
||||||
order: Bestellingen
|
order: Bestellingen
|
||||||
product_category: Product categorieen
|
product_category: Product categorieen
|
||||||
|
|||||||
@@ -18,18 +18,19 @@ en:
|
|||||||
Happy ordering!
|
Happy ordering!
|
||||||
button: Sign up
|
button: Sign up
|
||||||
dashboard:
|
dashboard:
|
||||||
|
title: Dashboard
|
||||||
active_lists:
|
active_lists:
|
||||||
no_lists: No active lists
|
no_lists: No active ${models.list|downcase}
|
||||||
active_orders:
|
active_orders:
|
||||||
no_orders: No active orders
|
no_orders: No active ${models.plural.order|downcase}
|
||||||
top_menu:
|
top_menu:
|
||||||
menu: Menu
|
menu: Menu
|
||||||
schedule: Schedule
|
schedule: Schedule
|
||||||
active_lists:
|
active_lists:
|
||||||
title: Active lists
|
title: Active ${models.plural.list|downcase}
|
||||||
price: Price
|
price: Price
|
||||||
active_orders:
|
active_orders:
|
||||||
title: Active orders
|
title: Active ${models.plural.order|downcase}
|
||||||
price: Price
|
price: Price
|
||||||
supplier:
|
supplier:
|
||||||
close_for_orders: Close the shop
|
close_for_orders: Close the shop
|
||||||
@@ -42,8 +43,8 @@ en:
|
|||||||
table:
|
table:
|
||||||
print_qr_codes: Print Qr codes
|
print_qr_codes: Print Qr codes
|
||||||
add_tables_first:
|
add_tables_first:
|
||||||
title: Add tables first
|
title: Add ${models.plural.table|downcase} first
|
||||||
body: To be able to print QR-codes, you first need to add tables. Each table has its own QR-code
|
body: To be able to print QR-codes, you first need to add ${models.plural.table|downcase}. Each table has its own QR-code
|
||||||
destroy:
|
destroy:
|
||||||
modal:
|
modal:
|
||||||
title: Are you sure you want to delete ${models.table} %{number}
|
title: Are you sure you want to delete ${models.table} %{number}
|
||||||
@@ -55,9 +56,9 @@ en:
|
|||||||
new_button: Add ${models.table|downcase}
|
new_button: Add ${models.table|downcase}
|
||||||
lists:
|
lists:
|
||||||
index:
|
index:
|
||||||
show_all: Show all ${models.plural.list}
|
show_all: Show all ${models.plural.list|downcase}
|
||||||
show_active: Show active ${models.plural.list}
|
show_active: Show active ${models.plural.list}
|
||||||
show_list_on_day: Lists on date
|
show_list_on_day: ${models.list} on date
|
||||||
show:
|
show:
|
||||||
title: Show %{list}
|
title: Show %{list}
|
||||||
users: Clients
|
users: Clients
|
||||||
@@ -65,7 +66,7 @@ en:
|
|||||||
is_helped_button: Question answered!
|
is_helped_button: Question answered!
|
||||||
close_list: Close!
|
close_list: Close!
|
||||||
none_found: 'No ${models.plural.list|downcase}'
|
none_found: 'No ${models.plural.list|downcase}'
|
||||||
go_to_lists: Go to lists
|
go_to_lists: Go to ${models.plural.list}
|
||||||
close:
|
close:
|
||||||
modal:
|
modal:
|
||||||
title: Are you sure yout want to close the ${models.list}
|
title: Are you sure yout want to close the ${models.list}
|
||||||
@@ -78,21 +79,21 @@ en:
|
|||||||
sections_header:
|
sections_header:
|
||||||
all_sections: All
|
all_sections: All
|
||||||
section:
|
section:
|
||||||
first_section_title: Room
|
first_section_title: Inside
|
||||||
show:
|
show:
|
||||||
title: 'Show ${models.section|downcase}'
|
title: 'Show ${models.section|downcase}'
|
||||||
manage_tables:
|
manage_tables:
|
||||||
link: 'Manage tables'
|
link: 'Manage ${models.plural.table|downcase}'
|
||||||
title: "Manage tables for ${models.section|downcase}: %{title}"
|
title: "Manage ${models.plural.table|downcase} for ${models.section|downcase}: %{title}"
|
||||||
tables_view:
|
tables_view:
|
||||||
link: 'Tables view'
|
link: '${models.plural.table} view'
|
||||||
table_actions:
|
table_actions:
|
||||||
title: '${models.table} actions'
|
title: '${models.table} actions'
|
||||||
got_to_table: 'Go to ${models.table|downcase}'
|
got_to_table: 'Go to ${models.table|downcase}'
|
||||||
add_tables:
|
add_tables:
|
||||||
button_label: Add tables
|
button_label: Add ${models.plural.table|downcase}
|
||||||
modal:
|
modal:
|
||||||
title: Add tables
|
title: Add ${models.plural.table|downcase}
|
||||||
body_header: ""
|
body_header: ""
|
||||||
number_start: From number
|
number_start: From number
|
||||||
number_end: Till number
|
number_end: Till number
|
||||||
@@ -107,11 +108,11 @@ en:
|
|||||||
close_button: Close
|
close_button: Close
|
||||||
add_button: Create
|
add_button: Create
|
||||||
arrange_tables:
|
arrange_tables:
|
||||||
button_label: Arrange tables
|
button_label: Arrange ${models.plural.table|downcase}
|
||||||
by_row_no_row_count: 'Please fill in a positive number representing the number of ${models.plural.table|downcase} per row'
|
by_row_no_row_count: 'Please fill in a positive number representing the number of ${models.plural.table|downcase} per row'
|
||||||
by_column_no_column_count: 'Please fill in a positive number representing the number of ${models.plural.table|downcase} per column'
|
by_column_no_column_count: 'Please fill in a positive number representing the number of ${models.plural.table|downcase} per column'
|
||||||
modal:
|
modal:
|
||||||
title: Arrange tables
|
title: Arrange ${models.plural.table|downcase}
|
||||||
body_header: ""
|
body_header: ""
|
||||||
distributed:
|
distributed:
|
||||||
title: Distributed
|
title: Distributed
|
||||||
@@ -126,7 +127,7 @@ en:
|
|||||||
after_field: ' ${models.plural.table}'
|
after_field: ' ${models.plural.table}'
|
||||||
close_button: Close
|
close_button: Close
|
||||||
arrange_button: Distribute
|
arrange_button: Distribute
|
||||||
cannot_arrange: 'The tables could not be arranged. Does the ${models.section|downcase} have a width and a height?'
|
cannot_arrange: 'The ${models.plural.table|downcase} could not be arranged. Does the ${models.section|downcase} have a width and a height?'
|
||||||
settings:
|
settings:
|
||||||
title: Settings
|
title: Settings
|
||||||
save: Save settings
|
save: Save settings
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ nl:
|
|||||||
Hierna kan je aan de slag met mobiel bestellen!
|
Hierna kan je aan de slag met mobiel bestellen!
|
||||||
button: Aanmelden
|
button: Aanmelden
|
||||||
dashboard:
|
dashboard:
|
||||||
|
title: Dashboard
|
||||||
active_lists:
|
active_lists:
|
||||||
no_lists: Geen actieve ${models.plural.list}
|
no_lists: Geen actieve ${models.plural.list}
|
||||||
active_orders:
|
active_orders:
|
||||||
@@ -25,7 +26,7 @@ nl:
|
|||||||
menu: Menu
|
menu: Menu
|
||||||
schedule: Schema
|
schedule: Schema
|
||||||
active_lists:
|
active_lists:
|
||||||
title: Actieve lijsten
|
title: Actieve ${models.plural.list|downcase}
|
||||||
price: Prijs
|
price: Prijs
|
||||||
active_orders:
|
active_orders:
|
||||||
title: Actieve orders
|
title: Actieve orders
|
||||||
|
|||||||
Reference in New Issue
Block a user