mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
- Upgrades Ember to latest - Fixes a bunch of bugs with page titles and missing "active" states
35 lines
1.3 KiB
Handlebars
35 lines
1.3 KiB
Handlebars
<div class="modal-body flag-modal">
|
|
|
|
<form>
|
|
{{#each flagsAvailable itemController="flagActionType"}}
|
|
<div class='controls'>
|
|
<label class='radio'>
|
|
<input type='radio' id="radio_{{unbound name_key}}" {{action changePostActionType this}} name='post_action_type_index'> <strong>{{formattedName}}</strong>
|
|
{{#if showDescription}}
|
|
<div class='description'>{{{description}}}</div>
|
|
{{/if}}
|
|
</label>
|
|
{{#if showMessageInput}}
|
|
{{textarea name="message" class="flag-message" placeholder=customPlaceholder value=message}}
|
|
<div {{bind-attr class=":custom-message-length customMessageLengthClasses"}}>{{customMessageLength}}</div>
|
|
{{/if}}
|
|
</div>
|
|
{{else}}
|
|
{{i18n flagging.cant}}
|
|
{{/each}}
|
|
</form>
|
|
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button class='btn btn-primary' {{action createFlag}} {{bind-attr disabled="submitDisabled"}}>{{submitText}}</button>
|
|
|
|
{{#if canTakeAction}}
|
|
<button class='btn btn-danger' {{action takeAction}} {{bind-attr disabled="submitDisabled"}}>{{i18n flagging.take_action}}</button>
|
|
{{/if}}
|
|
|
|
{{#if canDeleteSpammer}}
|
|
<button class="btn btn-danger" {{action deleteSpammer}} {{bind-attr disabled="submitDisabled"}}><i class="fa fa-exclamation-triangle"></i> {{i18n flagging.delete_spammer}}</button>
|
|
{{/if}}
|
|
</div>
|
|
|