<form {{action "saveAutoClose" on="submit"}}>
  <div class="modal-body">
    {{auto-close-form autoCloseTime=model.auto_close_time
                      autoCloseValid=auto_close_valid
                      autoCloseBasedOnLastPost=model.details.auto_close_based_on_last_post
                      limited=model.details.auto_close_based_on_last_post }}
  </div>
  <div class="modal-footer">
    <button class='btn btn-primary' type='submit' {{bind-attr disabled="auto_close_invalid"}}>{{i18n 'topic.auto_close_save'}}</button>
    <a {{action "closeModal"}}>{{i18n 'cancel'}}</a>
    <button class='btn pull-right' {{action "removeAutoClose"}}>{{i18n 'topic.auto_close_remove'}}</button>
  </div>
</form>
