2021-01-29 09:49:05 +00:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="edit-form">
|
|
|
|
|
|
|
|
|
2021-02-02 14:37:20 +00:00
|
|
|
<form class="pure-form pure-form-stacked" action="/edit?uuid={{uuid}}" method="POST">
|
2021-01-29 09:49:05 +00:00
|
|
|
<fieldset>
|
|
|
|
<div class="pure-control-group">
|
|
|
|
<label for="url">URL</label>
|
|
|
|
<input type="url" id="url" required="" placeholder="https://..." name="url" value="{{ watch.url}}"
|
|
|
|
size="50"/>
|
|
|
|
<span class="pure-form-message-inline">This is a required field.</span>
|
|
|
|
</div>
|
|
|
|
<div class="pure-control-group">
|
|
|
|
<label for="tag">Tag</label>
|
|
|
|
<input type="text" placeholder="tag" size="10" id="tag" name="tag" value="{{ watch.tag}}"/>
|
2021-01-30 10:22:59 +00:00
|
|
|
<span class="pure-form-message-inline">Grouping tags, can be a comma separated list.</span>
|
2021-01-29 09:49:05 +00:00
|
|
|
</div>
|
|
|
|
|
2021-02-26 19:07:26 +00:00
|
|
|
<!-- @todo: move to tabs --->
|
|
|
|
<fieldset class="pure-group">
|
|
|
|
<label for="ignore-text">Ignore text</label>
|
|
|
|
|
|
|
|
<textarea id="ignore-text" name="ignore-text" class="pure-input-1-2" placeholder=""
|
|
|
|
style="width: 100%;
|
|
|
|
font-family:monospace;
|
|
|
|
white-space: pre;
|
|
|
|
overflow-wrap: normal;
|
|
|
|
overflow-x: scroll;" rows="5">{% for value in watch.ignore_text %}{{ value }}
|
|
|
|
{% endfor %}</textarea>
|
|
|
|
<span class="pure-form-message-inline">Each line will be processed separately as an ignore rule.</span>
|
|
|
|
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<!-- @todo: move to tabs --->
|
2021-01-29 18:12:39 +00:00
|
|
|
<fieldset class="pure-group">
|
|
|
|
<label for="headers">Extra request headers</label>
|
|
|
|
|
2021-02-26 19:07:26 +00:00
|
|
|
<textarea id="headers" name="headers" class="pure-input-1-2" placeholder="Example
|
2021-01-29 18:12:39 +00:00
|
|
|
Cookie: foobar
|
|
|
|
User-Agent: wonderbra 1.0"
|
|
|
|
style="width: 100%;
|
|
|
|
font-family:monospace;
|
|
|
|
white-space: pre;
|
|
|
|
overflow-wrap: normal;
|
|
|
|
overflow-x: scroll;" rows="5">{% for key, value in watch.headers.items() %}{{ key }}: {{ value }}
|
|
|
|
{% endfor %}</textarea>
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
</fieldset>
|
2021-02-26 19:07:26 +00:00
|
|
|
|
|
|
|
|
2021-01-29 18:12:39 +00:00
|
|
|
<div class="pure-control-group">
|
2021-01-29 16:52:49 +00:00
|
|
|
<button type="submit" class="pure-button pure-button-primary">Save</button>
|
2021-01-29 09:49:05 +00:00
|
|
|
</div>
|
2021-01-29 18:12:39 +00:00
|
|
|
<br/>
|
2021-01-29 09:49:05 +00:00
|
|
|
|
2021-01-29 18:12:39 +00:00
|
|
|
<div class="pure-control-group">
|
2021-01-29 09:49:05 +00:00
|
|
|
<a href="/" class="pure-button button-small button-cancel">Cancel</a>
|
|
|
|
<a href="/api/delete?uuid={{uuid}}"
|
|
|
|
class="pure-button button-small button-error ">Delete</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|