Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
bookshare
Commits
247397c9
Commit
247397c9
authored
Apr 18, 2015
by
Daniel W Bond
Browse files
created three new templates to manage ratings
parent
f5240acd
Changes
3
Hide whitespace changes
Inline
Side-by-side
bookshare/trades/templates/create_rating.html
0 → 100644
View file @
247397c9
{% 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>
​
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 %}
bookshare/trades/templates/delete_rating.html
0 → 100644
View file @
247397c9
{% extends 'layouts/base.html' %}
{% block title %}
SRCT Bookshare
•
{{ flag.listing.title }}
•
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 %}
bookshare/trades/templates/rating_edit.html
0 → 100644
View file @
247397c9
{% extends 'layouts/base.html' %}
{% block title %}
SRCT Bookshare
•
{{ listing.title }}
•
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>
​
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 %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment