Commit 247397c9 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

created three new templates to manage ratings

parent f5240acd
{% extends 'layouts/base.html' %}
{% block title %}
SRCT Bookshare • {{ listing.title }} | Rate
{% endblock %}
{% block content %}
<div class="page-header" id="banner">
<div class="row">
<div class="col-lg-12 text-center">
<h1><strong>SRCT</strong>&#8203;BOOKSHARE</h1>
<p class="lead text-center"><strong>Rate Your Experience with {{ listing.seller.user.get_full_name}}'s Listing <em>{{ listing.title }}</em></strong></p>
</div>
</div>
</div>
{% load crispy_forms_tags %}
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<div class="panel panel-default">
<div class="panel-body">
<div class="row">
<div class="col-md-10 col-md-offset-1">
{% crispy my_form %}
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
{% extends 'layouts/base.html' %}
{% block title %}
SRCT Bookshare &bull; {{ flag.listing.title }} &bull; Delete Review
{% endblock %}
{% block content %}
<hr />
<div class="row text-center">
<form action="" method="post">{% csrf_token %}
<h3>Are you sure you want to remove your review for {{ rating.listing.seller.user.get_full_name }}'s listing <em>{{ rating.listing.title }}</em>?</h3>
<input type="submit" value="Confirm" class="btn btn-danger btn-sm" />
<input type="submit" value="Never Mind" class="btn btn-default btn-sm" onclick="history.back()" />
</form>
</div>
<hr />
{% endblock %}
{% extends 'layouts/base.html' %}
{% block title %}
SRCT Bookshare &bull; {{ listing.title }} &bull; Edit Rating
{% endblock %}
{% block content %}
<div class="page-header" id="banner">
<div class="row">
<div class="col-lg-12 text-center">
<h1><strong>SRCT</strong>&#8203;BOOKSHARE</h1>
<p class="lead text-center"><strong>Edit Rating</strong></p>
</div>
</div>
</div>
<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 }}
<input type="submit" value="Update" class="btn btn-primary" />
<input type="cancel" value="Never Mind" class="btn btn-default" onclick="history.back()"/>
</form>
</div>
</div>
</div>
</div>
{% endblock %}
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