1 {% extends
"../base.html" %}
3 {% block title %}{{ _(
"Donate") }}{% end block %}
6 {% set amounts = (
10,
25,
50,
75,
100,
250) %}
9 <div class=
"container">
11 <div class=
"col col-lg-6">
12 <h1 class=
"display-2">{{ _(
"Donate") }}
</h1>
15 {{ _(
"Please support our project with your donation today") }}
22 <section class=
"inverse">
23 <div class=
"container">
24 <div class=
"row justify-content-center">
25 <div class=
"col-12 col-md-8">
26 <form action=
"" method=
"POST">
27 {% raw xsrf_form_html() %}
33 <input type=
"hidden" name=
"frequency" value=
"{{ frequency }}">
35 <div class=
"custom-control custom-radio custom-control-inline">
36 <input class=
"custom-control-input" type=
"radio" name=
"frequency-selector" id=
"frequency-one-time"
37 value=
"one-time" {% if frequency ==
"one-time" %}checked{% end %}
>
38 <label class=
"custom-control-label" for=
"frequency-one-time">{{ _(
"One Time") }}
</label>
41 <div class=
"custom-control custom-radio custom-control-inline">
42 <input class=
"custom-control-input" type=
"radio" name=
"frequency-selector" id=
"frequency-monthly"
43 value=
"monthly" {% if frequency ==
"monthly" %}checked{% end %}
>
44 <label class=
"custom-control-label" for=
"frequency-monthly">{{ _(
"Monthly") }}
</label>
49 <div class=
"mt-5 mb-3 p-4 bg-light rounded">
50 <h6>{{ _(
"Choose an amount") }}
</h6>
52 <input type=
"hidden" name=
"currency" value=
"{{ currency }}">
54 <div class=
"btn-group-toggle flex-wrap text-center mb-3" data-toggle=
"buttons">
55 {% for a in amounts %}
56 <label class=
"btn btn-outline-primary btn-lg mb-2">
57 <input type=
"radio" name=
"amount-selector" value=
"{{ a }}" {% if amount == a %}checked{% end %}
58 autocomplete=
"off"> <span class=
"EUR">€
</span><span class=
"USD">$
</span>{{ a }}
63 <p class=
"text-center small">
64 <a data-toggle=
"collapse" href=
"#more" role=
"button">
65 {{ _(
"More Options") }}
69 <div class=
"collapse" id=
"more">
70 <div class=
"form-group row">
71 <label class=
"col-sm-5 col-form-label col-form-label-lg">
75 <div class=
"col-sm-7">
76 <div class=
"input-group input-group-lg">
77 <div class=
"input-group-prepend">
78 <span class=
"input-group-text EUR">€
</span>
79 <span class=
"input-group-text USD">$
</span>
82 <input type=
"number" class=
"form-control form-control-lg" name=
"amount" min=
"5" step=
"0.01"
83 {% if amount %}
value=
"{{ amount }}"{% end %}
>
88 <p class=
"small text-right">
89 <a class=
"toggleCurrency EUR" href=
"#">{{ _(
"Prefer donating in US Dollar?") }}
</a>
90 <a class=
"toggleCurrency USD" href=
"#">{{ _(
"Prefer donating in Euro?") }}
</a>
94 <div class=
"row my-5">
95 <div class=
"col d-flex flex-column">
96 <div class=
"form-row">
98 <div class=
"custom-control custom-radio custom-control-inline mb-3">
99 <input class=
"custom-control-input" type=
"radio" name=
"title" id=
"mr" value=
"Mr." checked
>
100 <label class=
"custom-control-label" for=
"mr">{{ _(
"Mr.") }}
</label>
102 <div class=
"custom-control custom-radio custom-control-inline mb-3">
103 <input class=
"custom-control-input" type=
"radio" name=
"title" id=
"mrs" value=
"Mrs.">
104 <label class=
"custom-control-label" for=
"mrs">{{ _(
"Mrs.") }}
</label>
109 <div class=
"form-row">
110 <div class=
"col-sm-6">
111 <div class=
"form-group">
112 <input type=
"text" class=
"form-control" name=
"first_name"
113 placeholder=
"{{ _("First Name
" )}}" required
>
117 <div class=
"col-sm-6">
118 <div class=
"form-group">
119 <input type=
"text" class=
"form-control" name=
"last_name"
120 placeholder=
"{{ _("Last Name
" )}}" required
>
125 <div class=
"form-group">
126 <input type=
"email" class=
"form-control" name=
"email"
127 placeholder=
"{{ _("Email Address
") }}" required
>
130 <div class=
"form-group">
131 <input type=
"text" class=
"form-control" name=
"company_name"
132 placeholder=
"{{ _("Company Name (optional)
") }}">
135 <div class=
"form-group">
136 <input type=
"text" class=
"form-control" name=
"street1"
137 placeholder=
"{{ _("Address Line
1") }}" required
>
140 <div class=
"form-group">
141 <input type=
"text" class=
"form-control" name=
"street2"
142 placeholder=
"{{ _("Address Line
2") }}">
145 <div class=
"form-row">
146 <div class=
"col-sm-6">
147 <div class=
"form-group">
148 <input type=
"text" class=
"form-control" name=
"city"
149 placeholder=
"{{ _("City
") }}" required
>
153 <div class=
"col-sm-6">
154 <div class=
"form-group">
155 <input type=
"text" class=
"form-control" name=
"post_code"
156 placeholder=
"{{ _("Post Code
") }}" required
>
161 <div class=
"form-row">
162 <div class=
"col-sm-6">
163 <div class=
"form-group">
164 <select class=
"form-control" name=
"country_code" required
>
165 <option value=
"">- {{ _(
"Country") }} -
</option>
167 {% for c in countries %}
168 <option value=
"{{ c.alpha2 }}" {% if country == c.alpha2 %}selected{% end %}
>{{ c.name }}
</option>
174 <div class=
"col-sm-6">
175 <div class=
"form-group">
176 <input type=
"text" class=
"form-control" name=
"state"
177 placeholder=
"{{ _("State (optional)
") }}">
182 <input type=
"submit" class=
"btn btn-primary btn-lg"
183 id=
"donate" value=
"{{ _("Donate Now
") }}">
188 <div class=
"col d-flex justify-content-around text-muted">
189 <span class=
"pf pf-2x pf-american-express"></span>
190 <span class=
"pf pf-2x pf-mastercard-alt"></span>
191 <span class=
"pf pf-2x pf-visa"></span>
192 <span class=
"pf pf-2x pf-sepa"></span>
196 <div class=
"modal fade" tabindex=
"-1" role=
"dialog" id=
"modal-monthly-suggestions" aria-hidden=
"true">
197 <div class=
"modal-dialog modal-dialog-centered" role=
"document">
198 <div class=
"modal-content">
199 <div class=
"modal-header">
200 <h5 class=
"modal-title">{{ _(
"Would you like to support us monthly?") }}
</h5>
202 <button type=
"button" class=
"close" data-dismiss=
"modal" aria-label=
"{{ _("Close
") }}">
203 <span aria-hidden=
"true">×</span>
207 <div class=
"modal-body">
209 {{ _(
"Long-term donations are an even better investment into our project, create lasting change for everyone who is working on the project and make IPFire even better!") }}
212 <div class=
"row mb-4">
213 {% for factor, default in ((
3, False), (
2, True), (
1, False)) %}
214 <div class=
"col d-flex align-items-center">
215 <button type=
"submit"
216 class=
"btn btn-primary btn-block {% if default %}btn-lg{% else %}btn-sm{% end %} monthly-amount-suggestion"
217 data-factor=
"{{ factor }}" data-amount=
"">
218 <span class=
"EUR">€
</span><span class=
"USD">$
</span><span class=
"suggested-amount"></span>
220 <small>/ {{ _(
"month") }}
</small>
226 <button type=
"submit" class=
"btn btn-secondary btn-block">
227 Donate
<span class=
"EUR">€
</span><span class=
"USD">$
</span><span class=
"amount"></span> once
235 <p class=
"small text-muted mb-0">
236 The organization you will be donating to is Lightning Wire Labs GmbH who is
237 kindly handling donations for the IPFire project.
238 After clicking
"Donate Now", you will be redirected to Lightning Wire Labs
239 where you will be able to complete the transaction.
248 <div class=
"container">
249 <div class=
"row justify-content-center">
250 <div class=
"col-12 col-md-8">
251 <h5>Why should I donate?
</h5>
254 At IPFire, we are working hard to provide you with a free firewall distribution
255 that is like no other. We release updates regularly and enhance functionality
256 to make IPFire more secure, faster and easier to use.
260 To achieve our high standards that we have set for ourselves, we need your help.
262 Only with your donation, we can get the right tools, people and utilities that
263 we need to make our work most efficient and reach our maximum potential.
265 Only with your donation, we can achieve our vision to make the Internet a safer
266 place that is fair for everyone and giving equal opportunities.
269 <h5>How much should I give?
</h5>
272 We are grateful for every single donation, but of course, we appreciate
273 if you help us as much as you can.
277 We rely on steady contributions from companies to keep the project healthy
278 and encourage them to set up a monthly donation.
282 <h5>Frequently Asked Questions
</h5>
285 <a data-toggle=
"collapse" href=
"#faq-bank-transfer">
286 Do you accept bank transfer via SEPA?
290 <div class=
"collapse" id=
"faq-bank-transfer">
292 We do accept direct transfers through SEPA. These are our bank details:
296 <dt>Bank Account Owner
</dt>
297 <dd>IPFire Project
</dd>
300 <dd>DE76
3605 0105 1010 8206 84</dd>
308 <a data-toggle=
"collapse" href=
"#faq-address">
309 Why do you need my address in order to process a donation?
313 <div class=
"collapse" id=
"faq-address">
315 We understand that your privacy is very important.
319 We ask for a minimum amount of information required to process
320 credit card donations, including billing addresses.
321 This allows our payment processor to verify your identity,
322 process your payment, and prevent fraudulent charges to your credit card.
326 We keep your information private - if you have questions, please refer to
327 Lightning Wire Labs'
<a href=
"https://www.lightningwirelabs.com/legal">Privacy Policy
</a>.
331 If you would rather not fill in your information on our online donation form,
332 you can send your donation via SEPA bank transfer.
337 <a data-toggle=
"collapse" href=
"#faq-tax-deduction">
338 Is my donation tax deductible?
342 <div class=
"collapse" id=
"faq-tax-deduction">
344 IPFire is not registered as a charitable organization and therefore donations
345 are not tax deductible in Germany or the European Union.
349 For donors outside of the European Union, please consult your tax advisor
350 about whether your donation is tax deductible.
355 <a data-toggle=
"collapse" href=
"#faq-cc">
356 What will be charged to my credit card?
360 <div class=
"collapse" id=
"faq-cc">
362 We are based in Germany. Donations by credit card from other countries
363 my be subject to an international payment fee charged by your credit card issuer.
364 This is usually a small fee around
1%, but please check with your bank
369 If you consider this charge too high, please consider using SEPA direct
370 Debit or Bank Transfer if you can.
371 Even with this charge, it is a lot cheaper than paying the higher processing
372 fees of other payment services like PayPal which keep a lot more of the
373 donation to themselves.
378 <a data-toggle=
"collapse" href=
"#faq-cancel">
379 How do I cancel or change my recurring donation?
383 <div class=
"collapse" id=
"faq-cancel">
385 Your credit card statements or bank statements will contain a link
386 that you can follow to cancel your donation at any time.
391 <a data-toggle=
"collapse" href=
"#faq-email">
392 Who can I email directly with questions about donating?
396 <div class=
"collapse" id=
"faq-email">
398 If you have a question about donating to the IPFire Project,
399 please contact us at
<a href=
"mailto:donate@ipfire.org">donate@ipfire.org
</a>.
409 {% block javascript %}
410 <script type=
"text/javascript">
411 $(document).ready(function() {
412 var amount = $(
"input[name='amount']");
413 var currency = $(
"input[name='currency']");
414 var frequency = $(
"input[name='frequency']");
415 var submit = $(
"#donate");
416 var modal = $(
"#modal-monthly-suggestions");
418 // Adjust form to default currency
419 if (currency.val() ==
"EUR") {
421 } else if (currency.val() ==
"USD") {
425 $(
".toggleCurrency").click(function(event) {
426 event.preventDefault();
428 if (currency.val() ==
"EUR") {
433 } else if (currency.val() ==
"USD") {
441 // Copy amount when clicking on a radio buttons
442 $(
"input[name='amount-selector']").on(
"change", function() {
443 var value = $(this).val();
450 // Copy frequency when clicking on a radio buttons
451 $(
"input[name='frequency-selector']").on(
"change", function() {
452 var value = $(this).val();
454 frequency.val(value);
458 amount.on(
"change keyup mouseup", function() {
459 var value = $(this).val();
461 // Enable/disable submit button
462 submit.prop(
"disabled", !value);
465 // Check matching elements
466 $(
"input[name='amount-selector']").each(function (i, selector) {
468 var b = s.parent(
".btn");
470 if (s.val() === value) {
471 b.addClass(
"active");
473 b.removeClass(
"active");
477 // Update all amounts
478 $(
".amount").html(value);
480 // Update suggestions
481 $(
".monthly-amount-suggestion").each(function (i, element) {
482 var factor = $(element).data(
"factor");
486 var suggested_amount = Math.floor(value / factor);
489 $(element).data(
"amount", suggested_amount);
491 // Update text on button
492 $(element).find(
".suggested-amount").html(suggested_amount);
497 submit.click(function (event) {
498 if (frequency.val() ==
"one-time" && amount.val()
> 10) {
499 event.preventDefault();
505 $(
".monthly-amount-suggestion").click(function (event) {
506 // Set frequency to monthly
507 $(
"input[name='frequency-selector']").prop(
"checked", false);
508 $(
"input[name='frequency-selector'][value='monthly']").prop(
"checked", true);
509 frequency.val(
"monthly");
512 var value = $(this).data(
"amount");
520 // Update form with initial amount