add first part of save able login

This commit is contained in:
Kevin Muller 2025-02-19 16:59:23 +01:00
parent 25981cdf33
commit 5eff40dec6
3 changed files with 7 additions and 24 deletions

View file

@ -16,28 +16,12 @@
<body>
<header>
{% block navigation %}
<nav>
<ul>
<li>
<a href="{% url 'index' %}">Start</a>
</li>
<li>
<a href="{% url 'service_list' %}">Services</a>
</li>
{% load custom_tags %}
<li>
{% if user.is_authenticated %}
Welcome, <a href="{% url 'account_detail' %}">{{ user.username }}</a>! <a id="logout" href="{% auth_url 'logout' %}">Logout</a>
<p>Welcome, {{ user.username }}! <a href="{% url 'logout' %}?next={{ request.path }}">Logout</a></p>
<p><a href="{% url 'deploy_services' %}">Deploy services</a></p>
{% else %}
<a id="login" href="{% auth_url 'login' %}">Login</a>
<p><a href="{% url 'login' %}?next={{ request.path }}">Login</a></p>
{% endif %}
</li>
</ul>
</nav>
{% endblock navigation %}
</header>
{% block layout %}

View file

@ -4,7 +4,6 @@
{% csrf_token %}
{{ form.as_p }}
</fieldset>
<button class="button" disabled>Deploy</button>