2015-11-18 13:50:48 +03:00
|
|
|
<header class="modal-header">
|
|
|
|
<h1>Invite a New User</h1>
|
|
|
|
</header>
|
|
|
|
<a class="close icon-x" href="" title="Close" {{action "closeModal"}}><span class="hidden">Close</span></a>
|
|
|
|
|
|
|
|
<div class="modal-body">
|
|
|
|
<fieldset>
|
|
|
|
{{#gh-form-group errors=errors hasValidated=hasValidated property="email"}}
|
|
|
|
<label for="new-user-email">Email Address</label>
|
2016-06-18 14:44:23 +03:00
|
|
|
{{gh-input
|
|
|
|
email
|
|
|
|
enter="sendInvite"
|
|
|
|
class="email"
|
|
|
|
id="new-user-email"
|
|
|
|
type="email"
|
|
|
|
placeholder="Email Address"
|
|
|
|
name="email"
|
|
|
|
autofocus="autofocus"
|
|
|
|
autocapitalize="off"
|
|
|
|
autocorrect="off"
|
|
|
|
focusOut=(action "validate" "email")
|
|
|
|
update=(action (mut email))
|
|
|
|
}}
|
2015-11-18 13:50:48 +03:00
|
|
|
{{gh-error-message errors=errors property="email"}}
|
|
|
|
{{/gh-form-group}}
|
|
|
|
|
|
|
|
<div class="form-group for-select">
|
|
|
|
<label for="new-user-role">Role</label>
|
|
|
|
<span class="gh-select" tabindex="0">
|
2016-09-26 19:03:53 +03:00
|
|
|
{{one-way-select
|
|
|
|
id="new-user-role"
|
|
|
|
name="role"
|
|
|
|
options=roles
|
2015-11-18 13:50:48 +03:00
|
|
|
optionValuePath="id"
|
|
|
|
optionLabelPath="name"
|
2016-09-26 19:03:53 +03:00
|
|
|
value=role
|
|
|
|
update=(action "setRole")
|
2015-11-18 13:50:48 +03:00
|
|
|
}}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-footer">
|
2017-01-19 14:40:31 +03:00
|
|
|
{{#gh-task-button task=sendInvitation class="btn btn-green"}}Send invitation now{{/gh-task-button}}
|
|
|
|
</div>
|