Edit run functionality

This commit is contained in:
Ben Ramey
2014-06-24 22:49:02 -05:00
parent 90fee4987e
commit 65a3d36cd2
8 changed files with 35 additions and 34 deletions

View File

@@ -48,7 +48,7 @@
.col-xs-12.col-lg-2.step-num
span.glyphicon.glyphicon-list(title='Lunch Invitees')
.col-xs-12.col-lg-10
.invitee.clearfix(ng-repeat='i in invitees')
.invitee.clearfix(ng-repeat='i in invitees | notCreatorInvitees')
ng-form(name='inviteeForm')
.row
.col-xs-10.name-wrapper

View File

@@ -5,9 +5,9 @@ block pagetitle
| update your lunch run
block interiorcontent
.create-run-form(ng-controller='CreateRunCtrl')
form.row(name='form',novalidate,role='form')
.create-run-form(ng-controller='EditRunCtrl')
form.row(name='form',novalidate,role='form',ng-show="show")
include _form
section.submit
button.btn.btn-lg.btn-success.btn-block(ng-click="create(run,invitees)",ng-disabled="form.$invalid")
button.btn.btn-lg.btn-success.btn-block(ng-click="update(run,invitees)",ng-disabled="form.$invalid")
| Update