31 lines
1.4 KiB
Plaintext
31 lines
1.4 KiB
Plaintext
div.create-run-form(ng-controller='CreateRunCtrl')
|
|
h2 Create a lunch run
|
|
form(name='form',novalidate,role='form')
|
|
div.form-group
|
|
label(for='name') Name your run
|
|
input#name.form-control(type='text',ng-model='run.name',required)
|
|
div.form-group
|
|
label(for='creatorName') Your name
|
|
input#creatorName.form-control(type='text',ng-model='run.creatorName',required)
|
|
div.form-group
|
|
label(for='creatorEmail') Your email
|
|
input#creatorEmail.form-control(type='email',ng-model='run.creatorEmail',required)
|
|
div.form-group
|
|
label Invitees
|
|
span(ng-repeat='i in run.invitees')
|
|
.form-group
|
|
label Name
|
|
input.form-control(ng-model='i.name',required)
|
|
.form-group
|
|
label Email
|
|
input.form-control(ng-model='i.email',required)
|
|
button.btn.btn-default(ng-click='addInvitee()') Add
|
|
div.form-group
|
|
label(for='restaurant') Restaurant
|
|
input#restaurant.form-control(type='text',ng-model='run.restaurant')
|
|
div.form-group
|
|
label(for='menuUrl') Menu URL
|
|
input#menuUrl.form-control(type='url',ng-model='run.menuUrl')
|
|
|
|
button.btn.btn-primary(ng-click="create(run)",ng-disabled="form.$invalid") Create
|