{% extends "base.html" %}
|
|
{% load compress humanize static hc_extras %}
|
|
|
|
{% block title %}Pushover Integration for {{ site_name }}{% endblock %}
|
|
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<h1>Pushover</h1>
|
|
<div class="jumbotron">
|
|
<p>
|
|
<a href="https://www.pushover.net/">Pushover</a> delivers
|
|
real-time notifications on your Android, iPhone, iPad, Desktop,
|
|
Android Wear and Apple Watch. You can set up {{ site_name }} to
|
|
receive Pushover notifications in a few simple steps.
|
|
</p>
|
|
</div>
|
|
|
|
<h2>Integration Settings</h2>
|
|
|
|
<form id="add-pushover" method="post" class="form-horizontal">
|
|
{% csrf_token %}
|
|
<div class="form-group">
|
|
<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="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 class="form-group">
|
|
<div class="col-sm-offset-3 col-sm-8">
|
|
<button type="submit" class="btn btn-default">
|
|
<img class="ai-icon" src="{% static 'img/integrations/po.png' %}" alt="Pushover" />
|
|
Subscribe with Pushover
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% 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 %}
|