{% extends 'reg/base.html' %}

{% block content%}
<div class="mdl-grid mdl-cell mdl-cell--12-col mdl-cell--4-col-tablet mdl-card mdl-shadow--4dp">
    <div class="mdl-cell mdl-cell--8-col">
        <h2 class="mdl-card__title-text">
            Login
        </h2>
        <div class="mdl-card__supporting-text padding-top">
            <form action="" method="post" class="">
                {% csrf_token %}
                Username: {{ form.username }}<br /><br />
		    	Password: {{ form.password }}<br /><br />
                <input type='submit' value='Submit' />
                <a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect" href="#" onclick="window.history.back(); return false;" title="Cancel">Cancel</a>
            </form>
        </div>
        <div class="mdl-card__supporting-text no-left-padding">
            <hr />
            <span>
                Or <a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect" href="{% url 'reg:register' %}">Signup</a>
            </span>
        </div>
    </div>
</div>

{%endblock%}
{% extends 'reg/base.html' %}

{% block content%}
<div class="mdl-grid mdl-cell mdl-cell--12-col mdl-cell--4-col-tablet mdl-card mdl-shadow--4dp">
    <div class="mdl-cell mdl-cell--8-col">
        <h2 class="mdl-card__title-text">
            Login
        </h2>
        <div class="mdl-card__supporting-text padding-top">
            <form action="" method="post" class="">
                {% csrf_token %}
                <div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
                    Username: {{ form.username }}<br /><br />
                </div>
                <div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
    		    	Password: {{ form.password }}<br /><br />
                </div>
                <p>
                    <button class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent" type="submit">Submit
                    </button>
                <a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect" href="#" onclick="window.history.back(); return false;" title="Cancel">Cancel</a>
                </p>
            </form>
        </div>
        <div class="mdl-card__supporting-text no-left-padding">
            <hr />
            <span>
                Or <a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect" href="{% url 'reg:register' %}">Signup</a>
            </span>
        </div>
    </div>
</div>

{%endblock%}
Change move/update/new to dynamic form
Change move/update/new to dynamic form
