add partial frontend
This commit is contained in:
14
core/frontend/widgets/err_banner.jinja
Normal file
14
core/frontend/widgets/err_banner.jinja
Normal file
@ -0,0 +1,14 @@
|
||||
{% if error > 0 %}
|
||||
<div class="err-banner">
|
||||
<h3>Error</h3>
|
||||
{% if error == 1 %}
|
||||
Card not registered, or wrong password
|
||||
{% elif error == 2 %}
|
||||
Missing or malformed access code
|
||||
{% elif error == 3 %}
|
||||
Failed to create user
|
||||
{% else %}
|
||||
An unknown error occoured
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
6
core/frontend/widgets/topbar.jinja
Normal file
6
core/frontend/widgets/topbar.jinja
Normal file
@ -0,0 +1,6 @@
|
||||
<div style="background: #333; color: #f9f9f9; width: 10%; height: 50px; line-height: 50px; text-align: center; float: left;">
|
||||
Navigation
|
||||
</div>
|
||||
<div style="background: #333; color: #f9f9f9; width: 90%; height: 50px; line-height: 50px; text-align: center; float: right;">
|
||||
<a href="/gate"><button class="btn btn-primary">Gate</button></a>
|
||||
</div>
|
Reference in New Issue
Block a user