1
0
Fork 0
discourse-custom-wizard-unl.../assets/javascripts/discourse/templates/components/wizard-custom-action.hbs

101 Zeilen
3,1 KiB
Handlebars

2017-10-06 04:59:02 +02:00
<div class="setting">
<div class="setting-label">
2017-10-17 09:18:53 +02:00
<h3>{{i18n "admin.wizard.id"}}</h3>
2017-10-06 04:59:02 +02:00
</div>
<div class="setting-value">
2017-10-17 15:17:53 +02:00
{{input value=action.id placeholderKey='admin.wizard.id_placeholder' disabled=disableId}}
2017-10-06 04:59:02 +02:00
</div>
</div>
<div class="setting">
<div class="setting-label">
2017-10-13 15:02:34 +02:00
<h3>{{i18n "admin.wizard.type"}}</h3>
2017-10-06 04:59:02 +02:00
</div>
<div class="setting-value">
{{combo-box value=action.type content=types}}
2017-10-22 05:37:58 +02:00
<label>*{{i18n 'admin.wizard.action.requires_save'}}</label>
2017-10-06 04:59:02 +02:00
</div>
</div>
2017-10-05 02:36:46 +02:00
{{#if createTopic}}
2017-10-06 04:59:02 +02:00
<div class="setting">
<div class="setting-label">
<h3>{{i18n "admin.wizard.action.create_topic.category"}}</h3>
</div>
<div class="setting-value">
{{category-select-box value=action.category_id}}
</div>
</div>
<div class="setting">
<div class="setting-label">
2017-10-17 09:18:53 +02:00
<h3>{{i18n "admin.wizard.action.title"}}</h3>
2017-10-06 04:59:02 +02:00
</div>
<div class="setting-value">
2017-10-17 09:18:53 +02:00
{{combo-box value=action.title content=wizardFields nameProperty="label" none='admin.wizard.action.none'}}
2017-10-06 04:59:02 +02:00
</div>
</div>
<div class="setting">
<div class="setting-label">
2017-10-17 09:18:53 +02:00
<h3>{{i18n "admin.wizard.action.post"}}</h3>
2017-10-06 04:59:02 +02:00
</div>
<div class="setting-value">
2017-10-17 09:18:53 +02:00
{{combo-box value=action.post content=wizardFields nameProperty="label" none='admin.wizard.action.none'}}
</div>
</div>
2017-10-17 15:17:53 +02:00
<div class="setting full">
2017-10-22 05:37:58 +02:00
<label>{{i18n "admin.wizard.action.add_fields" type='Topic'}}</label>
2017-10-17 15:17:53 +02:00
{{wizard-custom-input inputs=action.add_fields valueContent=wizardFields noneValue='admin.wizard.action.none'}}
2017-10-06 04:59:02 +02:00
</div>
2017-09-23 04:34:07 +02:00
{{/if}}
2017-10-06 04:59:02 +02:00
2017-10-05 02:36:46 +02:00
{{#if sendMessage}}
2017-10-06 04:59:02 +02:00
<div class="setting">
<div class="setting-label">
2017-10-17 09:18:53 +02:00
<h3>{{i18n "admin.wizard.action.title"}}</h3>
2017-10-06 04:59:02 +02:00
</div>
<div class="setting-value">
2017-10-17 15:17:53 +02:00
{{combo-box value=action.title content=wizardFields nameProperty='label' none='admin.wizard.action.none'}}
2017-10-06 04:59:02 +02:00
</div>
</div>
2017-10-17 09:18:53 +02:00
2017-10-06 04:59:02 +02:00
<div class="setting">
<div class="setting-label">
2017-10-17 09:18:53 +02:00
<h3>{{i18n "admin.wizard.action.post"}}</h3>
2017-10-06 04:59:02 +02:00
</div>
<div class="setting-value">
2017-10-17 15:17:53 +02:00
{{combo-box value=action.post content=wizardFields nameProperty='label' none='admin.wizard.action.none'}}
2017-10-06 04:59:02 +02:00
</div>
</div>
2017-10-17 09:18:53 +02:00
2017-10-06 04:59:02 +02:00
<div class="setting">
<div class="setting-label">
<h3>{{i18n "admin.wizard.action.send_message.recipient"}}</h3>
</div>
<div class="setting-value">
{{user-selector single="true"
includeMentionableGroups="true"
usernames=action.username
allowedUsers="true"}}
</div>
</div>
2017-10-22 05:37:58 +02:00
<div class="setting full">
<label>{{i18n "admin.wizard.action.add_fields" type='Message'}}</label>
{{wizard-custom-input inputs=action.add_fields valueContent=wizardFields noneValue='admin.wizard.action.none'}}
</div>
2017-09-23 04:34:07 +02:00
{{/if}}
2017-10-06 04:59:02 +02:00
2017-10-05 02:36:46 +02:00
{{#if updateProfile}}
2017-10-17 09:18:53 +02:00
<div class="setting full">
2017-10-22 05:37:58 +02:00
<label>{{i18n "admin.wizard.action.add_fields" type='Profile'}}</label>
2017-10-17 15:17:53 +02:00
{{wizard-custom-input inputs=action.profile_updates
valueContent=profileFields
keyContent=wizardFields
noneKey='admin.wizard.action.none'
noneValue='admin.wizard.action.none'}}
2017-10-06 04:59:02 +02:00
</div>
2017-09-23 04:34:07 +02:00
{{/if}}