form to input working hours

This commit is contained in:
Alicja Cięciwa
2020-11-11 00:46:00 +01:00
parent 4573ad43da
commit 212b0008af
21 changed files with 240 additions and 61 deletions

View File

@@ -1,13 +1,51 @@
{% extends 'base.html' %}
{% block title %}Home{% endblock %}
{% extends "base.html" %}
{% block content %}
{% if user.is_authenticated %}
Hi {{ user.username }}!
<p><a href="{% url 'logout' %}">Log Out</a></p>
{% else %}
<p>You are not logged in</p>
<a href="{% url 'login' %}">Log In</a>
{% endif %}
<div class="container">
<div class="row">
{% if user.is_authenticated %}
Zalogowany: {{ user.username }} &nbsp;
<p><a href="{% url 'logout' %}">Wyloguj</a></p>
<div class="form-hours">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="OK">
</form>
</div>
{% else %}
<p>Nie jesteś zalogowany &nbsp;</p>
<a href="{% url 'login' %}">Zaloguj</a>
{% endif %}
</div>
</div>
{% endblock %}