mirror of https://github.com/zulip/zulip.git
40 lines
2.1 KiB
Handlebars
40 lines
2.1 KiB
Handlebars
{{! Alert word in the settings page that can be removed }}
|
|
<li class="alert-word-item" data-word='{{word}}'>
|
|
{{#if editing}}
|
|
<div class="alert-word-settings-form">
|
|
<div class="add-new-alert-word-box grey-bg green-bg">
|
|
<form id="create_alert_word_form" class="form-horizontal no-padding">
|
|
<h4 class="new-alert-word-section-title light no-margin">{{t "Add a New Alert Word"}}</h4>
|
|
<div class="new-alert-word-form">
|
|
<div class="input-group">
|
|
<label for="create_alert_word_name">{{t "New Alert Word" }}</label>
|
|
<input type="text" name="alert_word_name" id="create_alert_word_name" class="required"
|
|
maxlength=100 placeholder="{{t 'Alert Word' }}" value="" />
|
|
</div>
|
|
<div class="alert alert-danger" id="empty_alert_word_error" role="alert">
|
|
<button type="button" class="close close-empty-alert-word-error" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
<span>{{t "Alert words can't be empty!"}}</span>
|
|
</div>
|
|
<button class="button add-alert-word" id="create_alert_word_button" type="button">
|
|
{{t 'Add Alert Word'}}
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{{else}}
|
|
<div class="alert-word-information-box list-container">
|
|
<div class="alert_word_listing">
|
|
<span class="value">{{word}}</span>
|
|
</div>
|
|
<div class="edit-alert-word-buttons">
|
|
<button type="submit" class="button small btn-small btn-danger remove-alert-word" title="{{t 'Delete Alert Word' }}" data-word="{{word}}">
|
|
<i class="icon-vector-trash"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
</li>
|