Added contact form
This commit is contained in:
parent
6424ac5d07
commit
db5029ff6a
2 changed files with 32 additions and 2 deletions
|
@ -2,7 +2,6 @@
|
||||||
var is_navbar_attached = false;
|
var is_navbar_attached = false;
|
||||||
|
|
||||||
$(window).load(function() {
|
$(window).load(function() {
|
||||||
$.material.init();
|
|
||||||
$(window).trigger('scroll');
|
$(window).trigger('scroll');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -45,6 +44,9 @@ function position_navbar() {
|
||||||
|
|
||||||
$(function() { // https://css-tricks.com/snippets/jquery/smooth-scrolling/
|
$(function() { // https://css-tricks.com/snippets/jquery/smooth-scrolling/
|
||||||
$('a[href*=#]:not([href=#])').click(function() {
|
$('a[href*=#]:not([href=#])').click(function() {
|
||||||
|
if ($(this).data('toggle') === 'collapse') {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if (location.pathname.replace(/^\//, '') === this.pathname.replace(/^\//, '')
|
if (location.pathname.replace(/^\//, '') === this.pathname.replace(/^\//, '')
|
||||||
&& location.hostname === this.hostname) {
|
&& location.hostname === this.hostname) {
|
||||||
var target = $(this.hash);
|
var target = $(this.hash);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{% extends 'content_base.html' %}
|
{% extends 'content_base.html' %}
|
||||||
|
{% load bootstrap %}
|
||||||
{% block pageTitle %}About all the things{% endblock %}
|
{% block pageTitle %}About all the things{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
@ -45,4 +45,32 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-10 col-sm-push-1">
|
||||||
|
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
|
||||||
|
<div class="panel panel-default">
|
||||||
|
<div class="panel-heading" role="tab" id="heading1">
|
||||||
|
<h4 class="panel-title" style="font-size: 21px;">
|
||||||
|
<a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapse1" aria-expanded="false" aria-controls="collapse1">
|
||||||
|
Contact Me<i class="icon ion-ios-arrow-down"></i>
|
||||||
|
</a>
|
||||||
|
</h4>
|
||||||
|
</div>
|
||||||
|
<div id="collapse1" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading1">
|
||||||
|
<div class="panel-body">
|
||||||
|
<form role="form">
|
||||||
|
{% csrf_token %}
|
||||||
|
{{ form|bootstrap }}
|
||||||
|
<div class="form-group">
|
||||||
|
<button type="submit" class="btn btn-primary">Send</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Reference in a new issue