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/components/edit-topic-timer-form.hbs

37 lines
1.1 KiB
Handlebars

<form>
<div class="control-group">
{{combo-box class="timer-type" allowInitialValueMutation=true content=timerTypes value=selection}}
</div>
<div>
{{#if showTimeOnly}}
{{future-date-input
input=topicTimer.updateTime
statusType=selection
includeWeekend=true
basedOnLastPost=topicTimer.based_on_last_post}}
{{else if publishToCategory}}
<div class="control-group">
<label>{{i18n 'topic.topic_status_update.publish_to'}}</label>
{{category-chooser
value=topicTimer.category_id
excludeCategoryId=excludeCategoryId}}
</div>
{{future-date-input
input=topicTimer.updateTime
statusType=selection
includeWeekend=true
categoryId=topicTimer.category_id
basedOnLastPost=topicTimer.based_on_last_post}}
{{else if autoClose}}
{{future-date-input
input=topicTimer.updateTime
statusType=selection
includeWeekend=true
basedOnLastPost=topicTimer.based_on_last_post
lastPostedAt=model.last_posted_at}}
{{/if}}
</div>
</form>