@ -1,5 +1,5 @@
{% extends "base.html" %}
{% extends "base.html" %}
{% load humanize static hc_extras %}
{% load compress humanize static hc_extras %}
{% block title %}Add Pushover - {% site_name %}{% endblock %}
{% block title %}Add Pushover - {% site_name %}{% endblock %}
@ -56,7 +56,7 @@
< p >
< p >
After logging in, go to "Integrations → Add Pushover".
After logging in, go to "Integrations → Add Pushover".
Pushover supports different notification priorities from
Pushover supports different notification priorities from
silent to "Emergency". Select your preferred priority
silent to "Emergency". Select your preferred priorities
and click "Subscribe with Pushover".
and click "Subscribe with Pushover".
< / p >
< / p >
< / div >
< / div >
@ -106,65 +106,72 @@
{% else %}
{% else %}
< h2 > Integration Settings< / h2 >
< h2 > Integration Settings< / h2 >
< form method = "post" id = "add-pushover " class = "form-horizontal" action = "{% url 'hc-add-pushover' %}" >
< form id = "add-pushover" method = "post " class = "form-horizontal" action = "{% url 'hc-add-pushover' %}" >
{% csrf_token %}
{% csrf_token %}
< div class = "form-group" >
< div class = "form-group" >
< label class = "col-sm-2 control-label" > Notification priority< / label >
< 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 >
< label class = "col-sm-3 control-label" > Priority for "down" events< / label >
< div class = "col-sm-8" >
< select name = "po_priority" class = "selectpicker form-control" >
< option
value="-2"
data-content="Lowest Priority. < span class = 'help' > Generates no notification on your device.< / span > ">
Lowest Priority
< / option >
< option
value="-1"
data-content="Low Priority. < span class = 'help' > Sends a quiet notification.< / span > ">
Low Priority
< / option >
< option value = "0" selected = "selected" >
Normal Priority
< / option >
< option
value="1"
data-content="High Priority. < span class = 'help' > Bypasses user's quiet hours.< / span > ">
High Priority
< / option >
< option
value="2"
data-content="Emergency Priority. < span class = 'help' > Repeated every {{po_retry_delay|hc_duration }} for at most {{ po_expiration|hc_duration }} until you acknowledge them.< / span > ">
Emergency Priority
< / option >
< / select >
< / div >
< / 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 class = "form-group" >
< label class = "col-sm-3 control-label" > Priority for "up" events< / label >
< div class = "col-sm-8" >
< select name = "po_priority_up" class = "selectpicker form-control" >
< option
value="-2"
data-content="Lowest Priority. < span class = 'help' > Generates no notification on your device.< / span > ">
Lowest Priority
< / option >
< option
value="-1"
data-content="Low Priority. < span class = 'help' > Sends a quiet notification.< / span > ">
Low Priority
< / option >
< option value = "0" selected = "selected" >
Normal Priority
< / option >
< option
value="1"
data-content="High Priority. < span class = 'help' > Bypasses user's quiet hours.< / span > ">
High Priority
< / option >
< option
value="2"
data-content="Emergency Priority. < span class = 'help' > Repeated every {{po_retry_delay|hc_duration }} for at most {{ po_expiration|hc_duration }} until you acknowledge them.< / span > ">
Emergency Priority
< / option >
< / select >
< / div >
< / div >
< / div >
< div class = "form-group" >
< div class = "form-group" >
< div class = "col-sm-offset-2 col-sm-10" >
< div class = "col-sm-offset-3 col-sm-8 " >
< button type = "submit" class = "btn btn-default" >
< button type = "submit" class = "btn btn-default" >
< img class = "ai-icon" src = "{% static 'img/integrations/po.png' %}" alt = "Pushover" / >
< img class = "ai-icon" src = "{% static 'img/integrations/po.png' %}" alt = "Pushover" / >
Subscribe with Pushover
Subscribe with Pushover
@ -176,3 +183,11 @@
< / div >
< / div >
< / div >
< / div >
{% endblock %}
{% endblock %}
{% block scripts %}
{% compress js %}
< script src = "{% static 'js/jquery-2.1.4.min.js' %}" > < / script >
< script src = "{% static 'js/bootstrap.min.js' %}" > < / script >
< script src = "{% static 'js/bootstrap-select.min.js' %}" > < / script >
{% endcompress %}
{% endblock %}