refactor: Templatise tasks
This commit is contained in:
parent
65c6468414
commit
28dba79cdf
17
templates/_task.html
Normal file
17
templates/_task.html
Normal 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>
|
@ -1,16 +1 @@
|
|||||||
<!DOCTYPE html>
|
{% extends '_task.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>
|
|
||||||
|
@ -1,11 +1 @@
|
|||||||
<!DOCTYPE html>
|
{% extends '_task.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>
|
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
<!DOCTYPE html>
|
{% extends '_task.html' %}
|
||||||
<html lang="ru">
|
|
||||||
{% include '_head.html' %}
|
|
||||||
<body>
|
|
||||||
|
|
||||||
{% include '_header.html' %}
|
|
||||||
|
|
||||||
|
|
||||||
|
{% block content%}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div id="popup" class="sql-input divv">
|
<div id="popup" class="sql-input divv">
|
||||||
<p class="simpletext">я попка кошки с подсказкой</p>
|
<p class="simpletext">я попка кошки с подсказкой</p>
|
||||||
@ -20,19 +15,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% include '_sidenav.html' %}
|
{% if error %}
|
||||||
{% if error %}
|
<div id="error"> <p>{{ error }}</p> </div>
|
||||||
<div id="error">
|
{% elif success %}
|
||||||
<p>{{ error }}</p>
|
<div id="success"> <p>{{ success }}</p> </div>
|
||||||
</div>
|
{% endif %}
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if success %}
|
{% endblock %}
|
||||||
<div id="success">
|
|
||||||
<p>{{ success }}</p>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
<img id="help" src="{{ url_for('static', filename='imgs/icon.png') }}">
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user