<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>{{{groupInstructions}}}</label>
      {{group-selector includeAuto=false groupFinder=groupFinder 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>
