Commit fc562e80 authored by Daniel W Bond's avatar Daniel W Bond

use crispy form tag for update student name form

parent 3b61a606
......@@ -9,6 +9,8 @@ SRCT Bookshare • Edit Name
{% include 'layouts/bookshare_title.html' with subtitle="Edit Your Name" %}
{% load crispy_forms_tags %}
<div class="row">
<div class="col-md-4 col-md-offset-2">
<img class="img-circle img-responsive" style="margin-left:auto;margin-right:auto;padding:10px"; src="{% gravatar_url request.user.email 150 %}">
......@@ -26,19 +28,22 @@ SRCT Bookshare &bull; Edit Name
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">
<form action="" method="post">{% csrf_token %}
{{ form.as_p }}
<div class="row">
<div class="col-md-3">
<input type="submit" value="Submit" class="btn btn-primary btn-block" />
</div>
<div class="col-md-3">
<input type="cancel" value="Never Mind" class="btn btn-default btn-block" onclick="history.back()"/>
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<form action="" method="post">{% csrf_token %}
{{ form|crispy }}
<div class="row">
<div class="col-md-3">
<input type="submit" value="Submit" class="btn btn-primary btn-block" />
</div>
<div class="col-md-3">
<input type="cancel" value="Never Mind" class="btn btn-default btn-block" onclick="history.back()"/>
</div>
</div>
</form>
</div>
</form>
</div>
</div>
</div>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment