move towards mobile deployable app
This commit is contained in:
@@ -11,13 +11,15 @@ html lang="en"
|
||||
/[if lt IE 9]
|
||||
= javascript_include_tag "http://html5shim.googlecode.com/svn/trunk/html5.js"
|
||||
= stylesheet_link_tag "user/application", :media => "all"
|
||||
link href="images/apple-touch-icon-144x144.png" rel="apple-touch-icon-precomposed" sizes="144x144"
|
||||
link href="images/apple-touch-icon-114x114.png" rel="apple-touch-icon-precomposed" sizes="114x114"
|
||||
link href="images/apple-touch-icon-72x72.png" rel="apple-touch-icon-precomposed" sizes="72x72"
|
||||
link href="images/apple-touch-icon.png" rel="apple-touch-icon-precomposed"
|
||||
link href="/images/apple-touch-icon-144x144.png" rel="apple-touch-icon-precomposed" sizes="144x144"
|
||||
link href="/images/apple-touch-icon-114x114.png" rel="apple-touch-icon-precomposed" sizes="114x114"
|
||||
link href="/images/apple-touch-icon-72x72.png" rel="apple-touch-icon-precomposed" sizes="72x72"
|
||||
link href="/images/apple-touch-icon.png" rel="apple-touch-icon-precomposed"
|
||||
link href="/favicon.ico" rel="shortcut icon"
|
||||
javascript:
|
||||
var QMobile;
|
||||
var data_host = 'http://localhost:3000';
|
||||
var root_url = 'file:///Users/bterkuile/Documents/workspace/Qwaiter/assets';
|
||||
// Dummy holder when Qmobile object is not supplied by the mobile phone
|
||||
QMobile || (QMobile = {
|
||||
scanQr: function(){window.location = '/select_qrcode'},
|
||||
@@ -33,7 +35,7 @@ html lang="en"
|
||||
span.icon-bar
|
||||
span.icon-bar
|
||||
span.icon-bar
|
||||
a.brand href=user_root_path = image_tag 'icons/logo-small.png', alt: application_title
|
||||
= link_to image_tag('icons/logo-small.png', alt: application_title), user_root_path, class: :brand
|
||||
.container.nav-collapse
|
||||
ul.nav#top-navigation-list
|
||||
li= link_to 'View history', user_list_history_path
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
.page-header= title t('user.history_list.title', list: List.model_name.human)
|
||||
dl.dl-horizontal
|
||||
dt= List.human_attribute_name(:created_at)
|
||||
dd= l @list.created_at, format: :short
|
||||
dd.list-created-at
|
||||
dt= Supplier.model_name.human
|
||||
dd= @list.supplier.name
|
||||
dd.supplier-name
|
||||
.well
|
||||
table#history-list-table.table
|
||||
thead
|
||||
|
||||
@@ -4,6 +4,11 @@
|
||||
a href="#" onClick="QMobile.scanQr()" = image_tag 'scan-logo.png'
|
||||
.home-footer
|
||||
.home-footer-content
|
||||
- if list_open?
|
||||
= link_to 'P', user_list_products_path, class: 'home-menu-link'
|
||||
= link_to 'L', user_active_list_path, class: 'home-list-link'
|
||||
= link_to 'P', user_list_products_path, class: [:hide, 'home-link', 'home-menu-link']
|
||||
= link_to 'L', user_active_list_path, class: [:hide, 'home-link', 'home-list-link']
|
||||
- content_for :footer do
|
||||
javascript:
|
||||
$(function(){
|
||||
Quser.home_loader();
|
||||
setInterval("Quser.home_loader()", 7500);
|
||||
});
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
.page-header
|
||||
.table-number= @table.number
|
||||
.supplier-name= @table.supplier.name
|
||||
.table-number
|
||||
.supplier-name
|
||||
h4= t('user.show_products.title', products: Product.model_name.human_plural)
|
||||
.well
|
||||
table#products-table.table.table-hover
|
||||
|
||||
Reference in New Issue
Block a user