Menu and other's orders sidebars on udpate order page

This commit is contained in:
Ben Ramey
2014-05-16 21:14:00 -05:00
parent 21cfc0d221
commit 42ef462a0c
7 changed files with 57 additions and 23 deletions

View File

@@ -0,0 +1,38 @@
extends ../layouts/interior-page
block pagetitle
span.glyphicon.glyphicon-list
span.text-muted Enter your order for:
|  {{ run.name }}
block interiorcontent
div(ng-show='show')
p Hi {{ invitee.name }}! You are all going to {{ run.restaurant }}.
span(ng-show='showMenuUrl') Here is the
a(href='{{ run.menuUrl }}',target="_blank") menu.
.row
.col-xs-12.col-sm-6
h2 Update your order
form.form.create-order-form(role='form')
div.form-group
textarea#order.form-control(ng-model='invitee.order',placeholder='Your order',rows=8)
button.btn.btn-lg.btn-primary.btn-block(ng-click='submit(invitee)') Submit Order
.col-xs-12.col-sm-6
div.pod(ng-show='showMenuUrl')
h2
| Menu
a.btn.btn-sm.btn-default.pull-right(href='{{ run.menuUrl }}',target='_blank')
span.glyphicon.glyphicon-new-window
iframe(ng-src='{{ menuUrl }}',width='100%',height='400px')
div.pod.others-orders
h2 Other's orders
ul.list-group(ng-repeat='i in invitees')
li.list-group-item
strong {{ i.name }}
| : {{ i.order }}

View File

@@ -1,18 +0,0 @@
extends ../layouts/interior-page
block pagetitle
span.glyphicon.glyphicon-list
span.text-muted Enter your order for:
|  {{ run.name }}
block interiorcontent
div(ng-show='show')
p Hi {{ invitee.name }}! You are all going to {{ run.restaurant }}.
span(ng-show='showMenuUrl') Here is the
a(href='{{ run.menuUrl }}',target="_blank") menu.
form.form.create-order-form(role='form')
div.form-group
textarea#order.form-control(ng-model='invitee.order',placeholder='Your order')
button.btn.btn-lg.btn-primary.btn-block(ng-click='submit(invitee)') Submit Order