mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-17 13:31:39 +03:00
07cd654ab9
Closes #3533, Closes #3547, Closes #3531 - invite-new-user always resets role to author now, allowing for multiple invites on one load - Added confirm action when hitting return in INUModal's email input - Don't pass users as the model to invite-new-user-modal - Move invite-new-user reset to a `finally` clause - invite-new-user always closes on a confirm
22 lines
857 B
Handlebars
22 lines
857 B
Handlebars
{{#gh-modal-dialog action="closeModal" showClose=true type="action" animation="fade"
|
|
title="Invite a New User" confirm=confirm class="invite-new-user"}}
|
|
|
|
<fieldset>
|
|
<div class="form-group">
|
|
<label for="new-user-email">Email Address</label>
|
|
{{input action="confirmAccept" class="email" id="new-user-email" type="email" placeholder="Email Address" name="email" autofocus="autofocus"
|
|
autocapitalize="off" autocorrect="off" value=email}}
|
|
</div>
|
|
|
|
<div class="form-group for-select">
|
|
<label for="new-user-role">Role</label>
|
|
{{gh-role-selector
|
|
initialValue=authorRole
|
|
onChange="setRole"
|
|
selectId="new-user-role"}}
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
{{/gh-modal-dialog}}
|