1
0
Fork 0
discourse-custom-wizard-unl.../assets/javascripts/discourse/templates/components/wizard-links.hbs
2022-03-29 21:15:09 +02:00

19 Zeilen
794 B
Handlebars

<div class="wizard-header medium">{{html-safe (i18n header)}}</div>
<div class="link-list">
{{#if anyLinks}}
{{#each links as |link|}}
<div data-id={{link.id}}>
{{d-button action=(action "change") actionParam=link.id translatedLabel=link.label class=link.classes}}
{{#unless link.first}}
{{d-button action=(action "back") actionParam=link icon="arrow-left" class="back"}}
{{/unless}}
{{#unless link.last}}
{{d-button action=(action "forward") actionParam=link icon="arrow-right" class="forward"}}
{{/unless}}
{{d-button action=(action "remove") actionParam=link.id icon="times" class="remove"}}
</div>
{{/each}}
{{/if}}
{{d-button action=(action "add") label="admin.wizard.add" icon="plus"}}
</div>