{% extends "chem/base.html" %}

{% block content %}
    <h1>{{ molecule }}</h1>
    {% if error_message %}
        <p><strong>{{ error_message }}</strong></p>
    {% endif %}
    <form action="." method="get">
        {% csrf_token %}
        <table>
            {{ form.as_table }}

        </table>
        <table>
            <tr><th>
                <input type="submit" value="Submit Job" formmethod="post" formaction="."/>
                <input type="submit" value="Get Job File" />
                <input type="reset" value="Reset" />
            </th></tr>
        </table>
    </form>
{% endblock %}
{% extends "chem/base.html" %}

{% block content %}
    <h1>{{ molecule }}</h1>
    {% if error_message %}
        <p><strong>{{ error_message }}</strong></p>
    {% endif %}
    <form action="." method="get">
        <table>
            {{ form.as_table }}

        </table>
        <table>
            <tr><th>
                {% if user.is_authenticated %}
                    {% csrf_token %}
                    <input type="submit" value="Submit Job" formmethod="post" formaction="."/>
                {% endif %}
                <input type="submit" value="Get Job File" />
                <input type="reset" value="Reset" />
            </th></tr>
        </table>
    </form>
{% endblock %}
Add only show POST button if user is logged in
Add only show POST button if user is logged in
