{% extends "base.html" %}

{% block body %}
<div class="container">
<form method="POST"> {% csrf_token %}
    <table class="table table-striped table-bordered table-hover table-nonfluid">
        {{ form.as_table }}
    </table>
    {% if project %}
    <button class="btn btn-default" type="submit" name="id" onclick="location.href='{% url 'edit_project' project.pk %}'">Submit</button>
    <a class="btn btn-default" href="{% url 'project_sessions' project.pk %}">Cancel</a>
    {% else %}
    <button class="btn btn-default" type="submit" name="id" onclick="location.href='{% url 'new_project' %}'">Submit</button>
    <a class="btn btn-default" href="{% url 'home_projects' %}">Cancel</a>
    {% endif %}
</form>
</div>
{% endblock body %}
