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/choose_topic.js.handlebars
2013-05-20 15:31:05 -04:00

20 lines
597 B
Handlebars

<label for='choose-topic-title'>{{i18n choose_topic.title.search}}</label>
{{textField value=view.topicTitle placeholderKey="choose_topic.title.placeholder" id="choose-topic-title"}}
{{#if view.loading}}
<p>{{i18n loading}}</p>
{{else}}
{{#if view.noResults}}
<p>{{i18n choose_topic.none_found}}</p>
{{else}}
{{#each view.topics}}
<div class='controls'>
<label class='radio'>
<input type='radio' id="choose-topic-{{unbound id}}" name='choose_topic_id' {{action chooseTopic this target="view"}}>{{title}}
</div>
{{/each}}
</ul>
{{/if}}
{{/if}}