WWW service status tracker

By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 app-editor.html

View raw Download
text/plain • 1.5 kiB
ASCII text
        
            
1
{% extends "default.html" %}
2
{% block title %}{{ app.name }} | Echo Tracker{% endblock %}
3
{% block content %}
4
<main>
5
<h1>Editing {{ app.name }}</h1>
6
<div id="endpoint-editor">
7
{% for endpoint in app.endpoints %}
8
<form class="stacked-form" method="post" action="/app/{{ app.id }}/edit/{{ endpoint.id }}">
9
<input type="text" name="name" placeholder="Name" value="{{ endpoint.name }}">
10
<input type="url" name="url" placeholder="Ping address" value="{{ endpoint.address }}">
11
<textarea name="comment" placeholder="Comment" rows="4">{{ endpoint.comment }}</textarea>
12
<div class="side-by-side">
13
<button type="submit" class="extend">Apply changes</button>
14
<button type="submit" name="delete" value="delete" class="danger-button">
15
<iconify-icon icon="mdi:trash-can">Delete</iconify-icon>
16
</button>
17
</div>
18
</form>
19
{% endfor %}
20
</div>
21
<h2>Add an endpoint</h2>
22
<form class="stacked-form" method="post" action="/app/{{ app.id }}/add-endpoint">
23
<input type="text" name="name" placeholder="Name">
24
<input type="url" name="url" placeholder="Ping address">
25
<textarea name="comment" placeholder="Comment" rows="4"></textarea>
26
<button type="submit">Add</button>
27
</form>
28
</main>
29
{% endblock %}