Fix bug where mutliple user ids could not be saved

This commit is contained in:
Blade Barringer
2015-08-21 08:19:39 -05:00
parent 7fcfe6734b
commit 3153fbac3c
4 changed files with 169 additions and 28 deletions
@@ -58,7 +58,7 @@ script(type='text/ng-template', id='modals/invite-party.html')
input.form-control(type='email', ng-model='email.email')
tr
td(colspan=2)
a.btn.btn-xs.pull-right(ng-click='emails = emails.concat([{name:"",email:""}])')
a.btn.btn-xs.pull-right(ng-click='addEmail()')
i.glyphicon.glyphicon-plus
tr
td.form-group(colspan=2)
@@ -75,14 +75,16 @@ script(type='text/ng-template', id='modals/invite-party.html')
tr
th=env.t('userId')
tbody
tr(ng-repeat='user in invitees track by $index')
td
input.form-control(type='text', ng-model='user.uuid')
tr
td
input.form-control(type='text', ng-model='invitees.uuid')
a.btn.btn-xs.pull-right(ng-click='addUuid()')
i.glyphicon.glyphicon-plus
tr
td
.col-sm-1
.col-sm-7
.col-sm-4
.col-sm-4.col-sm-offset-8
button.btn.btn-primary(type='submit')=env.t('sendInvitations')
.row
.quest_basilist.pull-left