mirror of
https://github.com/SigNoz/opentelemetry-python-example.git
synced 2025-07-27 01:05:15 +08:00
87 lines
2.9 KiB
HTML
87 lines
2.9 KiB
HTML
<html>
|
|
<head>
|
|
<title>{{t}}</title>
|
|
<!-- href="/static/assets/style.css"-->
|
|
<link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='assets/style.css')}}" >
|
|
<link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='assets/emoji.css')}}" >
|
|
<script src="{{ url_for('static',filename='assets/twemoji.min.js')}}"></script>
|
|
<script src="{{ url_for('static',filename='assets/emoji.js')}}"></script>
|
|
</head>
|
|
<body>
|
|
<h1>{{ h }}</h1>
|
|
<ul>
|
|
<li><a href="/list" class="active">ALL</a></li>
|
|
<li><a href="/" class="active">Uncompleted</a></li>
|
|
<li><a href="/completed" class="active">Completed</a></li>
|
|
</ul>
|
|
<hr>
|
|
{% if todos[0] %}
|
|
<div span="right">
|
|
<form action="/search" method="GET" >
|
|
<table class="none" id="close">
|
|
<tr>
|
|
<td></td><td></td>
|
|
<td><big><b>Search Reference:</b></big></td>
|
|
<td><select name="refer" required>
|
|
<option value="name">Task Name</option>
|
|
<option value="desc">Description</option>
|
|
<option value="date">Date</option>
|
|
<option value="pr">Priority</option>
|
|
</select></td>
|
|
<td><input type="text" name="key" placeholder="Search Task" size="15" /></td>
|
|
<td><button type="submit">Search</button></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
<div style="margin:auto;display:table">
|
|
<form action="/generate-error" method="GET" >
|
|
<button style="color: white; background-color: #f44336; font-size: 30px;" type="submit">Generate Error</button>
|
|
</form>
|
|
</div>
|
|
<b><big>To-Do LIST :</big></b>
|
|
<table>
|
|
<tr id="row">
|
|
<th class="status">Status</th>
|
|
<th class="name">Task Name</th>
|
|
<th class="desc">Description Name</th>
|
|
<th class="date">Date</th>
|
|
<th class="pr">Priority</th>
|
|
<th class="func1">Remove</th>
|
|
<th class="func2">Modify</th>
|
|
</tr>
|
|
{% for todo in todos %}
|
|
<tr class="datas">
|
|
<td><a href="./done?_id={{ todo['_id'] }}"><input type="image" src="static/images/{{todo['done']}}.png" alt="Submit ME"></a></td>
|
|
<td class="name">{{ todo["name"] }}</td>
|
|
<td class="desc">{{ todo["desc"] }}</td>
|
|
<td class="date">{{ todo["date"] }}</td>
|
|
<td class="pr">{{ todo["pr"] }}</td>
|
|
<td class="func1"><a href="./remove?_id={{ todo['_id'] }}"><button type="submit">DELETE</button></a></td>
|
|
<td class="func1"><a href="./update?_id={{ todo['_id'] }}"><button type="submit">EDIT</button></a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% else %}
|
|
<h4>No Tasks in the List !!</h4>
|
|
{% endif %}
|
|
<hr/>
|
|
<form action="/action" method="POST">
|
|
<table class="none">
|
|
<tr>
|
|
<td><b><big><label>Add a Task : </label></big></b></td>
|
|
</tr>
|
|
<tr>
|
|
<td><input type="text" name="name" placeholder="Taskname" /></td>
|
|
<td><textarea name="desc" rows="1" cols="30" placeholder="Enter Description here..." required></textarea></td>
|
|
<td><input type="text" name="date" placeholder="Date" /></td>
|
|
<td><input type="text" name="pr" placeholder="Priority" /></td>
|
|
<td><button type="submit"> Create </button></td>
|
|
</tr>
|
|
</form>
|
|
</table>
|
|
<script>
|
|
|
|
</script>
|
|
</body>
|
|
</html> |