Create order styles

This commit is contained in:
Ben Ramey
2014-03-25 22:25:26 -05:00
parent e491afc1d6
commit 13b73bb387
2 changed files with 9 additions and 8 deletions

View File

@@ -8,7 +8,7 @@ lunchControllers.controller 'CreateOrderCtrl', ['$scope','socket','$routeParams'
socket.get '/run/' + $routeParams['id'],
(response) ->
$scope.show = true
$scope.showMenuUrl = response.menuUrl isnt ''
$scope.showMenuUrl = response.menuUrl
$scope.run = response
$scope.invitee = _.find response.invitees, (i) -> i.name.toLowerCase() == $routeParams['inviteeName'].toLowerCase()

View File

@@ -1,15 +1,16 @@
div(ng-show='show')
h2 Enter your order for {{ run.name }}
h2.text-center
span.text-muted Enter your order for:
br
|  {{ run.name }}
p {{ invitee.name }}, enter your order here.
p You are all going to {{ run.restaurant }}.
span(ng-click='showMenuUrl') Here is the
p.text-center Hi {{ invitee.name }}! You are all going to {{ run.restaurant }}.
span(ng-show='showMenuUrl') Here is the
a(href='{{ run.menuUrl }}') menu.
form(role='form')
div.form-group
label(for='order') Your order
textarea#order.form-control(ng-model='invitee.order')
textarea#order.form-control(ng-model='invitee.order',placeholder='Your order')
button.btn.btn-primary(ng-click='submit(invitee)') Submit Order
button.btn.btn-lg.btn-primary.btn-block(ng-click='submit(invitee)') Submit Order