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/choose-topic.hbs

29 lines
888 B
Handlebars

<label for='choose-topic-title'>{{i18n 'choose_topic.title.search'}}</label>
{{text-field value=topicTitle placeholderKey="choose_topic.title.placeholder" id="choose-topic-title"}}
{{#if loading}}
<p>{{i18n 'loading'}}</p>
{{else}}
{{#if noResults}}
<p>{{i18n 'choose_topic.none_found'}}</p>
{{else}}
{{#each topics as |t|}}
<div class='controls existing-topic'>
<label class='radio'>
<input type='radio' id="choose-topic-{{unbound t.id}}" name='choose_topic_id' {{action "chooseTopic" t}}>
<span class="topic-title">
{{t.title}}
</span>
<span class="topic-categories">
{{#if t.category.parentCategory}}
{{bound-category-link t.category.parentCategory}}
{{/if}}
{{bound-category-link t.category}}
</span>
</label>
</div>
{{/each}}
{{/if}}
{{/if}}