<!-- templates/home.html -->
{% extends 'base.html' %}

{% block title %}Home{% endblock %}

{% block content %}
{% if user.is_authenticated %}

<!-- <form action="{% url 'bills:create' %}" method="post">
    {% csrf_token %}
    <fieldset>
        <legend><h1>Create a New Bill</h1></legend>
        <div class="alert alert-danger" role="alert">
            This page is not yet functional!
          </div>
        <label for="name">Bill Name:</label>
        <input type="text" name="name" id="name" value="">
            <br>
    </fieldset>
    <input type="submit" value="Create Bill">
    </form> -->
    <form method="post">{% csrf_token %}
      {{ form.as_p }}
      <input type="submit" value="Save">
  </form>
{% else %}
  <p>You are not logged in</p>
  <a href="{% url 'login' %}">Log In</a>
{% endif %}
{% endblock %}


