forked from GithubBackups/healthchecks
44 lines
1.3 KiB
HTML
44 lines
1.3 KiB
HTML
{% extends "base.html" %}
|
|
{% load compress humanize staticfiles hc_extras %}
|
|
|
|
{% block title %}Notification Channels - {% site_name %}{% endblock %}
|
|
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<h1>SMS</h1>
|
|
|
|
<p>Get a SMS message to your specified number when check goes down.</p>
|
|
|
|
<h2>Integration Settings</h2>
|
|
|
|
<form method="post" class="form-horizontal" action="{% url 'hc-add-sms' %}">
|
|
{% csrf_token %}
|
|
<div class="form-group {{ form.value.css_classes }}">
|
|
<label for="id_number" class="col-sm-2 control-label">Phone Number</label>
|
|
<div class="col-sm-3">
|
|
<input
|
|
id="id_number"
|
|
type="tel"
|
|
class="form-control"
|
|
name="value"
|
|
placeholder="+1234567890"
|
|
value="{{ form.value.value|default:"" }}">
|
|
|
|
{% if form.value.errors %}
|
|
<div class="help-block">
|
|
{{ form.value.errors|join:"" }}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="col-sm-offset-2 col-sm-10">
|
|
<button type="submit" class="btn btn-primary">Save Integration</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |