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

use crispy form tag for update rating form

parent c2857d1b
...@@ -6,14 +6,16 @@ SRCT Bookshare • {{ listing.title }} • Edit Rating ...@@ -6,14 +6,16 @@ SRCT Bookshare • {{ listing.title }} • Edit Rating
{% block content %} {% block content %}
{% load crispy_forms_tags %}
{% include 'layouts/bookshare_title.html' with subtitle="Edit Rating" %} {% include 'layouts/bookshare_title.html' with subtitle="Edit Rating" %}
<div class="row"> <div class="row">
<div class="col-md-8 col-md-offset-2"> <div class="col-md-8 col-md-offset-2">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-body">
<form action="" method="post">{% csrf_token %} <form action="" method="post">{% csrf_token %}
{{ form.as_p }} {{ form|crispy }}
<input type="submit" value="Update" class="btn btn-primary" /> <input type="submit" value="Update" class="btn btn-primary" />
<input type="cancel" value="Never Mind" class="btn btn-default" onclick="history.back()"/> <input type="cancel" value="Never Mind" class="btn btn-default" onclick="history.back()"/>
</form> </form>
......
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