{% extends "base.html" %}
{% block title %} Home Manager {% endblock title%}
{% block content %}

    <style>
        img {
        max-width: 100%;
        object-fit: cover;
        }
    </style>

    {% if user.is_authenticated %}
        <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">
        </div>
    {% else %}
    <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>
    {% endif %}


{% endblock content %}