From db5029ff6acb7cb719c8d744a7a635dc2ae1fe70 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 24 Jan 2016 16:22:13 +0000 Subject: [PATCH] Added contact form --- static/src/js/events.js | 4 +++- templates/about/index.html | 30 +++++++++++++++++++++++++++++- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/static/src/js/events.js b/static/src/js/events.js index 9959e1e..f16e9d9 100644 --- a/static/src/js/events.js +++ b/static/src/js/events.js @@ -2,7 +2,6 @@ var is_navbar_attached = false; $(window).load(function() { - $.material.init(); $(window).trigger('scroll'); }); @@ -45,6 +44,9 @@ function position_navbar() { $(function() { // https://css-tricks.com/snippets/jquery/smooth-scrolling/ $('a[href*=#]:not([href=#])').click(function() { + if ($(this).data('toggle') === 'collapse') { + return true; + } if (location.pathname.replace(/^\//, '') === this.pathname.replace(/^\//, '') && location.hostname === this.hostname) { var target = $(this.hash); diff --git a/templates/about/index.html b/templates/about/index.html index 325d9ca..2fefe29 100644 --- a/templates/about/index.html +++ b/templates/about/index.html @@ -1,5 +1,5 @@ {% extends 'content_base.html' %} - +{% load bootstrap %} {% block pageTitle %}About all the things{% endblock %} {% block content %} @@ -45,4 +45,32 @@ +
+
+
+
+
+ +
+
+
+ {% csrf_token %} + {{ form|bootstrap }} +
+ +
+
+
+
+
+
+
+
+
{% endblock %}