form to input working hours
This commit is contained in:
@@ -14,11 +14,13 @@
|
||||
<title>Aussen- und Innenausbau</title>
|
||||
{% endif %}
|
||||
</head>
|
||||
<body>
|
||||
<body class="text-center">
|
||||
<div class="navbar-wrapper">
|
||||
<header>
|
||||
<nav class="navbar navbar-light bg-nav navbar-expand-md">
|
||||
<nav class="navbar fixed-top navbar-light bg-nav navbar-expand-md">
|
||||
<!--Logo-->
|
||||
<a class="navbar-brand" href="#"><img src="{% static "img/logo.png" %} width="300" " id="logo" alt="logo"
|
||||
{% load static %}
|
||||
<a class="navbar-brand" href="#"><img src="{% static 'img/logo.png' %}" width="150" alt="logo"
|
||||
class="d-inline-block mr-1 align-center"></a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#mainmenu">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
@@ -40,13 +42,14 @@
|
||||
</div>
|
||||
|
||||
</nav>
|
||||
</header>
|
||||
</header>
|
||||
</div>
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
|
||||
|
||||
|
||||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -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 }}
|
||||
<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 </p>
|
||||
<a href="{% url 'login' %}">Zaloguj</a>
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
24
templates/inputhours.html
Normal file
24
templates/inputhours.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
{% if user.is_authenticated %}
|
||||
Zalogowany: {{ user.username }}
|
||||
<p><a href="{% url 'login' %}">Wyloguj</a></p> <br>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<!-- form to input working hours-->
|
||||
<div class="row">
|
||||
<div class="form-hours">
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<button class="btn btn-lg btn-success btn-block" type="submit">Dodaj</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -27,7 +27,7 @@
|
||||
</head>
|
||||
|
||||
<body class="text-center">
|
||||
<div class="container">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="form-signin">
|
||||
{% load static %}
|
||||
|
||||
Reference in New Issue
Block a user