From 8439057f1d7cf7875570efc4227209c369e67d4d Mon Sep 17 00:00:00 2001 From: Levi Date: Sun, 31 Jul 2016 18:58:43 -0500 Subject: [PATCH] Move donation and subscription out from the user menu to the navbar, Changed donations.html background and style, Added donation status to donations.html. Added button cancel donation to donation.html ,Added button reactivate donation to donation.html,Fixed some bugs on donation view. Changed donations.html table style. Added pagination to donations list view. Hiding donate now button if the user is logged in and already has a donation. Handled the case when an user has not donations yet in donations.html view. Fixed bug on donation signup --- nosystemd/static/nosystemd/css/nosystemd.css | 21 +++ nosystemd/templates/nosystemd/base.html | 14 +- .../templates/nosystemd/donation_detail.html | 138 ++++++++++-------- nosystemd/templates/nosystemd/donations.html | 53 +++++-- .../nosystemd/emails/donation_charge.html | 4 +- nosystemd/templates/nosystemd/landing.html | 6 +- nosystemd/templates/nosystemd/signup.html | 4 +- nosystemd/views.py | 27 +++- 8 files changed, 179 insertions(+), 88 deletions(-) create mode 100644 nosystemd/static/nosystemd/css/nosystemd.css diff --git a/nosystemd/static/nosystemd/css/nosystemd.css b/nosystemd/static/nosystemd/css/nosystemd.css new file mode 100644 index 00000000..abba1659 --- /dev/null +++ b/nosystemd/static/nosystemd/css/nosystemd.css @@ -0,0 +1,21 @@ +.donations-container { + + top:30% !important; +} + + +.donations-container .table-hover>tbody>tr:hover { + color:black; +} + +.donations-container .table>thead>tr>th { + text-alig:center; +} + +.donation-detail-container { + text-align:left !important; +} + +.white-font { + color:white; +} diff --git a/nosystemd/templates/nosystemd/base.html b/nosystemd/templates/nosystemd/base.html index 4bd841f4..f650b2d5 100644 --- a/nosystemd/templates/nosystemd/base.html +++ b/nosystemd/templates/nosystemd/base.html @@ -12,6 +12,8 @@ NOSYSTEMD + + @@ -26,6 +28,9 @@ + + +