2015-11-18 13:50:48 +03:00
|
|
|
<header class="modal-header">
|
|
|
|
<h1>Invite a New User</h1>
|
|
|
|
</header>
|
2018-03-19 12:57:31 +03:00
|
|
|
<a class="close" href="" title="Close" {{action "closeModal"}}>{{svg-jar "close"}}<span class="hidden">Close</span></a>
|
2015-11-18 13:50:48 +03:00
|
|
|
|
|
|
|
<div class="modal-body">
|
|
|
|
<fieldset>
|
|
|
|
{{#gh-form-group errors=errors hasValidated=hasValidated property="email"}}
|
|
|
|
<label for="new-user-email">Email Address</label>
|
2018-02-28 14:44:03 +03:00
|
|
|
{{gh-text-input
|
2016-06-18 14:44:23 +03:00
|
|
|
class="email"
|
|
|
|
id="new-user-email"
|
|
|
|
type="email"
|
|
|
|
placeholder="Email Address"
|
|
|
|
name="email"
|
|
|
|
autofocus="autofocus"
|
|
|
|
autocapitalize="off"
|
|
|
|
autocorrect="off"
|
2018-02-28 14:44:03 +03:00
|
|
|
value=(readonly email)
|
|
|
|
input=(action (mut email) value="target.value")
|
|
|
|
keyEvents=(hash
|
|
|
|
Enter=(action "confirm")
|
|
|
|
)
|
|
|
|
focus-out=(action "validate" "email")
|
2016-06-18 14:44:23 +03:00
|
|
|
}}
|
2015-11-18 13:50:48 +03:00
|
|
|
{{gh-error-message errors=errors property="email"}}
|
|
|
|
{{/gh-form-group}}
|
|
|
|
|
2018-12-10 17:26:05 +03:00
|
|
|
|
|
|
|
{{#gh-form-group class="for-select" errors=errors hasValidated=hasValidated property="role"}}
|
2015-11-18 13:50:48 +03:00
|
|
|
<label for="new-user-role">Role</label>
|
2018-06-04 19:51:09 +03:00
|
|
|
<span class="gh-select">
|
2016-09-26 19:03:53 +03:00
|
|
|
{{one-way-select
|
|
|
|
id="new-user-role"
|
|
|
|
name="role"
|
2019-01-02 12:58:55 +03:00
|
|
|
options=(readonly 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
|
|
|
}}
|
2018-03-19 12:57:31 +03:00
|
|
|
{{svg-jar "arrow-down-small"}}
|
2015-11-18 13:50:48 +03:00
|
|
|
</span>
|
2018-12-10 17:26:05 +03:00
|
|
|
{{gh-error-message errors=errors property="role"}}
|
|
|
|
{{/gh-form-group}}
|
2015-11-18 13:50:48 +03:00
|
|
|
</fieldset>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-footer">
|
2018-12-10 17:26:05 +03:00
|
|
|
{{gh-task-button "Send invitation now"
|
|
|
|
successText="Sent"
|
|
|
|
task=sendInvitation
|
|
|
|
class="gh-btn gh-btn-green gh-btn-icon"
|
|
|
|
disabled=fetchRoles.isRunning}}
|
2017-02-16 22:50:05 +03:00
|
|
|
</div>
|