-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1632 from laws-africa/lawlibrary-donations
Add donation page on lawlibrary
- Loading branch information
Showing
13 changed files
with
96 additions
and
25 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{% extends 'liiweb/donate.html' %} | ||
{% load static i18n %} | ||
{% block intro %} | ||
<p class="mb-4"> | ||
{% blocktrans trimmed %} | ||
Donate to LawLibrary and support our work to providing free and anonymous access | ||
to case law, legislation and secondary legal materials from South Africa. | ||
{% endblocktrans %} | ||
</p> | ||
<h3 class="mb-4">Donate with Snapscan</h3> | ||
<p class="mb-4"> | ||
{% blocktrans trimmed %} | ||
Scan the Snapscan QR code below to donate to LawLibrary. | ||
{% endblocktrans %} | ||
</p> | ||
<p> | ||
<img src="{% static 'images/snapscan.png' %}" | ||
alt="Snapscan QR code" | ||
width="270" | ||
height="315"/> | ||
</p> | ||
<h3 class="mb-4">Donate directly</h3> | ||
<p class="mb-4"> | ||
{% blocktrans trimmed %} | ||
You can also donate directly to LawLibrary by making a deposit into our bank account. | ||
{% endblocktrans %} | ||
</p> | ||
<p class="mb-4"> | ||
<strong>Bank:</strong> FNB South Africa | ||
<br/> | ||
<strong>Account number:</strong> 6279 279 6579 | ||
<br/> | ||
<strong>Account name:</strong>Laws.Africa | ||
<br/> | ||
<strong>Swift code:</strong> FIRNZAJJ | ||
<br/> | ||
</p> | ||
<h3 class="mb-4">Section 18A Tax Certificate</h3> | ||
<p class="mb-4"> | ||
{% blocktrans trimmed %} | ||
To receive your Section 18A Tax Certificate for your donation, please email us at <a href="mailto:[email protected]">[email protected]</a> | ||
{% endblocktrans %} | ||
</p> | ||
{% endblock %} | ||
{% block about %}{% endblock %} | ||
{% block payment-details %}{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
@import "stylesheets/peachjam"; | ||
@import "components/index"; | ||
|
||
.donate { | ||
background-color: transparentize($primary, 0.80); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{% load i18n %} | ||
<section class="py-3 donate"> | ||
<div class="container"> | ||
<div class="row justify-content-center align-items-center"> | ||
<div class="col-md-6"> | ||
<h3 class="font-weight-bold"> | ||
{% blocktrans %} | ||
Donate to {{ APP_NAME }} | ||
{% endblocktrans %} | ||
</h3> | ||
<p class="lead"> | ||
{% blocktrans %} | ||
{{ APP_NAME }} is an independent, self-funded organisation and needs your support. | ||
{% endblocktrans %} | ||
</p> | ||
</div> | ||
<div class="col-md-auto align-content-center"> | ||
<a class="btn btn-danger btn-lg btn-block" href="{% url 'donate' %}">{% trans 'Donate' %}</a> | ||
</div> | ||
</div> | ||
</div> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{% extends "peachjam/layouts/main.html" %} | ||
{% load i18n %} | ||
{% block title %} | ||
{% trans 'Donate' %} | ||
{% endblock %} | ||
{% block page-content %} | ||
<section class="container my-4"> | ||
<h1 class="mb-4">{% blocktrans %}Donate to {{ APP_NAME }}{% endblocktrans %}</h1> | ||
{% block intro %}{% endblock %} | ||
{% block about %}{% endblock %} | ||
{% block payment-details %}{% endblock %} | ||
</section> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from django.views.generic import TemplateView | ||
|
||
|
||
class DonatePageView(TemplateView): | ||
template_name = "liiweb/donate.html" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,3 @@ footer { | |
.btn.btn-primary { | ||
color: #fff; | ||
} | ||
|
||
.donate { | ||
background-color: transparentize($primary, 0.80); | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
from django.urls import include, path | ||
|
||
from seylii.views import DonatePageView | ||
|
||
urlpatterns = [ | ||
path("donate/", DonatePageView.as_view(), name="donate"), | ||
path("", include("liiweb.urls")), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +0,0 @@ | ||
from django.views.generic import TemplateView | ||
|
||
|
||
class DonatePageView(TemplateView): | ||
template_name = "seylii/donate.html" | ||