discourse/app/assets/javascripts/wizard/templates/components/invite-list.hbs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
663 B
Handlebars
Raw Normal View History

2016-09-13 15:14:17 -04:00
{{#if users}}
<div class="users-list">
{{#each users as |user|}}
{{invite-list-user user=user roles=roles removeUser=(action "removeUser")}}
{{/each}}
</div>
2016-09-13 15:14:17 -04:00
{{/if}}
<div class="new-user">
<div class="text-field {{if invalid "invalid"}}">
{{input class="invite-email wizard-focusable" value=inviteEmail placeholder="user@example.com" tabindex="9"}}
2016-09-13 15:14:17 -04:00
</div>
{{combo-box
value=inviteRole
content=roles
nameProperty="label"
onChange=(action (mut inviteRole))
}}
2016-09-13 15:14:17 -04:00
<button type="button" class="wizard-btn small add-user" {{action "addUser"}}>
{{d-icon "plus"}}{{i18n "wizard.invites.add_user"}}
2016-09-13 15:14:17 -04:00
</button>
</div>