Boilerplate for law required stuff.
This commit is contained in:
parent
407c8c31c4
commit
35e1f68eae
|
@ -86,3 +86,13 @@ a, a:active, a:focus {
|
||||||
height: 500px;
|
height: 500px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Footer */
|
||||||
|
footer {
|
||||||
|
position: fixed;
|
||||||
|
width: 700px;
|
||||||
|
text-align: center;
|
||||||
|
background-color: white;
|
||||||
|
bottom: 0px;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
|
|
@ -53,6 +53,7 @@
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<li><a href="{% url 'good-to-know' %}">Info</a></li>
|
<li><a href="{% url 'good-to-know' %}">Info</a></li>
|
||||||
|
<li><a href="{% url 'contact' %}">Contact</a></li>
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
<li><a href="{% url 'profiles:detail' %}">Profile</a></li>
|
<li><a href="{% url 'profiles:detail' %}">Profile</a></li>
|
||||||
<li><a href="{% url 'account_logout' %}">Logout</a></li>
|
<li><a href="{% url 'account_logout' %}">Logout</a></li>
|
||||||
|
@ -69,6 +70,11 @@
|
||||||
<div id="main" class="container container-fluid">
|
<div id="main" class="container container-fluid">
|
||||||
{% bootstrap_messages %}
|
{% bootstrap_messages %}
|
||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
||||||
|
<footer class="row">
|
||||||
|
<div class="col-sm-12 col-md-12 col-lg-12">
|
||||||
|
{% block footer %}{% endblock %}
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
{% bootstrap_javascript jquery=1 %}
|
{% bootstrap_javascript jquery=1 %}
|
||||||
</body>
|
</body>
|
||||||
|
|
20
bornhack/templates/contact.html
Normal file
20
bornhack/templates/contact.html
Normal 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 %}
|
|
@ -21,6 +21,11 @@ urlpatterns = [
|
||||||
TemplateView.as_view(template_name='good_to_know.html'),
|
TemplateView.as_view(template_name='good_to_know.html'),
|
||||||
name='good-to-know'
|
name='good-to-know'
|
||||||
),
|
),
|
||||||
|
url(
|
||||||
|
r'contact/',
|
||||||
|
TemplateView.as_view(template_name='contact.html'),
|
||||||
|
name='contact'
|
||||||
|
),
|
||||||
url(
|
url(
|
||||||
r'^login/$',
|
r'^login/$',
|
||||||
LoginView.as_view(),
|
LoginView.as_view(),
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{% extends 'base.html' %}
|
{% extends 'shop_base.html' %}
|
||||||
{% load bootstrap3 %}
|
{% load bootstrap3 %}
|
||||||
|
|
||||||
{% block content %}
|
{% block shop_content %}
|
||||||
|
|
||||||
<h2>Pay by Bank Transfer</h2>
|
<h2>Pay by Bank Transfer</h2>
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{% extends 'base.html' %}
|
{% extends 'shop_base.html' %}
|
||||||
|
|
||||||
{% load bootstrap3 %}
|
{% load bootstrap3 %}
|
||||||
|
|
||||||
{% block content %}
|
{% block shop_content %}
|
||||||
|
|
||||||
<form method="POST">
|
<form method="POST">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{% extends "base.html" %}
|
{% extends "shop_base.html" %}
|
||||||
{% load bootstrap3 %}
|
{% load bootstrap3 %}
|
||||||
{% block content %}
|
{% block shop_content %}
|
||||||
{% bootstrap_javascript jquery=1 %}
|
{% bootstrap_javascript jquery=1 %}
|
||||||
<script charset="UTF-8" src="https://ssl.ditonlinebetalingssystem.dk/integration/ewindow/paymentwindow.js" type="text/javascript"></script>
|
<script charset="UTF-8" src="https://ssl.ditonlinebetalingssystem.dk/integration/ewindow/paymentwindow.js" type="text/javascript"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{% extends 'base.html' %}
|
{% extends 'shop_base.html' %}
|
||||||
{% load bootstrap3 %}
|
{% load bootstrap3 %}
|
||||||
|
|
||||||
{% block content %}
|
{% block shop_content %}
|
||||||
<h2>Thank you for your payment!</h2>
|
<h2>Thank you for your payment!</h2>
|
||||||
<p class="lead">
|
<p class="lead">
|
||||||
{% if order.paid %}
|
{% if order.paid %}
|
||||||
|
|
16
shop/templates/law/base.html
Normal file
16
shop/templates/law/base.html
Normal 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 %}
|
9
shop/templates/law/general_terms_and_conditions.html
Normal file
9
shop/templates/law/general_terms_and_conditions.html
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{% extends 'law/base.html' %}
|
||||||
|
|
||||||
|
{# Forretningsbetingelser / General terms and conditions #}
|
||||||
|
|
||||||
|
{% block law-content %}
|
||||||
|
|
||||||
|
<h1>General Terms & Conditions</h1>
|
||||||
|
|
||||||
|
{% endblock %}
|
9
shop/templates/law/privacy_policy.html
Normal file
9
shop/templates/law/privacy_policy.html
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{% extends 'law/base.html' %}
|
||||||
|
|
||||||
|
{# Privatlivspolitik / Privacy policy #}
|
||||||
|
|
||||||
|
{% block law-content %}
|
||||||
|
|
||||||
|
<h1>Privacy Policy</h1>
|
||||||
|
|
||||||
|
{% endblock %}
|
9
shop/templates/law/return_policy.html
Normal file
9
shop/templates/law/return_policy.html
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{% extends 'law/base.html' %}
|
||||||
|
|
||||||
|
{# Returbetingelser / Return policy #}
|
||||||
|
|
||||||
|
{% block law-content %}
|
||||||
|
|
||||||
|
<h1>Return Policy</h1>
|
||||||
|
|
||||||
|
{% endblock %}
|
|
@ -1,8 +1,8 @@
|
||||||
{% extends 'base.html' %}
|
{% extends 'shop_base.html' %}
|
||||||
{% load bootstrap3 %}
|
{% load bootstrap3 %}
|
||||||
{% load shop_tags %}
|
{% load shop_tags %}
|
||||||
|
|
||||||
{% block content %}
|
{% block shop_content %}
|
||||||
|
|
||||||
<h1>Order #{{ order.id }}</h1>
|
<h1>Order #{{ order.id }}</h1>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{% extends 'base.html' %}
|
{% extends 'shop_base.html' %}
|
||||||
{% load bootstrap3 %}
|
{% load bootstrap3 %}
|
||||||
|
|
||||||
{% block content %}
|
{% block shop_content %}
|
||||||
<h3>Orders</h3>
|
<h3>Orders</h3>
|
||||||
<table class="table table-bordered table-hover">
|
<table class="table table-bordered table-hover">
|
||||||
<thead>
|
<thead>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{% extends 'base.html' %}
|
{% extends 'shop_base.html' %}
|
||||||
{% load bootstrap3 %}
|
{% load bootstrap3 %}
|
||||||
|
|
||||||
{% block content %}
|
{% block shop_content %}
|
||||||
|
|
||||||
<h2>{{ product.name }}</h2>
|
<h2>{{ product.name }}</h2>
|
||||||
|
|
||||||
|
|
14
shop/templates/shop_base.html
Normal file
14
shop/templates/shop_base.html
Normal 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 %}
|
|
@ -1,8 +1,8 @@
|
||||||
{% extends 'base.html' %}
|
{% extends 'shop_base.html' %}
|
||||||
{% load bootstrap3 %}
|
{% load bootstrap3 %}
|
||||||
{% load shop_tags %}
|
{% load shop_tags %}
|
||||||
|
|
||||||
{% block content %}
|
{% block shop_content %}
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
|
|
|
@ -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/blockchain/$', CoinifyRedirectView.as_view(), name='coinify_pay'),
|
||||||
url(r'orders/(?P<pk>[0-9]+)/pay/banktransfer/$', BankTransferView.as_view(), name='bank_transfer'),
|
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'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')
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue