Files
mdshop/code/templates/layout.html
2022-09-23 20:32:27 +03:00

53 lines
2.3 KiB
HTML

<!doctype html>
<html>
<head>
<meta charset=utf-8/>
<title>MDShop</title>
<script language="javascript" src="{{ url_for('static', filename='script.js') }}"></script>
<script language="javascript" src="{{ url_for('static', filename='table.js') }}"></script>
<link rel=stylesheet type=text/css href="{{ url_for('static', filename='style.css') }}">
<link rel="icon" href="{{ url_for('static', filename='favicon.ico') }}" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="HandheldFriendly" content="true" />
<meta name="viewport" content="width=device-width, height=device-height, user-scalable=yes" />
</head>
<body>
<div class=page>
<div class=metanav>
<a href="{{ url_for('list_shops') }}" id="shopsList">MDShops</a>
<span class="hspacer"></span>
<div class="dropdown">
<p onclick="dropDown('userAct')" class="dropbtn">&sube;&supe;</p>
<div id="userAct" class="dropdown-content">
<a href="#" onclick="reload();">&#x21bb; Reload</a>
<a href="{{ url_for('profile') }}">&#9817; Profile</a>
<a href="{{ url_for('logout') }}">&#10162; Logout</a>
</div>
</div>
{% if shop %}
<span class="hspacer"></span>
<div class="dropdown">
<p onclick="dropDown('shopAct')" class="dropbtn">&#9757;&#9748;</p>
<div id="shopAct" class="dropdown-content">
<a id="h2_add" onclick="hidetoggle('disp_add')" class=pointer>&plusmn;&nbsp;Add/remove</a>
<a id="h2_sort" onclick="sortMarkdown()" class=pointer>&nbsp;Sort&nbsp;once</a>
<a id="h2_edit" onclick="hidetoggle('disp_edit');growTextarea('edit_md');" class=pointer>&#x270e;&nbsp;Edit&nbsp;items</a>
<a id="h2_share" onclick="hidetoggle('disp_share')" class=pointer>&#9823;&nbsp;Share&nbsp;shop</a>
<a id="h2_restore" onclick="hidetoggle('disp_restore')" class=pointer>&#9851;&nbsp;Restore&nbsp;backup</a>
<a id="h2_delete" onclick="hidetoggle('disp_delete')" class=pointer>&otimes;&nbsp;Delete&nbsp;shop</a>
</div>
</div>
<span class="hspacer"></span>
<span class="iconbox fixed_topright" onclick="hidetoggle('disp_add')" title="Add/remove">±</span>
{% endif %}
</div>
{% for message in get_flashed_messages() %}
<div class=flash>{{ message }}</div>
{% endfor %}
<hr/>
{% block body %}{% endblock %}
</div>
</body>
</html>