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