|
|
@ -16,25 +16,61 @@ |
|
|
|
|
|
|
|
<h2>Integration Settings</h2> |
|
|
|
|
|
|
|
<form method="post" class="form-horizontal" action="{% url 'hc-add-pushover' %}"> |
|
|
|
<form method="post" id="add-pushover" class="form-horizontal" action="{% url 'hc-add-pushover' %}"> |
|
|
|
{% csrf_token %} |
|
|
|
<div class="form-group"> |
|
|
|
<label for="po_priority" class="col-sm-2 control-label">Notification priority</label> |
|
|
|
<div class="col-sm-3"> |
|
|
|
<select class="form-control" id="po_priority" name="po_priority"> |
|
|
|
<option value="-2">Lowest</option> |
|
|
|
<option value="-1">Low</option> |
|
|
|
<option value="0" selected>Normal</option> |
|
|
|
<option value="1">High</option> |
|
|
|
<option value="2" |
|
|
|
data-toggle="tooltip" data-placement="right" |
|
|
|
title="Emergency notifications will be repeated every |
|
|
|
{{po_retry_delay|hc_duration }} for at most |
|
|
|
{{ po_expiration|hc_duration }} until you |
|
|
|
acknowledge them."> |
|
|
|
Emergency |
|
|
|
</option> |
|
|
|
</select> |
|
|
|
<div class="col-sm-6"> |
|
|
|
<div class="radio"> |
|
|
|
<label> |
|
|
|
<input type="radio" name="po_priority" value="-2"> |
|
|
|
Lowest Priority. |
|
|
|
<span class="help"> |
|
|
|
Generates no notification/alert on your device. |
|
|
|
On iOS, the application badge number will be increased. |
|
|
|
</span> |
|
|
|
</label> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="radio"> |
|
|
|
<label> |
|
|
|
<input type="radio" name="po_priority" value="-1"> |
|
|
|
Low Priority. |
|
|
|
<span class="help"> |
|
|
|
Sends a quiet notification. |
|
|
|
</span> |
|
|
|
</label> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="radio"> |
|
|
|
<label> |
|
|
|
<input type="radio" name="po_priority" value="0" checked> |
|
|
|
Normal Priority. |
|
|
|
</label> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="radio"> |
|
|
|
<label> |
|
|
|
<input type="radio" name="po_priority" value="1"> |
|
|
|
<span class="text-warning">High Priority.</span> |
|
|
|
<span class="help"> |
|
|
|
Bypasses user's quiet hours. |
|
|
|
</span> |
|
|
|
</label> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="radio"> |
|
|
|
<label> |
|
|
|
<input type="radio" name="po_priority" value="-2"> |
|
|
|
<span class="text-danger">Emergency Priority.</span> |
|
|
|
<span class="help"> |
|
|
|
The notification is repeated every |
|
|
|
{{po_retry_delay|hc_duration }} for at most |
|
|
|
{{ po_expiration|hc_duration }} until you |
|
|
|
acknowledge them. |
|
|
|
</span> |
|
|
|
</label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
@ -55,7 +91,4 @@ |
|
|
|
<script src="{% static 'js/jquery-2.1.4.min.js' %}"></script> |
|
|
|
<script src="{% static 'js/bootstrap.min.js' %}"></script> |
|
|
|
{% endcompress %} |
|
|
|
<script>$(function() { |
|
|
|
$('[data-toggle="tooltip"]').tooltip({container: 'body'}); |
|
|
|
})</script> |
|
|
|
{% endblock %} |