34 lines
1.9 KiB
Plaintext
34 lines
1.9 KiB
Plaintext
div.create-run-form(ng-controller='CreateRunCtrl')
|
|
h2.text-center Create a lunch run
|
|
form(name='form',novalidate,role='form')
|
|
div.row
|
|
fieldset.col-xs-12.col-sm-6.col-md-6.col-lg-6
|
|
legend.text-center You and your run
|
|
div.form-group
|
|
input#name.form-control(type='text',ng-model='run.name',required,placeholder='Name your run')
|
|
div.form-group
|
|
input#creatorName.form-control(type='text',ng-model='run.creatorName',required,placeholder='Your name')
|
|
div.form-group
|
|
input#creatorEmail.form-control(type='email',ng-model='run.creatorEmail',required,placeholder='Your email')
|
|
div.form-group
|
|
input#restaurant.form-control(type='text',ng-model='run.restaurant',placeholder='Restaurant')
|
|
div.form-group
|
|
input#menuUrl.form-control(type='url',ng-model='run.menuUrl',placeholder='Menu URL')
|
|
fieldset.col-xs-12.col-sm-6.col-md-6.col-lg-6
|
|
legend.text-center Who's going?
|
|
div.row(ng-repeat='i in run.invitees')
|
|
.form-group.col-sm-4
|
|
input.form-control(ng-model='i.name',required,placeholder='Name')
|
|
.form-group.col-sm-7
|
|
input.form-control(ng-model='i.email',required,placeholder='Email')
|
|
.form-group.col-sm-1
|
|
button.btn.btn-sm.btn-warning(ng-click='removeInvitee($index)')
|
|
span.glyphicon.glyphicon-remove
|
|
button.btn.btn-default(ng-click='addInvitee()')
|
|
span.glyphicon.glyphicon-plus
|
|
| Invite another!
|
|
|
|
.clearfix
|
|
button.btn.btn-lg.btn-primary.btn-block(ng-click="create(run)",ng-disabled="form.$invalid")
|
|
| Create
|