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}}
|
2017-02-15 21:03:30 +01:00
|
|
|
<div class="alert-word-settings-form">
|
|
|
|
<div class="add-new-alert-word-box grey-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"
|
2017-03-08 13:25:10 +01:00
|
|
|
maxlength=100 placeholder="{{t 'Alert word' }}" value="" />
|
2017-02-15 21:03:30 +01:00
|
|
|
</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>
|
2016-06-24 01:53:49 +02:00
|
|
|
</button>
|
2017-02-15 21:03:30 +01:00
|
|
|
<span>{{t "Alert words can't be empty!"}}</span>
|
2016-06-24 01:53:49 +02:00
|
|
|
</div>
|
2017-03-18 10:44:00 +01:00
|
|
|
<button class="button white rounded sea-green add-alert-word" id="create_alert_word_button" type="button">
|
2017-02-15 21:03:30 +01:00
|
|
|
{{t 'Add alert word'}}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
2016-06-24 01:53:49 +02:00
|
|
|
</div>
|
2017-02-15 21:03:30 +01:00
|
|
|
</div>
|
2016-04-08 20:42:45 +02:00
|
|
|
{{else}}
|
2017-03-01 20:04:38 +01:00
|
|
|
<div class="alert-word-information-box grey-bg">
|
2017-02-15 21:03:30 +01:00
|
|
|
<div class="alert_word_listing">
|
|
|
|
<span class="value">{{word}}</span>
|
|
|
|
</div>
|
|
|
|
<div class="edit-alert-word-buttons">
|
2017-03-18 10:44:00 +01:00
|
|
|
<button type="submit" class="button small white btn-danger remove-alert-word" title="{{t 'Delete alert word' }}" data-word="{{word}}">
|
2017-02-15 21:03:30 +01:00
|
|
|
<i class="icon-vector-trash"></i>
|
|
|
|
</button>
|
2016-06-24 01:53:49 +02:00
|
|
|
</div>
|
2017-02-15 21:03:30 +01:00
|
|
|
</div>
|
2016-04-08 20:42:45 +02:00
|
|
|
{{/if}}
|
2013-10-08 13:13:49 +02:00
|
|
|
</li>
|