This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/templates/modal/invite.js.handlebars
2014-06-10 11:54:38 -04:00

30 lines
930 B
Handlebars
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="modal-body invite-modal">
{{#if error}}
<div class="alert alert-error">
<button class="close" data-dismiss="alert">×</button>
{{i18n topic.invite_reply.error}}
</div>
{{/if}}
{{#if finished}}
{{{successMessage}}}
{{else}}
<label>{{inviteInstructions}}</label>
{{text-field value=email placeholderKey="topic.invite_reply.email_placeholder"}}
{{#if isAdmin}}
<label>{{i18n topic.automatically_add_to_groups}}</label>
{{group-selector includeAuto=false groupNames=groupNames placeholderKey="topic.invite_private.group_name"}}
{{/if}}
{{/if}}
</div>
<div class="modal-footer">
{{#if finished}}
<button class='btn btn-primary' {{action closeModal}}>{{i18n close}}</button>
{{else}}
<button class='btn btn-primary' {{bind-attr disabled="disabled"}} {{action createInvite}}><i class="fa fa-envelope"></i>{{buttonTitle}}</button>
{{/if}}
</div>