2014-11-27 10:32:57 +00:00
|
|
|
script(type='text/ng-template', id='modals/invite-friends.html')
|
|
|
|
|
.modal-body
|
2015-08-04 16:58:57 +00:00
|
|
|
div(ng-if='!group._id')
|
|
|
|
|
h4(style='margin-top:0')=env.t('nameYourParty')
|
|
|
|
|
input.form-control#new-group-name.input-medium.option-content(required, type='text', ng-model='newGroup.name')
|
2015-07-30 21:48:08 +00:00
|
|
|
tabset
|
|
|
|
|
tab(heading=env.t('inviteByEmail'))
|
|
|
|
|
p.alert.alert-info=env.t('inviteByEmailExplanation')
|
|
|
|
|
form.form-horizontal(ng-submit='inviteEmails()')
|
|
|
|
|
table.table.table-striped
|
|
|
|
|
thead
|
|
|
|
|
tr
|
|
|
|
|
th=env.t('name')
|
|
|
|
|
th=env.t('email')
|
|
|
|
|
tbody
|
|
|
|
|
tr(ng-repeat='email in emails')
|
|
|
|
|
td
|
|
|
|
|
input.form-control(type='text', ng-model='email.name')
|
|
|
|
|
td
|
|
|
|
|
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:""}])')
|
|
|
|
|
i.glyphicon.glyphicon-plus
|
|
|
|
|
tr
|
|
|
|
|
td.form-group(colspan=2)
|
|
|
|
|
label.col-sm-1.control-label=env.t('byColon')
|
|
|
|
|
.col-sm-7
|
|
|
|
|
input.form-control(type='text', ng-model='inviter')
|
|
|
|
|
.col-sm-4
|
|
|
|
|
button.btn.btn-primary(type='submit')=env.t('sendInvitations')
|
|
|
|
|
tab(heading=env.t('inviteExistUser'))
|
|
|
|
|
p.alert.alert-info!=env.t('inviteAlertInfo')
|
|
|
|
|
form.form-horizontal(ng-submit='invite()')
|
|
|
|
|
table.table.table-striped
|
|
|
|
|
thead
|
|
|
|
|
tr
|
|
|
|
|
th=env.t('userId')
|
|
|
|
|
tbody
|
|
|
|
|
tr(ng-repeat='invitee in invitees')
|
|
|
|
|
td
|
2015-08-10 20:16:45 +00:00
|
|
|
input.form-control(type='text', ng-model='invitee.uuid')
|
2015-07-30 21:48:08 +00:00
|
|
|
tr
|
|
|
|
|
td(colspan=2)
|
2015-08-10 20:16:45 +00:00
|
|
|
a.btn.btn-xs.pull-right(ng-click='invitees = invitees.concat([{uuid:""}])')
|
2015-07-30 21:48:08 +00:00
|
|
|
i.glyphicon.glyphicon-plus
|
|
|
|
|
tr
|
|
|
|
|
td
|
|
|
|
|
.col-sm-1
|
|
|
|
|
.col-sm-7
|
|
|
|
|
.col-sm-4
|
|
|
|
|
button.btn.btn-primary(type='submit')=env.t('sendInvitations')
|
|
|
|
|
.row
|
|
|
|
|
.quest_basilist.pull-left
|
|
|
|
|
p(style='margin:2em')=env.t('exclusiveQuestScroll')
|
|
|
|
|
button.btn.btn-default.pull-right(style='margin:auto 1em', ng-click='$close()')=env.t('close')
|
2015-08-10 18:42:36 +00:00
|
|
|
.modal-footer(style='padding-bottom:0',ng-if='!group || group.memberCount === 1')
|
2015-08-04 16:58:57 +00:00
|
|
|
p!=env.t('wantExistingParty', {linkStart: "<a href='/#/options/groups/guilds/f2db2a7f-13c5-454d-b3ee-ea1f5089e601'>", linkEnd: "</a>"})
|
|
|
|
|
pre(style='margin:1em 0 0 0').
|
|
|
|
|
{{user.id}}
|