From 842cfcc73947d4d8807646200a0fcbf9104ddca7 Mon Sep 17 00:00:00 2001 From: jmluc123 Date: Thu, 17 Jul 2014 10:04:29 -0400 Subject: [PATCH] fixed alignment issues on certain pages --- distro/templates/distribution/hours_create.html | 8 ++++++++ static/js/footer-fix.js | 7 +++++++ userprofile/templates/userprofile/userLists.html | 9 ++++----- 3 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 static/js/footer-fix.js diff --git a/distro/templates/distribution/hours_create.html b/distro/templates/distribution/hours_create.html index 563d282..772d0ce 100644 --- a/distro/templates/distribution/hours_create.html +++ b/distro/templates/distribution/hours_create.html @@ -1,4 +1,6 @@ {% extends 'base.html' %} +{% load staticfiles %} +{% load url from future %} {% load crispy_forms_tags %} {% block title %}Volunteers {% endblock title %} @@ -55,6 +57,8 @@

All their work, easy to see

+ {% endblock body %} {% block style %} @@ -116,4 +120,8 @@

All their work, easy to see

height: 140px !important; } + {% endblock style %} \ No newline at end of file diff --git a/static/js/footer-fix.js b/static/js/footer-fix.js new file mode 100644 index 0000000..0417983 --- /dev/null +++ b/static/js/footer-fix.js @@ -0,0 +1,7 @@ +$(document).ready(function(){ + position = $("#wrapper").offset(); + top = position.top + bottom = position.top + $("#wrapper").height() + bottom = bottom - 100 + $("#footer-overall").css({"top": bottom }); +}); \ No newline at end of file diff --git a/userprofile/templates/userprofile/userLists.html b/userprofile/templates/userprofile/userLists.html index 938d303..09d1799 100644 --- a/userprofile/templates/userprofile/userLists.html +++ b/userprofile/templates/userprofile/userLists.html @@ -1,5 +1,7 @@ {% extends 'base.html' %} {% load url from future %} +{% load staticfiles %} +{% load url from future %} {% block title %} Volunteer Index {% endblock title %} @@ -53,11 +55,8 @@

Our Volunteer Rolls

No users :( {% endif %} - + {% include "about_box.html" %} {% include "partners.html" %} {% endblock body %}