49 lines
1.7 KiB
HTML
49 lines
1.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{% block title %}Claims{% endblock %}</title>
|
|
<style>
|
|
body { font-family: sans-serif; margin: 2rem; }
|
|
form { max-width: 480px; display: grid; gap: 1rem; }
|
|
label { font-weight: 600; }
|
|
input, textarea { padding: 0.5rem; }
|
|
table { border-collapse: collapse; width: 100%; margin-top: 1rem; }
|
|
th, td { border: 1px solid #ccc; padding: 0.5rem; text-align: left; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<nav>
|
|
<a href="{% url 'claims:submit' %}">Skicka utlägg</a> |
|
|
<a href="{% url 'claims:admin-list' %}">Admin</a> |
|
|
<a href="{% url 'claims:export' %}">Export</a> |
|
|
{% if user.is_authenticated %}
|
|
<a href="{% url 'claims:my-claims' %}">Mina utlägg</a> |
|
|
{% if perms.auth.view_user %}
|
|
<a href="{% url 'claims:user-manage' %}">Användare</a> |
|
|
{% endif %}
|
|
{% if user.is_staff %}
|
|
<a href="{% url 'admin:index' %}">Kontohantering</a> |
|
|
{% endif %}
|
|
Inloggad som {{ user.get_username }}
|
|
<form action="{% url 'logout' %}" method="post" style="display:inline;">
|
|
{% csrf_token %}
|
|
<button type="submit">Logga ut</button>
|
|
</form>
|
|
{% else %}
|
|
<a href="{% url 'login' %}">Logga in</a>
|
|
{% endif %}
|
|
</nav>
|
|
<hr>
|
|
{% if messages %}
|
|
<ul>
|
|
{% for message in messages %}
|
|
<li>{{ message }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
{% block content %}{% endblock %}
|
|
</body>
|
|
</html>
|