Sprucing up homepage, real e-mail

This commit is contained in:
Ben Ramey
2014-03-25 22:10:41 -05:00
parent b9917e6027
commit 467a966bc8
4 changed files with 60 additions and 61 deletions

View File

@@ -1,34 +1,33 @@
div.create-run-form(ng-controller='CreateRunCtrl')
h2 Create a lunch run
form.row(name='form',novalidate,role='form')
fieldset.col-xs-12.col-sm-6.col-md-6.col-lg-6
legend You and your run
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(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')
fieldset.col-xs-12.col-sm-6.col-md-6.col-lg-6
legend Who's going?
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
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!
button.btn.btn-primary(ng-click="create(run)",ng-disabled="form.$invalid") Create
.clearfix
button.btn.btn-lg.btn-primary.btn-block(ng-click="create(run)",ng-disabled="form.$invalid")
| Create