Start with supplier foundation style
This commit is contained in:
@@ -10,69 +10,42 @@ html lang="en"
|
||||
/! Le HTML5 shim, for IE6-8 support of HTML elements
|
||||
/[if lt IE 9]
|
||||
= javascript_include_tag "http://html5shim.googlecode.com/svn/trunk/html5.js"
|
||||
= stylesheet_link_tag "supplier/wood1/application", media: "all"
|
||||
= stylesheet_link_tag "supplier/foundation1/application", media: "all"
|
||||
link href="/favicon.ico" rel="shortcut icon"
|
||||
= render 'suppliers/application/head'
|
||||
= javascript_include_tag "supplier/application"
|
||||
= javascript_include_tag "supplier/foundation1/application"
|
||||
= yield :head
|
||||
|
||||
body
|
||||
.navbar.navbar-fixed-top.navbar-inverse
|
||||
.navbar-inner
|
||||
.container
|
||||
a.btn.btn-navbar data-target=".nav-collapse" data-toggle="collapse"
|
||||
span.icon-bar
|
||||
span.icon-bar
|
||||
span.icon-bar
|
||||
a.brand href=supplier_root_path = image_tag 'icons/logo-small.png', alt: application_title
|
||||
ul.nav.pull-right
|
||||
li.dropdown
|
||||
a.dropdown-toggle href="#" data-toggle="dropdown"
|
||||
= current_supplier.name.presence || current_supplier.email
|
||||
b.caret
|
||||
ul.dropdown-menu
|
||||
- if current_supplier.open?
|
||||
li
|
||||
= form_tag supplier_mark_as_closed_path do
|
||||
= submit_tag t('supplier.close'), class: [:btn, 'btn-danger'], onClick: %|$(this).parents('form').submit()|
|
||||
li= link_to 'Settings', supplier_settings_path
|
||||
li= link_to 'Logout', destroy_supplier_session_path, method: :delete
|
||||
.container.nav-collapse
|
||||
ul.nav#top-navigation-list
|
||||
//li= link_to t('supplier.menu.active_orders', orders: Order.model_name.human_plural), supplier_active_orders_path
|
||||
//li= link_to t('supplier.menu.active_lists', lists: List.model_name.human_plural), supplier_active_lists_path
|
||||
li= link_to ProductCategory.model_name.human_plural, suppliers_product_categories_path, data: {t: 'models.plural.product_category'}
|
||||
li= link_to Product.model_name.human_plural, suppliers_products_path, data: {t: 'models.plural.product'}
|
||||
li= link_to Section.model_name.human_plural, suppliers_sections_path, data: {t: 'models.plural.section'}
|
||||
li= link_to Table.model_name.human_plural, suppliers_tables_path, data: {t: 'models.plural.table'}
|
||||
li= link_to List.model_name.human_plural, suppliers_lists_path, data: {t: 'models.plural.list'}
|
||||
.container
|
||||
.content.main-content
|
||||
- if flash[:alert].present?
|
||||
.alert.alert-error
|
||||
a.close data-dismiss="alert" ×
|
||||
div= flash[:alert]
|
||||
- if flash[:notice].present?
|
||||
.alert.alert-success
|
||||
a.close data-dismiss="alert" ×
|
||||
div= flash[:notice]
|
||||
- if current_supplier.closed?
|
||||
.row.supplier-is-closed
|
||||
= render 'suppliers/application/top_menu'
|
||||
main.main-section
|
||||
.container
|
||||
.content.main-content
|
||||
- if flash[:alert].present?
|
||||
.alert.alert-error
|
||||
a.close data-dismiss="alert" ×
|
||||
div= flash[:alert]
|
||||
- if flash[:notice].present?
|
||||
.alert.alert-success
|
||||
a.close data-dismiss="alert" ×
|
||||
div= flash[:notice]
|
||||
- if current_supplier.closed?
|
||||
.row.supplier-is-closed
|
||||
.span12
|
||||
.alert.alert-block
|
||||
button.close{data-dismiss="alert"} x
|
||||
p = t('supplier.you_are_currently_closed_alert')
|
||||
= form_tag supplier_mark_as_open_path do
|
||||
= submit_tag t('supplier.mark_as_open_button'), class: [:btn, 'btn-primary']
|
||||
.row
|
||||
.span12
|
||||
.alert.alert-block
|
||||
button.close{data-dismiss="alert"} x
|
||||
p = t('supplier.you_are_currently_closed_alert')
|
||||
= form_tag supplier_mark_as_open_path do
|
||||
= submit_tag t('supplier.mark_as_open_button'), class: [:btn, 'btn-primary']
|
||||
.row
|
||||
.span12
|
||||
= content_for?(:content) ? yield(:content) : yield
|
||||
- if content_for?(:row)
|
||||
.row= yield :row
|
||||
.row
|
||||
.span12
|
||||
#ember-app-container
|
||||
script#alert-template[type="text/html"]= mustache_template 'supplier/alert'
|
||||
= yield :footer
|
||||
javascript:
|
||||
jQuery(function(){#{onload_javascript}});
|
||||
= content_for?(:content) ? yield(:content) : yield
|
||||
- if content_for?(:row)
|
||||
.row= yield :row
|
||||
.row
|
||||
.span12
|
||||
#ember-app-container
|
||||
script#alert-template[type="text/html"]= mustache_template 'supplier/alert'
|
||||
= yield :footer
|
||||
javascript:
|
||||
jQuery(function(){#{onload_javascript}});
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
header.top-menu
|
||||
.toggle-side-menu
|
||||
span
|
||||
.menu-content
|
||||
section.main-buttons
|
||||
//li= link_to t('supplier.menu.active_orders', orders: Order.model_name.human_plural), supplier_active_orders_path
|
||||
//li= link_to t('supplier.menu.active_lists', lists: List.model_name.human_plural), supplier_active_lists_path
|
||||
= link_to image_tag('icons/logo-small.png'), supplier_root_path
|
||||
= link_to ProductCategory.model_name.human_plural, suppliers_product_categories_path, data: {t: 'models.plural.product_category'}
|
||||
= link_to Product.model_name.human_plural, suppliers_products_path, data: {t: 'models.plural.product'}
|
||||
= link_to Section.model_name.human_plural, suppliers_sections_path, data: {t: 'models.plural.section'}
|
||||
= link_to Table.model_name.human_plural, suppliers_tables_path, data: {t: 'models.plural.table'}
|
||||
= link_to List.model_name.human_plural, suppliers_lists_path, data: {t: 'models.plural.list'}
|
||||
section.extra-info
|
||||
.supplier-info-row
|
||||
.supplier-name= current_supplier.name.presence || current_supplier.email
|
||||
.table-number
|
||||
.supplier-info-row
|
||||
.counter.supplier-orders-placed-count
|
||||
= current_supplier.orders_placed_count
|
||||
span.orders-placed-count-icon
|
||||
.counter.supplier-orders-in-process-count
|
||||
= current_supplier.orders_in_process_count
|
||||
span.orders-in-process-count-icon
|
||||
aside.side-menu
|
||||
ul
|
||||
li
|
||||
label Menu
|
||||
- if current_supplier.open?
|
||||
li
|
||||
= form_tag supplier_mark_as_closed_path do
|
||||
= submit_tag t('supplier.close'), class: [:btn, 'btn-danger'], onClick: %|$(this).parents('form').submit()|
|
||||
li= link_to 'Settings', supplier_settings_path
|
||||
li= link_to 'Logout', destroy_supplier_session_path, method: :delete
|
||||
/.navbar.navbar-fixed-top.navbar-inverse
|
||||
.navbar-inner
|
||||
.container
|
||||
a.btn.btn-navbar data-target=".nav-collapse" data-toggle="collapse"
|
||||
span.icon-bar
|
||||
span.icon-bar
|
||||
span.icon-bar
|
||||
a.brand href=supplier_root_path = image_tag 'icons/logo-small.png', alt: application_title
|
||||
ul.nav.pull-right
|
||||
li.dropdown
|
||||
a.dropdown-toggle href="#" data-toggle="dropdown"
|
||||
= current_supplier.name.presence || current_supplier.email
|
||||
b.caret
|
||||
ul.dropdown-menu
|
||||
- if current_supplier.open?
|
||||
li
|
||||
= form_tag supplier_mark_as_closed_path do
|
||||
= submit_tag t('supplier.close'), class: [:btn, 'btn-danger'], onClick: %|$(this).parents('form').submit()|
|
||||
li= link_to 'Settings', supplier_settings_path
|
||||
li= link_to 'Logout', destroy_supplier_session_path, method: :delete
|
||||
.container.nav-collapse
|
||||
ul.nav#top-navigation-list
|
||||
//li= link_to t('supplier.menu.active_orders', orders: Order.model_name.human_plural), supplier_active_orders_path
|
||||
//li= link_to t('supplier.menu.active_lists', lists: List.model_name.human_plural), supplier_active_lists_path
|
||||
li= link_to ProductCategory.model_name.human_plural, suppliers_product_categories_path, data: {t: 'models.plural.product_category'}
|
||||
li= link_to Product.model_name.human_plural, suppliers_products_path, data: {t: 'models.plural.product'}
|
||||
li= link_to Section.model_name.human_plural, suppliers_sections_path, data: {t: 'models.plural.section'}
|
||||
li= link_to Table.model_name.human_plural, suppliers_tables_path, data: {t: 'models.plural.table'}
|
||||
li= link_to List.model_name.human_plural, suppliers_lists_path, data: {t: 'models.plural.list'}
|
||||
@@ -18,7 +18,7 @@
|
||||
button.week-day-toggle.btn type="button" data-day=day_name data-t="product_category.week_days.abbreviation.#{day_name}"
|
||||
|
||||
|
||||
span#full_day-controller.icon.icon-time
|
||||
span#full_day-controller
|
||||
#sub-day-container.hide
|
||||
= f.input_field :start_from, as: :select, collection: (1..24).map{|h| ["#{h}:00", h*60]}
|
||||
= f.input_field :end_on, as: :select, collection: (1..24).map{|h| ["#{h}:00", h*60]}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
ul#product-category-list data-update-url=sort_suppliers_product_categories_path
|
||||
- for product_category in @product_categories
|
||||
= content_tag_for :li, product_category do
|
||||
span.handle.icon-move.icon-white
|
||||
span.handle.fa.fa-arrows
|
||||
span.name= link_to product_category.name, [:suppliers, product_category]
|
||||
span= product_category.visible_on
|
||||
.pull-right.actions
|
||||
|
||||
@@ -33,4 +33,4 @@ div.page-header= title :index, model_class
|
||||
.form-actions
|
||||
= link_to t("helpers.links.new"), new_suppliers_table_path, class: 'btn btn-primary', data: {t: 'helpers.links.new'}
|
||||
'
|
||||
= link_to t('supplier.tables.qr_codes.link'), qr_codes_suppliers_tables_path, class: 'btn btn-info', data: {t: 'tables.qr_codes.link'}
|
||||
= link_to t('supplier.tables.qr_codes.link'), qr_codes_suppliers_tables_path(params.slice(:from_number, :to_number)), class: 'btn btn-info', data: {t: 'tables.qr_codes.link'}, target: :_blank
|
||||
|
||||
Reference in New Issue
Block a user