Boilerplate for law required stuff.

This commit is contained in:
Víðir Valberg Guðmundsson 2016-05-19 11:19:51 +02:00 committed by Víðir Valberg Guðmundsson
parent 407c8c31c4
commit 35e1f68eae
18 changed files with 117 additions and 16 deletions

View File

@ -86,3 +86,13 @@ a, a:active, a:focus {
height: 500px;
}
/* Footer */
footer {
position: fixed;
width: 700px;
text-align: center;
background-color: white;
bottom: 0px;
padding: 5px;
}

View File

@ -53,6 +53,7 @@
{% endif %}
<li><a href="{% url 'good-to-know' %}">Info</a></li>
<li><a href="{% url 'contact' %}">Contact</a></li>
{% if user.is_authenticated %}
<li><a href="{% url 'profiles:detail' %}">Profile</a></li>
<li><a href="{% url 'account_logout' %}">Logout</a></li>
@ -69,6 +70,11 @@
<div id="main" class="container container-fluid">
{% bootstrap_messages %}
{% block content %}{% endblock %}
<footer class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
{% block footer %}{% endblock %}
</div>
</footer>
</div>
{% bootstrap_javascript jquery=1 %}
</body>

View File

@ -0,0 +1,20 @@
{% extends 'base.html' %}
{% block content %}
<p>
The legal entity behind BornHack is:<br />
BornHack IVS c/o Thomas Steen Rasmussen<br />
Offenbachsvej 34, 2. tv.<br />
2450 Copenhagen SV<br />
Denmark<br />
CVR# 37666521<br />
</p>
<p>
Email us at info@bornhack.dk<br />
Tweet us at @bornhax<br />
Hit us up on IRC at #bornhack @ irc.baconsvin.org (TLS port 6697)<br />
</p>
{% endblock %}

View File

@ -21,6 +21,11 @@ urlpatterns = [
TemplateView.as_view(template_name='good_to_know.html'),
name='good-to-know'
),
url(
r'contact/',
TemplateView.as_view(template_name='contact.html'),
name='contact'
),
url(
r'^login/$',
LoginView.as_view(),

View File

@ -1,7 +1,7 @@
{% extends 'base.html' %}
{% extends 'shop_base.html' %}
{% load bootstrap3 %}
{% block content %}
{% block shop_content %}
<h2>Pay by Bank Transfer</h2>

View File

@ -1,8 +1,8 @@
{% extends 'base.html' %}
{% extends 'shop_base.html' %}
{% load bootstrap3 %}
{% block content %}
{% block shop_content %}
<form method="POST">
{% csrf_token %}

View File

@ -1,6 +1,6 @@
{% extends "base.html" %}
{% extends "shop_base.html" %}
{% load bootstrap3 %}
{% block content %}
{% block shop_content %}
{% bootstrap_javascript jquery=1 %}
<script charset="UTF-8" src="https://ssl.ditonlinebetalingssystem.dk/integration/ewindow/paymentwindow.js" type="text/javascript"></script>
<script type="text/javascript">

View File

@ -1,7 +1,7 @@
{% extends 'base.html' %}
{% extends 'shop_base.html' %}
{% load bootstrap3 %}
{% block content %}
{% block shop_content %}
<h2>Thank you for your payment!</h2>
<p class="lead">
{% if order.paid %}

View File

@ -0,0 +1,16 @@
{% extends 'shop_base.html' %}
{% block shop_content %}
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
<a href="{% url 'shop:privacy-policy' %}">Privacy Policy</a><br />
<a href="{% url 'shop:return-policy' %}">Return Policy</a><br />
<a href="{% url 'shop:general-terms' %}">General Terms & Conditions</a><br />
</div>
</div>
{% block law-content %}
{% endblock %}
{% endblock %}

View File

@ -0,0 +1,9 @@
{% extends 'law/base.html' %}
{# Forretningsbetingelser / General terms and conditions #}
{% block law-content %}
<h1>General Terms & Conditions</h1>
{% endblock %}

View File

@ -0,0 +1,9 @@
{% extends 'law/base.html' %}
{# Privatlivspolitik / Privacy policy #}
{% block law-content %}
<h1>Privacy Policy</h1>
{% endblock %}

View File

@ -0,0 +1,9 @@
{% extends 'law/base.html' %}
{# Returbetingelser / Return policy #}
{% block law-content %}
<h1>Return Policy</h1>
{% endblock %}

View File

@ -1,8 +1,8 @@
{% extends 'base.html' %}
{% extends 'shop_base.html' %}
{% load bootstrap3 %}
{% load shop_tags %}
{% block content %}
{% block shop_content %}
<h1>Order #{{ order.id }}</h1>

View File

@ -1,7 +1,7 @@
{% extends 'base.html' %}
{% extends 'shop_base.html' %}
{% load bootstrap3 %}
{% block content %}
{% block shop_content %}
<h3>Orders</h3>
<table class="table table-bordered table-hover">
<thead>

View File

@ -1,7 +1,7 @@
{% extends 'base.html' %}
{% extends 'shop_base.html' %}
{% load bootstrap3 %}
{% block content %}
{% block shop_content %}
<h2>{{ product.name }}</h2>

View File

@ -0,0 +1,14 @@
{% extends 'base.html' %}
{% block content %}
{% block shop_content %}
{% endblock %}
{% endblock %}
{% block footer %}
<a href="{% url 'shop:privacy-policy' %}">Privacy Policy</a> |
<a href="{% url 'shop:return-policy' %}">Return Policy</a> |
<a href="{% url 'shop:general-terms' %}">General Terms & Conditions</a>
{% endblock %}

View File

@ -1,8 +1,8 @@
{% extends 'base.html' %}
{% extends 'shop_base.html' %}
{% load bootstrap3 %}
{% load shop_tags %}
{% block content %}
{% block shop_content %}
<div class="row">
<div class="col-md-12">

View File

@ -11,4 +11,7 @@ urlpatterns = [
url(r'orders/(?P<pk>[0-9]+)/pay/blockchain/$', CoinifyRedirectView.as_view(), name='coinify_pay'),
url(r'orders/(?P<pk>[0-9]+)/pay/banktransfer/$', BankTransferView.as_view(), name='bank_transfer'),
url(r'epay_callback/', EpayCallbackView.as_view(), name='epay_callback'),
url(r'privacy-policy/', TemplateView.as_view(template_name='law/privacy_policy.html'), name='privacy-policy'),
url(r'return-policy/', TemplateView.as_view(template_name='law/return_policy.html'), name='return-policy'),
url(r'general-terms-and-conditions/', TemplateView.as_view(template_name='law/general_terms_and_conditions.html'), name='general-terms')
]