This commit is contained in:
Leigh Morresi
2021-01-27 13:17:35 +01:00
parent 604d0e0317
commit 44f0639dfe
8 changed files with 57 additions and 26 deletions

View File

@@ -34,12 +34,17 @@
<header>
{% block header %}{% endblock %}
</header>
<!--
{% for message in get_flashed_messages() %}
<div class="flash">{{ message }}</div>
{% endfor %}
-->
{% block content %}{% endblock %}
<div class="messages">
{% for message in messages %}
<div class="flash-message {{ message['class'] }}">{{ message['message'] }}</div>
{% endfor %}
</div>
{% block content %}
{% endblock %}
</section>
</body>
</html>

View File

@@ -3,16 +3,16 @@
{% block content %}
<div class="box">
<form class="pure-form">
<form class="pure-form" action="/api/add" method="POST">
<fieldset>
<legend>Add new change detection watch</legend>
<input type="url" placeholder="https://..." />
<input type="text" placeholder="tag" size="10" />
<input type="url" placeholder="https://..." name="url"/>
<input type="text" placeholder="tag" size="10" name="tag"/>
<button type="submit" class="pure-button pure-button-primary">Save</button>
</fieldset>
</form>
<table class="pure-table">
<table class="pure-table pure-table-striped">
<thead>
<tr>
<th>#</th>
@@ -26,8 +26,8 @@
{% for watch in watches %}
<tr class="pure-table-odd">
<td>1</td>
<tr class="{{ loop.cycle('pure-table-odd', 'pure-table-even') }}">
<td>{{ loop.index }}</td>
<td>{{ watch.url }}</td>
<td>2021/2/2 14:00:00</td>
<td>No Change</td>