<form>
  <div class="control-group">
    {{combo-box
      class="timer-type"
      onChange=onChangeStatusType
      content=timerTypes
      value=selection
    }}
  </div>

  <div>
    {{#if showTimeOnly}}
      {{future-date-input
        input=(readonly topicTimer.updateTime)
        label="topic.topic_status_update.when"
        statusType=selection
        includeWeekend=true
        basedOnLastPost=topicTimer.based_on_last_post
        onChangeInput=onChangeUpdateTime
      }}
    {{else if publishToCategory}}
      <div class="control-group">
        <label>{{i18n 'topic.topic_status_update.publish_to'}}</label>
        {{category-chooser
          value=topicTimer.category_id
          excludeCategoryId=excludeCategoryId
          onChange=(action (mut topicTimer.category_id))
        }}
      </div>

      {{future-date-input
        input=(readonly topicTimer.updateTime)
        label="topic.topic_status_update.when"
        statusType=selection
        includeWeekend=true
        categoryId=topicTimer.category_id
        basedOnLastPost=topicTimer.based_on_last_post
        onChangeInput=onChangeUpdateTime
      }}
    {{else if autoClose}}
      {{future-date-input
        input=topicTimer.updateTime
        label="topic.topic_status_update.when"
        statusType=selection
        includeWeekend=true
        basedOnLastPost=topicTimer.based_on_last_post
        lastPostedAt=model.last_posted_at
        onChangeInput=onChangeUpdateTime
      }}
    {{/if}}
  </div>
</form>
