This commit is contained in:
2014-05-14 12:12:26 +02:00
parent 772b647406
commit 055a1071db
12 changed files with 48 additions and 46 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ gem 'couch_potato' , github: 'bterkuile/couch_potato'
gem 'simply_stored', path: './../components/simply_stored' #, github: 'bterkuile/simply_stored' gem 'simply_stored', path: './../components/simply_stored' #, github: 'bterkuile/simply_stored'
gem 'orm_adapter', github: 'bterkuile/orm_adapter' gem 'orm_adapter', github: 'bterkuile/orm_adapter'
gem 'devise' #, '3.1.0' #, '2.0.4' gem 'devise' #, '3.1.0' #, '2.0.4'
gem 'devise_simply_stored', github: 'bterkuile/devise_simply_stored' #gem 'devise_simply_stored', github: 'bterkuile/devise_simply_stored'
gem "omniauth-facebook" gem "omniauth-facebook"
gem 'simple_form' gem 'simple_form'
gem 'active_decorator' #, path: '/Users/bterkuile/companytools/development/rails/components/active_decorator' gem 'active_decorator' #, path: '/Users/bterkuile/companytools/development/rails/components/active_decorator'
+7 -14
View File
@@ -16,13 +16,6 @@ GIT
couchbase-docstore (>= 0.1.2) couchbase-docstore (>= 0.1.2)
couchbase-settings (>= 0.1.0) couchbase-settings (>= 0.1.0)
GIT
remote: git://github.com/bterkuile/devise_simply_stored.git
revision: 8fdaed396a7e9566fe6cb59b64d950953c8506a6
specs:
devise_simply_stored (0.1.0)
devise
GIT GIT
remote: git://github.com/bterkuile/orm_adapter.git remote: git://github.com/bterkuile/orm_adapter.git
revision: e0b5f652c8d1eda8c0f6636f3b3d17d598603450 revision: e0b5f652c8d1eda8c0f6636f3b3d17d598603450
@@ -37,6 +30,7 @@ PATH
email_validator email_validator
haml-rails haml-rails
jquery-rails jquery-rails
rails (>= 4.1.0)
slim-rails slim-rails
tinymce-rails tinymce-rails
@@ -90,7 +84,7 @@ GEM
barber (>= 0.4.1) barber (>= 0.4.1)
emblem-source emblem-source
bcrypt (3.1.7) bcrypt (3.1.7)
bourbon (3.2.0) bourbon (3.2.1)
sass (~> 3.2) sass (~> 3.2)
thor thor
builder (3.2.2) builder (3.2.2)
@@ -160,7 +154,7 @@ GEM
handlebars-source handlebars-source
jquery-rails (>= 1.0.17) jquery-rails (>= 1.0.17)
railties (>= 3.1) railties (>= 3.1)
ember-source (1.5.0) ember-source (1.5.1.1)
handlebars-source (~> 1.0) handlebars-source (~> 1.0)
emblem-rails (0.2.1) emblem-rails (0.2.1)
barber-emblem (~> 0.1.1) barber-emblem (~> 0.1.1)
@@ -184,10 +178,10 @@ GEM
multi_json (>= 1.0.0) multi_json (>= 1.0.0)
rack (>= 1.0.0) rack (>= 1.0.0)
websocket-driver (>= 0.3.0) websocket-driver (>= 0.3.0)
faye-websocket (0.7.2) faye-websocket (0.7.3)
eventmachine (>= 0.12.0) eventmachine (>= 0.12.0)
websocket-driver (>= 0.3.1) websocket-driver (>= 0.3.1)
font-awesome-rails (4.0.3.1) font-awesome-rails (4.0.3.2)
railties (>= 3.2, < 5.0) railties (>= 3.2, < 5.0)
foundation-rails (5.2.2.0) foundation-rails (5.2.2.0)
railties (>= 3.1.0) railties (>= 3.1.0)
@@ -237,7 +231,7 @@ GEM
subexec (~> 0.2.1) subexec (~> 0.2.1)
mini_portile (0.5.3) mini_portile (0.5.3)
minitest (5.3.3) minitest (5.3.3)
multi_json (1.9.2) multi_json (1.9.3)
multi_xml (0.5.5) multi_xml (0.5.5)
multipart-post (2.0.0) multipart-post (2.0.0)
nokogiri (1.6.1) nokogiri (1.6.1)
@@ -368,7 +362,7 @@ GEM
json (>= 1.8.0) json (>= 1.8.0)
warden (1.2.3) warden (1.2.3)
rack (>= 1.0) rack (>= 1.0)
websocket-driver (0.3.2) websocket-driver (0.3.3)
xpath (2.0.0) xpath (2.0.0)
nokogiri (~> 1.3) nokogiri (~> 1.3)
yaji (0.3.5) yaji (0.3.5)
@@ -388,7 +382,6 @@ DEPENDENCIES
couchbase-structures! couchbase-structures!
database_cleaner database_cleaner
devise devise
devise_simply_stored!
ember-rails ember-rails
ember-source ember-source
emblem-rails emblem-rails
Binary file not shown.

Before

Width:  |  Height:  |  Size: 631 B

After

Width:  |  Height:  |  Size: 346 B

+7 -16
View File
@@ -351,16 +351,6 @@
y1="73.737183" y1="73.737183"
x2="86.24353" x2="86.24353"
y2="2.4637082" /> y2="2.4637082" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3871"
id="linearGradient3891"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.0491242,0,0,1.0491242,2.5076726,905.23429)"
x1="8"
y1="73.737183"
x2="86.24353"
y2="2.4637082" />
</defs> </defs>
<sodipodi:namedview <sodipodi:namedview
id="base" id="base"
@@ -370,8 +360,8 @@
inkscape:pageopacity="0.0" inkscape:pageopacity="0.0"
inkscape:pageshadow="2" inkscape:pageshadow="2"
inkscape:zoom="4.6911765" inkscape:zoom="4.6911765"
inkscape:cx="50.233542" inkscape:cx="12.503135"
inkscape:cy="82.053291" inkscape:cy="73.526645"
inkscape:document-units="px" inkscape:document-units="px"
inkscape:current-layer="layer1" inkscape:current-layer="layer1"
showgrid="false" showgrid="false"
@@ -379,7 +369,7 @@
inkscape:window-height="856" inkscape:window-height="856"
inkscape:window-x="4" inkscape:window-x="4"
inkscape:window-y="0" inkscape:window-y="0"
inkscape:window-maximized="0"> inkscape:window-maximized="1">
<inkscape:grid <inkscape:grid
type="xygrid" type="xygrid"
id="grid2994" id="grid2994"
@@ -410,10 +400,11 @@
transform="translate(-0.85266458,-1.9184948)" transform="translate(-0.85266458,-1.9184948)"
inkscape:export-filename="/Users/bterkuile/companytools/development/rails/qwaiter/app/assets/images/icons/order-check.png" inkscape:export-filename="/Users/bterkuile/companytools/development/rails/qwaiter/app/assets/images/icons/order-check.png"
inkscape:export-xdpi="24.829473" inkscape:export-xdpi="24.829473"
inkscape:export-ydpi="24.829473"> inkscape:export-ydpi="24.829473"
style="fill:#000000;fill-opacity:1">
<path <path
transform="matrix(1.0491242,0,0,1.0491242,2.5076726,905.23429)" transform="matrix(1.0491242,0,0,1.0491242,2.5076726,905.23429)"
style="opacity:0.65158374;fill:#000000;fill-opacity:1;stroke:none;filter:url(#filter3895)" style="opacity:0.65158373999999997;fill:#000000;fill-opacity:1;stroke:none;filter:url(#filter3895)"
d="m 20,42.362183 10,10 30,-30 10,10 -40,40 -20,-20 z" d="m 20,42.362183 10,10 30,-30 10,10 -40,40 -20,-20 z"
id="path3881" id="path3881"
inkscape:connector-curvature="0" inkscape:connector-curvature="0"
@@ -423,7 +414,7 @@
inkscape:connector-curvature="0" inkscape:connector-curvature="0"
id="path2996" id="path2996"
d="M 23.490157,949.67748 33.981399,960.16872 65.455125,928.695 75.946367,939.18624 33.981399,981.15121 12.998915,960.16872 z" d="M 23.490157,949.67748 33.981399,960.16872 65.455125,928.695 75.946367,939.18624 33.981399,981.15121 12.998915,960.16872 z"
style="fill:url(#linearGradient3891);fill-opacity:1;stroke:none" /> style="fill:#000000;fill-opacity:1;stroke:none" />
</g> </g>
<path <path
sodipodi:type="inkscape:offset" sodipodi:type="inkscape:offset"

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 499 B

@@ -1,8 +1,9 @@
Qsupplier.App.ListsIndexController = Ember.ArrayController.extend Qsupplier.App.ListsIndexController = Ember.ArrayController.extend
loading: true
dateChanged: (-> dateChanged: (->
if @get('date') @set 'loading', true
@set('model', @store.find('list', date: @get('date'))) lists = if @get('date') then @store.find('list', date: @get('date')) else @store.find('list')
else lists.then => @set('loading', false)
@set('model', @store.find('list')) @set 'model', lists
).observes('date') ).observes('date')
lists: (-> @get('model')).property('model') lists: (-> @get('model')).property('model')
@@ -2,22 +2,22 @@ td.status-icons
span.active-order.fa.fa-check.fa-lg span.active-order.fa.fa-check.fa-lg
td {{view.content.display}} td {{view.content.display}}
td.numeric.table_number td.numeric.table_number
view Qsupplier.App.ActiveOrderTableNumberView contextBinding=view.content view Qsupplier.App.ActiveOrderTableNumberView contextBinding="view.content"
td.section_title {{view.content.section.title}} td.section_title {{view.content.section.title}}
td.currency {{currency view.content.total }} td.currency {{currency view.content.total }}
td.actions td.actions
if view.content.placed if view.content.placed
button.mark_order_active{ action markOrderActive view.content.id} /button.mark_order_active{ action markOrderActive view.content.id}
span.fa.fa-check.fa-2x span.fa.fa-check.fa-2x
span.button-text=t 'order.being_processed' /span.button-text=t 'order.being_processed'
button.hide.mark-order-active{ action markOrderActive view.content.id} /button.hide.mark-order-active{ action markOrderActive view.content.id}
span.button-icon span.button-icon
span.button-text=t 'order.being_processed' span.button-text=t 'order.being_processed'
button.mark_order_delivered{ action markOrderDelivered view.content.id} /button.mark_order_delivered{ action markOrderDelivered view.content.id}
span.fa-shifted-stack span.fa-shifted-stack
i.fa.fa-check.fa-2x i.fa.fa-check.fa-stack-2x
i.fa.fa-check.fa-2x i.fa.fa-check.fa-stack-2x
span.button-text= t 'order.being_served' /span.button-text= t 'order.being_served'
button.hide.mark-order-delivered{ action markOrderDelivered view.content.id} /button.hide.mark-order-delivered{ action markOrderDelivered view.content.id}
span.button-icon span.button-icon
span.button-text= t 'order.being_served' span.button-text= t 'order.being_served'
@@ -25,4 +25,8 @@ if lists
td.timestamp=time list.created_at td.timestamp=time list.created_at
else else
.row .row
.panel=t 'list.none_found' .panel
if loading
span.loading
else
=t 'list.none_found'
@@ -24,11 +24,13 @@ span.icon
background-image: image-url('icons/order-doublecheck.png') background-image: image-url('icons/order-doublecheck.png')
.fa-shifted-stack .fa-shifted-stack
@extend .fa-stack
//.fa-shifted-stack
position: relative position: relative
display: inline-block display: inline-block
width: 2.5em width: 2.5em
height: 2em height: 2em
line-height: 2em //line-height: 2em
vertical-align: middle vertical-align: middle
.fa .fa
position: absolute position: absolute
@@ -50,3 +50,8 @@ main.main-section
.hide, .hidden .hide, .hidden
display: none display: none
span.loading
@extend .fa
@extend .fa-spinner
@extend .fa-lg
@extend .fa-spin
+1
View File
@@ -209,6 +209,7 @@ class List
#order.section_id = self.section_id #order.section_id = self.section_id
#order.save #order.save
#end #end
# user performs a client side refresh
broadcast_users 'list_changed_table', list_id: id #, from_table_id: from_table, to_table_id: to_table.id broadcast_users 'list_changed_table', list_id: id #, from_table_id: from_table, to_table_id: to_table.id
broadcast_supplier supplier_id, 'list_changed_table', list: as_json, section_title: to_table.section.try(:title), from_table_id: from_table broadcast_supplier supplier_id, 'list_changed_table', list: as_json, section_title: to_table.section.try(:title), from_table_id: from_table
end end
+5
View File
@@ -35,3 +35,8 @@
/jQuery(function(){ /jQuery(function(){
/Qsupplier.load_list('#{@list.id}'); /Qsupplier.load_list('#{@list.id}');
/}) /})
.test-div
span.fa.fa-square-o.fa-2x
span.fa-stack
i.fa.fa-square-o.fa-stack-2x
i.fa.fa-twitter.fa-stack-1x