From 38a5f0caa4ffc8be2dae05f6a2b0418a5ee2b7bb Mon Sep 17 00:00:00 2001 From: Daniel Camargo Date: Fri, 9 Aug 2013 12:17:14 -0300 Subject: [PATCH] ux change --- .../crunchbutton/frontend/restaurant.phtml | 18 ++++++++++++------ www/assets/css/style.css | 5 +++++ www/assets/js/pages.js | 11 +++++++---- 3 files changed, 24 insertions(+), 10 deletions(-) diff --git a/include/views/default/crunchbutton/frontend/restaurant.phtml b/include/views/default/crunchbutton/frontend/restaurant.phtml index 2a8f88894..206924425 100644 --- a/include/views/default/crunchbutton/frontend/restaurant.phtml +++ b/include/views/default/crunchbutton/frontend/restaurant.phtml @@ -50,10 +50,16 @@
+
+ Begin by clicking on anything from our curated menu on the left! +
+
Add ${{order.info.deliveryMinDiff}} from menu to meet delivery minimum.
- + + +
@@ -139,9 +145,9 @@
- + -
+
@@ -158,7 +164,7 @@
-
+

Your Info

(enter this once, and we'll save it for next time)
@@ -324,10 +330,10 @@ -
+
-
+
diff --git a/www/assets/css/style.css b/www/assets/css/style.css index 98102c7da..fc1fe4ddb 100644 --- a/www/assets/css/style.css +++ b/www/assets/css/style.css @@ -2769,6 +2769,11 @@ strong { clear: both; } +.order-begin{ + margin: 30px 0 15px 0 !important; + font-size: 15px; +} + /** * unused blurs diff --git a/www/assets/js/pages.js b/www/assets/js/pages.js index f1ad6ddf7..4216cfa24 100644 --- a/www/assets/js/pages.js +++ b/www/assets/js/pages.js @@ -249,13 +249,16 @@ NGApp.controller('restaurant', function ($scope, $http, $routeParams, Restaurant $scope.order.cart = {}; $scope.order.cart.items = order.cart.items; $scope.order.cart.add = function( item ){ - order.cart.add( item ); + return order.cart.add( item ); } $scope.order.cart.remove = function( item ){ - order.cart.remove( item ); + return order.cart.remove( item ); } $scope.order.cart.customizeItem = function(option, item){ - order.cart.customizeItem( option, item ); + return order.cart.customizeItem( option, item ); + } + $scope.order.cart.hasItems = function(){ + return order.cart.hasItems(); } // watch cart changes $scope.$watch( 'order.cart.items', function( newValue, oldValue, scope ) { @@ -321,7 +324,7 @@ NGApp.controller('restaurant', function ($scope, $http, $routeParams, Restaurant document.title = $scope.restaurant.name + ' | Food Delivery | Order from ' + ( community.name ? community.name : 'Local') + ' Restaurants | Crunchbutton'; - + $('.body').css({ 'min-height': $('.restaurant-items').height()}); });