refactor: Add automation tables.
This commit is contained in:
13 files changed
+587
-135
No files matched your search
@@ -0,0 +1,38 @@
|
||||
{% include 'header.html' %}
|
||||
|
||||
<h3>Automation Strategies</h3>
|
||||
{% for m in messages %}
|
||||
<p>{{ m }}</p>
|
||||
{% endfor %}
|
||||
|
||||
<form method="post">
|
||||
<table>
|
||||
|
||||
<tr><td>Sort By</td><td>
|
||||
<select name="sort_by">
|
||||
<option value="created_at"{% if filters.sort_by=='created_at' %} selected{% endif %}>Created At</option>
|
||||
</select>
|
||||
<select name="sort_dir">
|
||||
<option value="asc"{% if filters.sort_dir=='asc' %} selected{% endif %}>Ascending</option>
|
||||
<option value="desc"{% if filters.sort_dir=='desc' %} selected{% endif %}>Descending</option>
|
||||
</select>
|
||||
</td></tr>
|
||||
|
||||
<tr><td><input type="submit" name='applyfilters' value="Apply Filters"></td><td><input type="submit" name='clearfilters' value="Clear Filters"></td></tr>
|
||||
<tr><td><input type="submit" name='pageback' value="Page Back"></td><td>Page: {{ filters.page_no }}</td><td><input type="submit" name='pageforwards' value="Page Forwards"></td></tr>
|
||||
</table>
|
||||
<input type="hidden" name="formid" value="{{ form_id }}">
|
||||
<input type="hidden" name="pageno" value="{{ filters.page_no }}">
|
||||
</form>
|
||||
|
||||
<p><a href="/newautomationstrategy">Create New Strategy</a></p>
|
||||
|
||||
<table>
|
||||
<tr><th>Name</th><th>Type</th></tr>
|
||||
{% for s in strategies %}
|
||||
<tr><td><a class="monospace" href=/automationstrategy/{{ s[0] }}>{{ s[1] }}</td><td>{{ s[2] }}</td></tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
<p><a href="/">home</a></p>
|
||||
</body></html>
|
||||
@@ -0,0 +1,27 @@
|
||||
{% include 'header.html' %}
|
||||
|
||||
<h3>Automation Strategy {{ strategy_id }}</h3>
|
||||
|
||||
{% for m in messages %}
|
||||
<p>{{ m }}</p>
|
||||
{% endfor %}
|
||||
|
||||
<table>
|
||||
<tr><td>Label</td><td>{{ strategy.label }}</td></tr>
|
||||
<tr><td>Type</td><td>{{ strategy.type }}</td></tr>
|
||||
<tr><td>Only known identities</td><td>{{ strategy.only_known_identities }}</td></tr>
|
||||
|
||||
<tr><td>Data</td><td>
|
||||
<textarea class="monospace" rows="10" cols="150" readonly>
|
||||
{{ strategy.data }}
|
||||
</textarea>
|
||||
<tr><td>Notes</td><td>
|
||||
<textarea rows="10" cols="150" readonly>
|
||||
{{ strategy.note }}
|
||||
</textarea>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
|
||||
<p><a href="/">home</a></p>
|
||||
</body></html>
|
||||
@@ -0,0 +1,11 @@
|
||||
{% include 'header.html' %}
|
||||
|
||||
<h3>New Automation Strategy</h3>
|
||||
{% for m in messages %}
|
||||
<p>{{ m }}</p>
|
||||
{% endfor %}
|
||||
|
||||
<p>TODO</p>
|
||||
|
||||
<p><a href="/">home</a></p>
|
||||
</body></html>
|
||||
@@ -19,6 +19,7 @@ Version: {{ version }}
|
||||
<a href="/bids">Received Bids: {{ summary.num_recv_bids }}</a><br/>
|
||||
<a href="/sentbids">Sent Bids: {{ summary.num_sent_bids }}</a><br/>
|
||||
<a href="/watched">Watched Outputs: {{ summary.num_watched_outputs }}</a><br/>
|
||||
<a href="/automation">Automation Strategies</a><br/>
|
||||
{% if use_tor_proxy %} <a href="/tor">TOR Information</a><br/> {% endif %}
|
||||
</p>
|
||||
|
||||
|
||||
Reference in new issue
Block a user