2020-01-13 22:20:26 +08:00
|
|
|
{{#d-section class="award-badge"}}
|
2020-01-14 01:44:22 +08:00
|
|
|
<h1>{{i18n 'admin.badges.mass_award.title'}}</h1>
|
|
|
|
<p>{{i18n 'admin.badges.mass_award.description'}}</p>
|
|
|
|
|
|
|
|
{{#if model}}
|
|
|
|
<form class="form-horizontal">
|
|
|
|
<div class='badge-preview'>
|
|
|
|
{{#if model}}
|
|
|
|
{{icon-or-image model}}
|
|
|
|
<span class="badge-display-name">{{model.name}}</span>
|
|
|
|
{{else}}
|
2020-03-11 16:23:10 +08:00
|
|
|
<span class='badge-placeholder'>{{i18n 'admin.badges.mass_award.no_badge_selected'}}</span>
|
2020-01-14 01:44:22 +08:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<div>
|
2020-03-11 16:23:10 +08:00
|
|
|
<h4>{{i18n 'admin.badges.mass_award.upload_csv'}}</h4>
|
2020-01-14 01:44:22 +08:00
|
|
|
<input type='file' id='massAwardCSVUpload' accept='.csv'>
|
|
|
|
</div>
|
2020-01-24 01:14:58 +08:00
|
|
|
<div>
|
|
|
|
<label>
|
|
|
|
{{input type="checkbox" checked=replaceBadgeOwners}}
|
|
|
|
{{i18n 'admin.badges.mass_award.replace_owners'}}
|
|
|
|
</label>
|
|
|
|
</div>
|
2020-01-14 01:44:22 +08:00
|
|
|
{{d-button
|
|
|
|
class="btn-primary"
|
|
|
|
action=(action 'massAward')
|
2020-02-05 22:23:35 +08:00
|
|
|
type="submit"
|
2020-01-14 01:44:22 +08:00
|
|
|
disabled=saving
|
|
|
|
label="admin.badges.mass_award.perform"}}
|
2020-01-14 02:53:41 +08:00
|
|
|
{{#link-to 'adminBadges.index' class="btn btn-danger"}}
|
|
|
|
{{d-icon "times"}}
|
|
|
|
<span>{{i18n 'cancel'}}</span>
|
|
|
|
{{/link-to}}
|
2020-01-14 01:44:22 +08:00
|
|
|
</form>
|
|
|
|
{{else}}
|
2020-03-11 16:23:10 +08:00
|
|
|
<span class='badge-required'>{{i18n 'admin.badges.mass_award.no_badge_selected'}}</span>
|
2020-01-14 01:44:22 +08:00
|
|
|
{{/if}}
|
|
|
|
{{/d-section}}
|