2013-09-04 21:54:24 +02:00
|
|
|
{{! Alert word in the settings page that can be removed }}
|
|
|
|
<li class="alert-word-item" data-word='{{word}}'>
|
2016-04-08 20:42:45 +02:00
|
|
|
{{#if editing}}
|
2016-06-24 01:53:49 +02:00
|
|
|
<div class="alert-word-settings-form">
|
|
|
|
<form id="create_alert_word_form" class="form-horizontal">
|
|
|
|
<div class="add-new-alert-word-box">
|
|
|
|
<div class="settings-section-title new-alert-word-section-title">{{t "Add a New Alert Word"}}</div>
|
|
|
|
<div class="new-alert-word-form">
|
|
|
|
<div class="control-group">
|
|
|
|
<label for="create_alert_word_name" class="control-label">{{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>
|
2016-07-14 01:32:25 +02:00
|
|
|
<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>
|
2016-06-24 01:53:49 +02:00
|
|
|
<button class="btn btn-primary add-alert-word" id="create_alert_word_button" type="button">
|
|
|
|
{{t 'Add Alert Word'}}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2016-04-08 20:42:45 +02:00
|
|
|
{{else}}
|
2016-06-24 01:53:49 +02:00
|
|
|
<div class="alert-word-information-box">
|
|
|
|
<div class="alert_word_listing">
|
|
|
|
<span class="value">{{word}}</span>
|
|
|
|
</div>
|
|
|
|
<div class="edit-alert-word-buttons">
|
|
|
|
<button type="submit" class="btn btn-small btn-danger remove-alert-word" title="{{t 'Delete Alert Word' }}" data-word="{{word}}">
|
|
|
|
<i class="icon-vector-trash"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-04-08 20:42:45 +02:00
|
|
|
{{/if}}
|
2013-10-08 13:13:49 +02:00
|
|
|
</li>
|