refactor: Templatise tasks

This commit is contained in:
Sweetbread 2025-01-27 22:49:34 +03:00
parent 65c6468414
commit 28dba79cdf
4 changed files with 27 additions and 49 deletions

17
templates/_task.html Normal file
View File

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="ru">
{% block head %}
{% include '_head.html' %}
{% endblock %}
<body>
{% include '_header.html' %}
{% block content %}{% endblock %}
{% include '_sidenav.html' %}
<img id="help" src="{{ url_for('static', filename='imgs/icon.png') }}">
</body>
</html>

View File

@ -1,16 +1 @@
<!DOCTYPE html>
<html lang="ru">
{% include '_head.html' %}
<body>
{% include '_header.html' %}
{% include '_sidenav.html' %}
<div id="popup-overlay">
<div id="popup">
</div>
</div>
<img id="help" src="{{ url_for('static', filename='imgs/icon.png') }}">
</body>
</html>
{% extends '_task.html' %}

View File

@ -1,11 +1 @@
<!DOCTYPE html>
<html lang="ru">
{% include '_head.html' %}
<body>
{% include '_header.html' %}
{% include '_sidenav.html' %}
<img id="help" src="{{ url_for('static', filename='imgs/icon.png') }}">
</body>
</html>
{% extends '_task.html' %}

View File

@ -1,11 +1,6 @@
<!DOCTYPE html>
<html lang="ru">
{% include '_head.html' %}
<body>
{% include '_header.html' %}
{% extends '_task.html' %}
{% block content%}
<div class="container">
<div id="popup" class="sql-input divv">
<p class="simpletext">я попка кошки с подсказкой</p>
@ -20,19 +15,10 @@
</div>
</div>
{% include '_sidenav.html' %}
{% if error %}
<div id="error">
<p>{{ error }}</p>
</div>
<div id="error"> <p>{{ error }}</p> </div>
{% elif success %}
<div id="success"> <p>{{ success }}</p> </div>
{% endif %}
{% if success %}
<div id="success">
<p>{{ success }}</p>
</div>
{% endif %}
<img id="help" src="{{ url_for('static', filename='imgs/icon.png') }}">
</body>
</html>
{% endblock %}