|
|
@ -7,7 +7,27 @@ |
|
|
|
{% block content %} |
|
|
|
<div class="row"> |
|
|
|
<div class="col-sm-12"> |
|
|
|
<h1>My Checks</h1> |
|
|
|
<h1>My Checks</h1> |
|
|
|
</div> |
|
|
|
{% if tags %} |
|
|
|
<div id="my-checks-tags" class="col-sm-12"> |
|
|
|
{% for tag, count in tags %} |
|
|
|
{% if tag in down_tags %} |
|
|
|
<button class="btn btn-danger btn-xs" data-toggle="button">{{ tag }}</button> |
|
|
|
{% elif tag in grace_tags %} |
|
|
|
<button class="btn btn-warning btn-xs" data-toggle="button">{{ tag }}</button> |
|
|
|
{% else %} |
|
|
|
<button class="btn btn-default btn-xs" data-toggle="button">{{ tag }}</button> |
|
|
|
{% endif %} |
|
|
|
{% endfor %} |
|
|
|
</div> |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
</div> |
|
|
|
<div class="row"> |
|
|
|
<div class="col-sm-12"> |
|
|
|
|
|
|
|
|
|
|
|
{% if checks %} |
|
|
|
{% include "front/my_checks_mobile.html" %} |
|
|
|
{% include "front/my_checks_desktop.html" %} |
|
|
@ -28,23 +48,53 @@ |
|
|
|
|
|
|
|
<div id="update-name-modal" class="modal"> |
|
|
|
<div class="modal-dialog"> |
|
|
|
<form id="update-name-form" method="post"> |
|
|
|
<form id="update-name-form" class="form-horizontal" method="post"> |
|
|
|
{% csrf_token %} |
|
|
|
<div class="modal-content"> |
|
|
|
<div class="modal-header"> |
|
|
|
<button type="button" class="close" data-dismiss="modal">×</span></button> |
|
|
|
<h4 class="update-timeout-title">Name</h4> |
|
|
|
<h4 class="update-timeout-title">Name and Tags</h4> |
|
|
|
</div> |
|
|
|
<div class="modal-body"> |
|
|
|
<p>Give this check a human-friendly name, so you can |
|
|
|
easily recognize it later:</p> |
|
|
|
<input |
|
|
|
id="update-name-input" |
|
|
|
name="name" |
|
|
|
type="text" |
|
|
|
value="---" |
|
|
|
placeholder="unnamed" |
|
|
|
class="input-name form-control" /> |
|
|
|
<div class="form-group"> |
|
|
|
<label for="update-name-input" class="col-sm-2 control-label"> |
|
|
|
Name |
|
|
|
</label> |
|
|
|
<div class="col-sm-9"> |
|
|
|
<input |
|
|
|
id="update-name-input" |
|
|
|
name="name" |
|
|
|
type="text" |
|
|
|
value="---" |
|
|
|
placeholder="unnamed" |
|
|
|
class="input-name form-control" /> |
|
|
|
|
|
|
|
<span class="help-block"> |
|
|
|
Give this check a human-friendly name, |
|
|
|
so you can easily recognize it later. |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="form-group"> |
|
|
|
<label for="update-tags-input" class="col-sm-2 control-label"> |
|
|
|
Tags |
|
|
|
</label> |
|
|
|
<div class="col-sm-9"> |
|
|
|
<input |
|
|
|
id="update-tags-input" |
|
|
|
name="tags" |
|
|
|
type="text" |
|
|
|
value="" |
|
|
|
placeholder="production www" |
|
|
|
class="form-control" /> |
|
|
|
|
|
|
|
<span class="help-block"> |
|
|
|
Optionally, assign tags for easy filtering. |
|
|
|
Separate multiple tags with spaces. |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="modal-footer"> |
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> |
|
|
|