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
2b4f083b
Commit
2b4f083b
authored
Apr 19, 2015
by
Daniel W Bond
Browse files
improved tables for profile page
parent
efad2a24
Changes
1
Hide whitespace changes
Inline
Side-by-side
bookshare/core/templates/profile.html
View file @
2b4f083b
...
...
@@ -54,7 +54,7 @@ SRCT Bookshare • {{ student.user.first_name }} {{ student.user.last_name }}
{% if listings %}
<div
class=
"table-responsive"
>
<table
class=
"table table-bordered table-hover text-center"
>
<table
class=
"table table-bordered table-hover
table-condensed
text-center"
>
<thead>
<td
class=
"col-md-2"
><h4><strong>
ISBN
</strong></h4></td>
<td
class=
"col-md-8"
><h4><strong>
Title
</strong></h4></td>
...
...
@@ -127,27 +127,39 @@ SRCT Bookshare • {{ student.user.first_name }} {{ student.user.last_name }}
<div
class=
"col-md-12"
>
{% if bids %}
<div
class=
"table-responsive"
>
<table
class=
"table table-bordered table-hover text-center"
>
<table
class=
"table table-bordered table-hover
table-condensed
text-center"
>
<thead>
<td
class=
"col-md-
2
"
><h4><strong>
ISBN
</strong></h4></td>
<td
class=
"col-md-
8
"
><h4><strong>
Titl
e
</strong></h4></td>
<td
class=
"col-md-
6
"
><h4><strong>
Title
</strong></h4></td>
<td
class=
"col-md-
2
"
><h4><strong>
Cours
e
</strong></h4></td>
<td
class=
"col-md-2"
><h4><strong>
Price
</strong></h4></td>
<td
class=
"col-md-2"
><h4><strong>
Listing Status
</strong></h4></td>
</thead>
<tbody>
{% for bid in bids %}
{% if
bid ==
bid.listing.winning_bid %}
{% if bid.listing.winning_bid %}
<tr
class=
"success"
>
{% else %}
<tr>
{% endif %}
<td
class=
"text-center"
><h5>
{{ bid.listing.isbn }}
</h5></td>
<td
class=
"text-center"
><h5><a
href=
"{{ bid.listing.get_absolute_url }}"
>
{{ bid.listing.isbn|isbn_name|title }}
<a/></h5></td>
<td
class=
"text-center"
><h5>
{{ bid.listing.course_abbr }}
</h5></td>
<td
class=
"text-center"
><h5>
${{ bid.price }}
{% if bid == bid.listing.winning_bid %}
<small><span
class=
"label label-success"
><strong>
Winning Bid
</strong></span></small>
{% else %}
{% endif %}
${{ bid.price }}
</h5></td>
<td
class=
"text-center"
><h5>
{% if bid.listing.sold %}
<span
class=
"label label-primary"
><strong>
Sold
</strong></span>
{% elif bid.listing.cancelled %}
<span
class=
"label label-default"
><strong>
Cancelled
</strong></span>
{% elif not listing.active %}
<span
class=
"label label-warning"
><strong>
Inactive
</strong></span>
{% else %}
<span
class=
"label label-info"
><strong>
Active
</strong></span>
{% endif %}
</h5></td>
{% endfor %}
</tbody>
...
...
@@ -175,7 +187,7 @@ SRCT Bookshare • {{ student.user.first_name }} {{ student.user.last_name }}
<div
class=
"col-md-12"
>
{% if lookouts %}
<div
class=
"table-responsive"
>
<table
class=
"table table-bordered table-hover text-center"
>
<table
class=
"table table-bordered table-hover
table-condensed
text-center"
>
<thead>
<td
class=
"col-md-2"
><h4><strong>
ISBN
</strong></h4></td>
<td
class=
"col-md-8"
><h4><strong>
Title
</strong></h4></td>
...
...
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