mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 19:52:01 +03:00
21abed7f9a
Closes #3402, Closes #3428 ------------------- ### Components - Added GhostSelectComponent to handle async select creation (h/t @rwjblue) - Added GhostRolesSelector (extends GhostSelect) for displaying user role options - Created StoreInjector for surgically inserting the store into things that normally wouldn't have them. ### Users Settings - InviteNewUserModal now uses GhostRolesSelector & defaults to Author - The role dropdown for user settings has permissions set per 3402 ### User Model - Added `role` property as an interface to getting and setting `roles` - Refactored anything that set `roles` to set `role` - isAdmin, isAuthor, isOwner and isEditor are all keyed off of `role` now ### Tests - Added functional tests for Settings.Users - updated settings.users and settings.users.user screens - fix spacing on screens ### Server Fixtures - Fixed owner fixture's roles
22 lines
834 B
Handlebars
22 lines
834 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 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}}
|