2014-11-27 10:32:57 +00:00
|
|
|
script(type='text/ng-template', id='modals/invite-friends.html')
|
|
|
|
|
.modal-header
|
|
|
|
|
h4 Invite Friends
|
|
|
|
|
.modal-body
|
|
|
|
|
p.alert.alert-info Invite friends by <a href='http://habitrpg.wikia.com/wiki/API_Options' target='_blank'>User ID</a> here.
|
|
|
|
|
|
2015-02-09 19:35:41 +00:00
|
|
|
form.form-inline(ng-submit='invite()')
|
2014-11-27 10:32:57 +00:00
|
|
|
//-.alert.alert-danger(ng-show='_groupError') {{_groupError}}
|
|
|
|
|
.form-group
|
2015-02-09 19:35:41 +00:00
|
|
|
input.form-control(type='text', placeholder=env.t('userId'), ng-model='invitee')
|
2014-11-27 10:32:57 +00:00
|
|
|
|
|
|
|
|
|
button.btn.btn-primary(type='submit') Invite Existing User
|
|
|
|
|
|
|
|
|
|
hr
|
|
|
|
|
|
2015-04-23 18:48:44 +00:00
|
|
|
p.alert.alert-info Invite friends by email. If they join via your email, they'll automatically be invited to this group.
|
2014-11-27 10:32:57 +00:00
|
|
|
|
2015-02-09 19:35:41 +00:00
|
|
|
form.form-horizontal(ng-submit='inviteEmails()')
|
2014-11-27 10:32:57 +00:00
|
|
|
table.table.table-striped
|
|
|
|
|
thead
|
|
|
|
|
tr
|
|
|
|
|
th Name
|
|
|
|
|
th 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 By:
|
|
|
|
|
.col-sm-7
|
|
|
|
|
input.form-control(type='text', ng-model='inviter')
|
|
|
|
|
.col-sm-4
|
|
|
|
|
button.btn.btn-primary(type='submit') Invite New User(s)
|
|
|
|
|
//-
|
|
|
|
|
hr
|
|
|
|
|
p.alert.alert-info Or share this link (copy/paste):
|
|
|
|
|
input.form-control(type='text', ng-value='inviteLink({id: party._id, inviter: user._id, name: party.name})')
|
|
|
|
|
|
|
|
|
|
.modal-footer
|
|
|
|
|
button.btn.btn-default(ng-click='$close()') Close
|
|
|
|
|
|