mirror of https://github.com/zulip/zulip.git
44 lines
2.3 KiB
Handlebars
44 lines
2.3 KiB
Handlebars
<div id="emoji-settings" data-name="emoji-settings" class="settings-section {{#unless realm_add_emoji_by_admins_only}}can-edit{{/unless}}">
|
|
{{#if realm_add_emoji_by_admins_only}}
|
|
<div class='tip'>{{t '<a href="#organization/organization-permissions">Only administrators</a> can add custom emoji in this organization.' }}</div>
|
|
{{else}}
|
|
<div class='tip'>{{t 'Any user can add custom emoji in this organization.' }}</div>
|
|
{{/if}}
|
|
<div class="admin-table-wrapper">
|
|
<p>{{#tr this}}Add extra emoji for members of the __realm_name__ organization.{{/tr}}</p>
|
|
<table class="table table-condensed table-striped admin_emoji_table">
|
|
<tbody id="admin_emoji_table">
|
|
<th>{{t "Name" }}</th>
|
|
<th class="image">{{t "Image" }}</th>
|
|
<th class="image">{{t "Author" }}</th>
|
|
<th class="actions">{{t "Actions" }}</th>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{{#unless realm_add_emoji_by_admins_only}}
|
|
<form class="form-horizontal admin-emoji-form">
|
|
<div class="add-new-emoji-box grey-bg green-bg">
|
|
<div class="new-emoji-form">
|
|
<div class="settings-section-title new-emoji-section-title no-padding">{{t "Add a new emoji" }}</div>
|
|
<div class="alert" id="admin-emoji-status"></div>
|
|
<div class="input-group">
|
|
<label for="emoji_name">{{t "Emoji name" }}</label>
|
|
<input type="text" name="name" id="emoji_name" placeholder="mouse_face" />
|
|
</div>
|
|
<div class="input-group">
|
|
<p id="emoji-file-name"></p>
|
|
<input type="file" name="emoji_file_input" class="notvisible"
|
|
id="emoji_file_input" value="{{t 'Upload emoji' }}"/>
|
|
<button class="btn btn-default display-none" id="emoji_image_clear_button">{{t "Clear emoji image" }}</button>
|
|
<button class="button" id="emoji_upload_button">{{t "Upload emoji" }}</button>
|
|
<p id="emoji_file_input_error" class="text-error"></p>
|
|
</div>
|
|
<button type="submit" class="button rounded sea-green">
|
|
{{t 'Add emoji' }}
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
{{/unless}}
|
|
</div>
|