<form>
  <div class="control-group">
    <ComboBox
      @class="timer-type"
      @onChange={{this.onChangeStatusType}}
      @content={{this.timerTypes}}
      @value={{this.statusType}}
    />
  </div>
  {{#if this.publishToCategory}}
    <div class="control-group">
      <label class="control-label">{{i18n
          "topic.topic_status_update.publish_to"
        }}</label>
      <CategoryChooser
        @value={{this.topicTimer.category_id}}
        @onChange={{action (mut this.topicTimer.category_id)}}
        @options={{hash excludeCategoryId=this.excludeCategoryId}}
      />
    </div>
  {{/if}}
  {{#if this.showFutureDateInput}}
    <label class="control-label">{{i18n
        "topic.topic_status_update.when"
      }}</label>
    <TimeShortcutPicker
      @timeShortcuts={{this.timeOptions}}
      @prefilledDatetime={{this.topicTimer.execute_at}}
      @onTimeSelected={{this.onTimeSelected}}
      @hiddenOptions={{this.hiddenTimeShortcutOptions}}
      @_itsatrap={{this._itsatrap}}
    />
  {{/if}}
  {{#if this.useDuration}}
    <div class="controls">
      <label class="control-label">{{i18n
          "topic.topic_status_update.duration"
        }}</label>
      <RelativeTimePicker
        @onChange={{action "durationChanged"}}
        @durationMinutes={{readonly this.topicTimer.duration_minutes}}
      />
    </div>
  {{/if}}
  {{#if this.willCloseImmediately}}
    <div class="warning">
      {{d-icon "exclamation-triangle"}}
      {{this.willCloseI18n}}
    </div>
  {{/if}}
  {{#if this.showTopicTimerInfo}}
    <div class="alert alert-info modal-topic-timer-info">
      <TopicTimerInfo
        @statusType={{this.statusType}}
        @executeAt={{this.executeAt}}
        @basedOnLastPost={{this.topicTimer.based_on_last_post}}
        @durationMinutes={{this.topicTimer.duration_minutes}}
        @categoryId={{this.topicTimer.category_id}}
      />
    </div>
  {{/if}}
</form>