2023-09-11 08:07:53 +02:00
|
|
|
{% extends "base.html" %}
|
2023-09-11 09:59:25 +02:00
|
|
|
{% block title %} Home Manager {% endblock title%}
|
2023-09-11 08:07:53 +02:00
|
|
|
{% block content %}
|
|
|
|
|
2023-09-12 23:51:16 +02:00
|
|
|
<style>
|
|
|
|
img {
|
|
|
|
max-width: 100%;
|
|
|
|
object-fit: cover;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2023-09-11 09:59:25 +02:00
|
|
|
{% if user.is_authenticated %}
|
2023-09-12 23:51:16 +02:00
|
|
|
<div class="jumbotron">
|
|
|
|
<form action="" method="post">
|
|
|
|
{% csrf_token %}
|
|
|
|
<ul class="list-group">
|
|
|
|
{{ form.as_ul }}
|
|
|
|
</ul>
|
|
|
|
<input class="btn btn-primary btn-lg" type="submit" value="Enable">
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="jumbotron">
|
|
|
|
{% load static %}
|
|
|
|
<img src="{% static image %}" alt="My image">
|
2023-09-11 09:59:25 +02:00
|
|
|
</div>
|
|
|
|
{% else %}
|
2023-09-12 23:51:16 +02:00
|
|
|
<div class="jumbotron">
|
|
|
|
<p class="lead">You are not logged in</p>
|
|
|
|
<p class="lead">
|
|
|
|
<a class="btn btn-primary btn-lg" href="{% url 'login' %}" role="button">Log In</a>
|
|
|
|
</p>
|
|
|
|
</div>
|
2023-09-11 09:59:25 +02:00
|
|
|
{% endif %}
|
2023-09-12 23:51:16 +02:00
|
|
|
|
|
|
|
|
2023-09-11 08:07:53 +02:00
|
|
|
{% endblock content %}
|