{% extends "base-1.html" %}
-
+
{% block title %}{{ _("Donate") }}{% end block %}
-
+
{% block container %}
+ {% set amounts = (10, 25, 50, 75, 100, 250) %}
+
+ <h1 class="text-center mt-5 mb-5">{{ _("Donate") }}</h1>
+
<section class="donation">
<div class="container">
- <div class="row">
- <section class="features-content col-12 text-center">
- <h2 class="display-2">{{ _("Donate") }}</h2>
-
- <form action="" method="POST">
- {% raw xsrf_form_html() %}
-
- <div class="row justify-content-center mb-6">
- <div class="col-12 col-sm-11 col-xl-12">
- <div class="row">
- <div class="donation-card d-flex flex-column flex-md-row-reverse text-left col p-0">
- <div class="card p-4 p-sm-6 p-md-4 pt-6">
- <div class="row py-md-3 px-md-6">
- <div class="col-12 col-lg-6 d-flex flex-column mb-6 mb-lg-0">
- <h4 class="mb-5">Choose a currency</h4>
- <div class="row pt-4">
- <div class="col col-sm-4 col-md-5">
- <input class="form-check-input mr-4 radiobtn" type="radio" name="currency" id="EUR" value="EUR" checked>
- <label for="EUR" class="form-check-label radiobtn">€uro</label>
- </div>
- <div class="col col-sm-4 col-md-5">
- <input class="form-check-input mr-4 radiobtn" type="radio" name="currency" id="USD" value="USD">
- <label for="USD" class="form-check-label radiobtn">USD $</label>
- </div>
- </div>
- </div>
-
- <div class="col d-flex flex-column">
- <h4 class="mb-5">Frequency</h4>
- <div class="row pt-4">
- <div class="col col-sm-4 col-md-5 col-lg-6">
- <input class="form-check-input mr-4 radiobtn" type="radio" name="frequency" id="one-time-payment" value="single" checked>
- <label for="one-time-payment" class="form-check-label radiobtn">One time</label>
- </div>
- <div class="col col-sm-4 col-md-5">
- <input class="form-check-input mr-4 radiobtn" type="radio" name="frequency" id="monthly-payment" value="monthly">
- <label for="monthly-payment" class="form-check-label radiobtn">Monthly</label>
- </div>
- </div>
- </div>
- </div>
-
- <div class="row mt-6">
- <div class="inline-card bg-blue-grey-50 col-11 mx-auto">
- <div class="or"></div>
- <div class="row mb-4 mb-sm-6 mb-lg-0">
- <div class="col-12 col-lg-6 mb-6">
- <h4 class="mb-5">Choose an amount</h4>
- <div class="form-group d-flex flex-row flex-wrap" id="amount">
- <input class="amount-check" type="radio" name="amount" id="10" value="10" checked>
- <label for="10" class="form-check-label amount"><span id="amount_10">10</span><span class="currency">€</span></label>
-
- <input class="amount-check" type="radio" name="amount" id="25" value="25">
- <label for="25" class="form-check-label amount"><span id="amount_25">25</span><span class="currency">€</span></label>
-
- <input class="amount-check" type="radio" name="amount" id="50" value="50">
- <label for="50" class="form-check-label amount"><span id="amount_50">50</span><span class="currency">€</span></label>
-
- <input class="amount-check" type="radio" name="amount" id="75" value="50">
- <label for="50" class="form-check-label amount"><span id="amount_75">75</span><span class="currency">€</span></label>
-
- <input class="amount-check" type="radio" name="amount" id="100" value="100">
- <label for="100" class="form-check-label amount"><span id="amount_100">100</span><span class="currency">€</span></label>
-
- <input class="amount-check" type="radio" name="amount" id="250" value="250">
- <label for="250" class="form-check-label amount"><span id="amount_250">250</span><span class="currency">€</span></label>
- </div>
- </div>
- <div class="col">
- <div class="form-group">
- <h4 class="mb-5">Enter your own</h4>
- <input type="number" class="ownamount w-100" id="enterYourOwn" placeholder="Enter your own amount">
+ <div class="row mb-5">
+ <div class="col-12">
+ <div class="card">
+ <div class="card-body">
+ <div class="row">
+ <div class="col col-lg-4">
+ <h5>IP<strong>Fire</strong> is an Open Source software project.</h5>
+
+ <p>
+ IPFire is an Open Source software project.
+ </p>
+
+ <p>
+ Development and keeping the project healthy is carried out by a
+ group of volunteers who have built a very successful product,
+ which hundreds of thousands of people use every day.
+ </p>
+
+ <p>
+ Your donation helps us to make IPFire even better...
+ </p>
+ </div>
+
+ <div class="col col-lg-8">
+ <form action="" method="POST">
+ {% raw xsrf_form_html() %}
+
+ <div class="row justify-content-center">
+ <div class="col-12 col-sm-11 col-xl-12">
+ <div class="row">
+ <div class="d-flex flex-column flex-md-row-reverse text-left col p-0">
+ <div class="p-4 p-sm-6 p-md-4 pt-6">
+ <div class="row step1">
+ <div class="col-12 col-lg-6">
+ <h6>Choose a currency</h6>
+
+ <div class="form-check form-check-inline">
+ <input class="form-check-input" type="radio" name="currency" id="EUR" value="EUR" checked>
+ <label class="form-check-label" for="EUR">{{ _("Euro") }}</label>
+ </div>
+
+ <div class="form-check form-check-inline">
+ <input class="form-check-input" type="radio" name="currency" id="USD" value="USD">
+ <label class="form-check-label" for="USD">{{ _("US Dollar") }}</label>
+ </div>
+ </div>
+
+ <div class="col-12 col-lg-6">
+ <h6>Frequency</h6>
+
+ <div class="form-check form-check-inline">
+ <input class="form-check-input" type="radio" name="frequency" id="frequency-single" value="single" checked>
+ <label class="form-check-label" for="frequency-single">{{ _("One Time") }}</label>
+ </div>
+
+ <div class="form-check form-check-inline">
+ <input class="form-check-input" type="radio" name="frequency" id="frequency-monthly" value="monthly">
+ <label class="form-check-label" for="frequency-monthly">{{ _("Monthly") }}</label>
+ </div>
+ </div>
</div>
- </div>
- </div>
- <div class="row mt-5 mt-sm-6 mb-5 mb-lg-0 mt-lg-0">
- <div class="col d-flex flex-row">
- <h4 class="mr-3">Choose payment</h4>
- <svg class="icon i_secure ml-4"><use xlink:href="#secure"/></svg>
- <p class="text-uppercase blue_grey_300"><strong>Secure</strong></p>
- </div>
- </div>
-
- <div class="row d-flex flex-column flex-lg-row pl-4 pr-4 md-4 mb-lg-0 mb-xl-6">
- <div class="col col-lg-6 col-xl-4" id="ccpayment">
- <input class="form-check-input mr-4 radiobtn" type="radio" name="payment" id="credit-card" value="credit-card" checked>
- <label for="credit-card" class="form-check-label radiobtn cc">
- <picture>
- <source srcset="{{ static_url("img/amex.png") }},
- {{ static_url("img/amex@2x.png") }} 2x,
- {{ static_url("img/amex@3x.png") }} 3x ">
- <img src="{{ static_url("img/amex.png") }}"
- srcset="{{ static_url("img/amex.png") }},
- {{ static_url("img/amex@2x.png") }} 2x,
- {{ static_url("img/amex@3x.png") }} 3x "
- alt="Amex" class="m-xl-2">
- </picture>
-
- <picture>
- <source srcset="{{ static_url("img/mastercard.png") }},
- {{ static_url("img/mastercard@2x.png") }} 2x,
- {{ static_url("img/mastercard@3x.png") }} 3x ">
- <img src="{{ static_url("img/mastercard.png") }}"
- srcset="{{ static_url("img/mastercard.png") }},
- {{ static_url("img/mastercard@2x.png") }} 2x,
- {{ static_url("img/mastercard@3x.png") }} 3x "
- alt="Mastercard" class="m-xl-2">
- </picture>
-
- <picture>
- <source srcset="{{ static_url("img/visa.png") }},
- {{ static_url("img/visa@2x.png") }} 2x,
- {{ static_url("img/visa@3x.png") }} 3x ">
- <img src="{{ static_url("img/visa.png") }}"
- srcset="{{ static_url("img/visa.png") }},
- {{ static_url("img/visa@2x.png") }} 2x,
- {{ static_url("img/visa@3x.png") }} 3x "
- alt="Visa" class="m-xl-2">
- </picture>
- </label>
- </div>
-
- <div class="col col-lg-6 col-xl-4" id="sepapayment">
- <input class="form-check-input mr-4 radiobtn" type="radio" name="payment" id="direct-debit" value="direct-debit">
- <label for="direct-debit" class="form-check-label radiobtn">SEPA direct debit</label>
- </div>
-
- <div class="col col-lg-6 col-xl-4" id="paymentpaypal">
- <input class="form-check-input mr-4 radiobtn" type="radio" name="payment" id="paypal" value="paypal">
- <label for="paypal" class="form-check-label radiobtn">
- <picture>
- <source srcset="{{ static_url("img/paypal.png") }},
- {{ static_url("img/paypal@2x.png") }} 2x,
- {{ static_url("img/paypal@3x.png") }} 3x ">
- <img src="{{ static_url("img/paypal.png") }}"
- srcset="{{ static_url("img/paypal.png") }},
- {{ static_url("img/paypal@2x.png") }} 2x,
- {{ static_url("img/paypal@3x.png") }} 3x "
- alt="PayPal" class="m-xl-4">
- </picture>
- </label>
+
+ <div class="my-5 p-5 bg-light">
+ <h6>{{ _("Choose an amount") }}</h6>
+
+ <div class="btn-group-toggle flex-wrap mb-3" data-toggle="buttons">
+ {% for amount in amounts %}
+ <label class="btn btn-secondary btn-lg mb-2">
+ <input type="radio" name="amount" value="{{ amount }}"
+ autocomplete="off"> <span class="USD">$</span>{{ amount }} <span class="EUR">€</span>
+ </label>
+ {% end %}
+ </div>
+
+ <div class="form-group row mb-5">
+ <label class="col-sm-5 col-form-label col-form-label-lg">
+ or enter your own
+ </label>
+
+ <div class="col-sm-5">
+ <input type="number" class="form-control form-control-lg" id="enterYourOwn">
+ </div>
+ </div>
+
+ <div class="row mb-5">
+ <div class="col">
+ <h6>Choose payment</h6>
+
+ <div class="form-check form-check-inline">
+ <input class="form-check-input" type="radio"
+ name="payment" id="credit-card" value="credit-card" checked>
+ <label for="credit-card" class="form-check-label">
+ <picture>
+ <source srcset="{{ static_url("img/amex.png") }},
+ {{ static_url("img/amex@2x.png") }} 2x,
+ {{ static_url("img/amex@3x.png") }} 3x ">
+ <img src="{{ static_url("img/amex.png") }}"
+ srcset="{{ static_url("img/amex.png") }},
+ {{ static_url("img/amex@2x.png") }} 2x,
+ {{ static_url("img/amex@3x.png") }} 3x "
+ alt="Amex" class="m-xl-2">
+ </picture>
+
+ <picture>
+ <source srcset="{{ static_url("img/mastercard.png") }},
+ {{ static_url("img/mastercard@2x.png") }} 2x,
+ {{ static_url("img/mastercard@3x.png") }} 3x ">
+ <img src="{{ static_url("img/mastercard.png") }}"
+ srcset="{{ static_url("img/mastercard.png") }},
+ {{ static_url("img/mastercard@2x.png") }} 2x,
+ {{ static_url("img/mastercard@3x.png") }} 3x "
+ alt="Mastercard" class="m-xl-2">
+ </picture>
+
+ <picture>
+ <source srcset="{{ static_url("img/visa.png") }},
+ {{ static_url("img/visa@2x.png") }} 2x,
+ {{ static_url("img/visa@3x.png") }} 3x ">
+ <img src="{{ static_url("img/visa.png") }}"
+ srcset="{{ static_url("img/visa.png") }},
+ {{ static_url("img/visa@2x.png") }} 2x,
+ {{ static_url("img/visa@3x.png") }} 3x "
+ alt="Visa" class="m-xl-2">
+ </picture>
+ </label>
+ </div>
+
+ <div class="form-check form-check-inline">
+ <input class="form-check-input" type="radio" name="payment"
+ id="direct-debit" value="direct-debit">
+
+ <label for="direct-debit" class="form-check-label">
+ SEPA
+ </label>
+ </div>
+
+ <div class="form-check form-check-inline paypal">
+ <input class="form-check-input" type="radio" name="payment"
+ id="paypal" value="paypal">
+
+ <label for="paypal" class="form-check-label">
+ <picture>
+ <source srcset="{{ static_url("img/paypal.png") }},
+ {{ static_url("img/paypal@2x.png") }} 2x,
+ {{ static_url("img/paypal@3x.png") }} 3x ">
+ <img src="{{ static_url("img/paypal.png") }}"
+ srcset="{{ static_url("img/paypal.png") }},
+ {{ static_url("img/paypal@2x.png") }} 2x,
+ {{ static_url("img/paypal@3x.png") }} 3x "
+ alt="PayPal" class="m-xl-2">
+ </picture>
+ </label>
+ </div>
+ </div>
+ </div>
+
+ <div class="row collapse" id="address">
+ <div class="col d-flex flex-column">
+ <div class="form-row">
+ <div class="col">
+ <div class="form-check form-check-inline mb-3">
+ <input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio1" value="option1">
+ <label class="form-check-label" for="inlineRadio1">{{ _("Mr.") }}</label>
+ </div>
+ <div class="form-check form-check-inline mb-3">
+ <input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio2" value="option2">
+ <label class="form-check-label" for="inlineRadio2">{{ _("Mrs.") }}</label>
+ </div>
+ </div>
+ </div>
+
+ <div class="form-row">
+ <div class="col-sm-6">
+ <div class="form-group">
+ <input type="text" class="form-control" id="exampleFormControlInput1"
+ placeholder="{{ _("First Name" )}}" required>
+ </div>
+ </div>
+
+ <div class="col-sm-6">
+ <div class="form-group">
+ <input type="text" class="form-control" id="exampleFormControlInput1"
+ placeholder="{{ _("Last Name" )}}" required>
+ </div>
+ </div>
+ </div>
+
+ <div class="form-group">
+ <input type="email" class="form-control" id="exampleFormControlInput1"
+ placeholder="{{ _("Email Address") }}" required>
+ </div>
+
+ <div class="form-group">
+ <input type="text" class="form-control" id="exampleFormControlInput1"
+ placeholder="{{ _("Company Name (optional)") }}">
+ </div>
+
+ <div class="form-group">
+ <input type="text" class="form-control" id="exampleFormControlInput1"
+ placeholder="{{ _("Address Line 1") }}" required>
+ </div>
+
+ <div class="form-group">
+ <input type="text" class="form-control" id="exampleFormControlInput1"
+ placeholder="{{ _("Address Line 2") }}">
+ </div>
+
+ <div class="form-row">
+ <div class="col-sm-6">
+ <input type="text" class="form-control" id="exampleFormControlInput1"
+ placeholder="{{ _("City") }}" required>
+ </div>
+
+ <div class="col-sm-6">
+ <div class="form-group">
+ <input type="text" class="form-control" id="exampleFormControlInput1"
+ placeholder="{{ _("Post Code") }}" required>
+ </div>
+ </div>
+ </div>
+
+ <div class="form-row">
+ <div class="col-sm-6">
+ <select class="form-control" id="exampleFormControlSelect1" required>
+ <option value="">- {{ _("Country") }} -</option>
+ <option>2</option>
+ <option>3</option>
+ <option>4</option>
+ <option>5</option>
+ </select>
+ </div>
+
+ <div class="col-sm-6">
+ <div class="form-group">
+ <input type="text" class="form-control" id="exampleFormControlInput1"
+ placeholder="{{ _("State (optional)") }}">
+ </div>
+ </div>
+ </div>
+
+ <input type="submit" class="btn btn-primary btn-lg mx-auto"
+ id="donate" value="{{ _("Donate Now") }}">
+ </div>
+ </div>
+
+ <div class="row">
+ <div class="col text-center">
+ <button class="btn btn-primary btn-lg" id="next"
+ data-toggle="collapse" href="#address">{{ _("Next") }} »</button>
+ </div>
+ </div>
+
+ <div class="modal fade" tabindex="-1" role="dialog" id="modal-upsell" aria-hidden="true">
+ <div class="modal-dialog modal-dialog-centered" role="document">
+ <div class="modal-content">
+ <div class="modal-header">
+ <h5 class="modal-title">Modal title</h5>
+ <button type="button" class="close" data-dismiss="modal" aria-label="Close">
+ <span aria-hidden="true">×</span>
+ </button>
+ </div>
+
+ <div class="modal-body">
+ <p>Modal body text goes here.</p>
+ </div>
+
+ <div class="modal-footer">
+ <button type="button" class="btn btn-primary">Save changes</button>
+ <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <p class="small text-muted">
+ There should also be some area for the small-print since we need to tell people who they are donating to and that we don't do any refunds, etc.
+ </p>
</div>
</div>
</div>
</div>
-
- <input type="submit" class="btn btn-primary btn-lg m-0" style="position: relative; top: -24px; left: 50%; transform: translateX(-50%);" value="Donate Now">
-
- <p class="small text-left mt-5 mb-6">
- There should also be some area for the small-print since we need to tell people who they are donating to and that we don't do any refunds, etc.
- </p>
</div>
-
- <div class="info col-md-4 bg-blue-grey-900 text-white p-5 pt-6">
- <div class="mb-6">
- <h3>IP<strong>Fire</strong> is an Open Source software project.</h3>
-
- <p class="copy">
- IPFire is an Open Source software project.
- </p>
-
- <p class="copy">
- Development and keeping the project healthy is carried out by a
- group of volunteers who have built a very successful product,
- which hundreds of thousands of people use every day.
- </p>
-
- <p class="copy">
- Your donation helps us to make IPFire even better...
- </p>
- </div>
-
- <div class="mb-6 d-flex justify-content-between">
- <h3><a href="#whydonate">Why should I donate?</a></h3><a href="#whydonate"><svg class="icon i_arrow_down_2 ml-4"><use xlink:href="#arrow-down-2"/></svg></a>
- </div>
-
- <div class="mb-6 d-flex justify-content-between">
- <h3><a href="#howmuch">How much should I give?</a></h3><a href="#howmuch"><svg class="icon i_arrow_down_2 ml-4"><use xlink:href="#arrow-down-2"/></svg></a>
- </div>
- </div>
- </div>
+ </form>
</div>
</div>
</div>
- </form>
+ </div>
</section>
</div>
</div>
</section>
-
+
<section>
- <div class="container">
+ <div class="container">
<div class="row text-left">
<div class="col-10 col-md-5 offset-sm-1 offset-xl-0">
- <div class="mb-6" id="whydonate">
+ <div class="mb-6" id="whydonate">
<h3>Why should I donate?</h3>
-
+
<p class="copy">We are proud of what we are doing here at IPFire. We create a free firewall
distribution that is free to use for everyone anywhere in the world. To do that,
we need to provide the infrastructure to distribute it to our users and provide
the right tools for our developers to help them to make IPFire better every day.
</p>
-
+
<p class="copy">Donations from individuals and corporations are the only way to keep all of our
services free for everyone. They pay for hosting, advertising, purchase
equipment and to fund the work of the people behind it.
</p>
-
+
<p class="copy">Our ambition is to compete with projects backed by large corporations and
proprietary solutions and we cannot do that without you. Become a supporter
today!
</p>
</div>
-
+
<div class="mb-6" id="howmuch">
<h3>How much should I give?</h3>
-
+
<p class="copy">Donations range from single digits donations to hundreds. For us it is important
to give something back to help this project to succeed. If you want to help,
please do so and encourage others to do so, too.
</p>
</div>
</div>
-
+
<div class="col-10 col-md-4 offset-sm-1 offset-xl-2">
<h3>Frequently Asked Questions</h3>
<p class="copy">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem.</p>
<path d="M11,3v14.2l-3.6-3.6L6,15l6,6l6-6l-1.4-1.4L13,17.2V3H11z"/>
</symbol>
</svg>
+{% end block %}
+
+{% block javascript %}
+ <script type="text/javascript">
+ $(document).ready(function() {
+ $(".USD").hide();
+
+ $("input[name='currency']").on("change", function() {
+ var currency = $(this).val();
+
+ if (currency == "EUR") {
+ $(".EUR").show();
+ $(".USD").hide();
+ } else if (currency == "USD") {
+ $(".EUR").hide();
+ $(".USD").show();
+ }
+ });
+
+ $("input[name='frequency']").on("change", function() {
+ var frequency = $(this).val();
+
+ if (frequency == "monthly") {
+ $(".paypal").hide();
+ } else {
+ $(".paypal").show();
+ }
+ })
+
+ $("#next").click(function (event) {
+ $(this).hide();
+ });
+
+ $("#donate").click(function (event) {
+ var frequency = $("input[name='frequency']");
+
+ if (frequency == "once") {
+ event.preventDefault();
-<script type="text/javascript">
-$(document).ready(function(){
- $("input[name='currency']").on("change", function(){
- if ($(this).val() == "EUR") {
- $('.currency').html('€');
- }
- else if ($(this).val() == "USD") {
- $('.currency').html('$');
- }
- });
- $("input[name='frequency']").on("change", function(){
- if ($(this).val() == "single") {
- $("input#10").attr("value", "10");
- document.getElementById("amount_10").innerHTML="10";
- $("input#25").attr("value", "25");
- document.getElementById("amount_25").innerHTML="25";
- $("input#50").attr("value", "50");
- document.getElementById("amount_50").innerHTML="50";
- $("input#75").attr("value", "75");
- document.getElementById("amount_75").innerHTML="75";
- $("input#100").attr("value", "100");
- document.getElementById("amount_100").innerHTML="100";
- $("input#250").attr("value", "250");
- document.getElementById("amount_250").innerHTML="250";
- document.getElementById("paymentpaypal").style.visibility = 'visible';
- }
- else if ($(this).val() == "monthly") {
- $("input#10").attr("value", "2");
- document.getElementById("amount_10").innerHTML="2";
- $("input#25").attr("value", "3");
- document.getElementById("amount_25").innerHTML="3";
- $("input#50").attr("value", "5");
- document.getElementById("amount_50").innerHTML="5";
- $("input#75").attr("value", "7");
- document.getElementById("amount_75").innerHTML="7";
- $("input#100").attr("value", "10");
- document.getElementById("amount_100").innerHTML="10";
- $("input#250").attr("value", "12");
- document.getElementById("amount_250").innerHTML="12";
- document.getElementById("paymentpaypal").style.visibility = 'hidden';
- }
- })
-});
-</script>
-
+ $("#modal-upsell").modal("show");
+ }
+ });
+ });
+ </script>
{% end block %}