You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
fosspay/contrib/fr/overrides/index.html

160 lines
5.8 KiB

{% extends "layout.html" %}
{% block scripts %}
<script>
window.stripe_key = "{{ _cfg("stripe-publish") }}";
window.avatar = "{{ avatar }}";
window.your_name = "{{ _cfg("your-name") }}";
window.default_amount = {{ _cfg("default-amount") }};
window.default_type = "{{ _cfg("default-type") }}";
// Traduction du /script/index.js
const i18n = {
"Monthly Donation": "Don mensuel",
"One-time Donation": "Don Unique",
"Donate ": "Donner ",
"Submitting...": "Validation...",
"Donate": "Donner"
};
// Fin de traduction
const currency = "{{ _cfg("currency") }}";
{% if user %}
window.email = "{{user.email}}";
{% endif %}
</script>
<script src="//checkout.stripe.com/checkout.js"></script>
<script src="static/index.js"></script>
{% endblock %}
{% block body %}
<div class="well">
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<img
class="pull-right"
src="{{ avatar }}?s=128"
style="border-radius: 5px; margin-left: 1rem"
width="128" height="128" />
<h1>Soutenir le {{ _cfg("your-name") }}</h1>
{% include "summary.html" %}
</div>
</div>
</div>
</div>
<noscript>
<div class="container">
<div class="alert alert-danger">
<p>Cette page requiert Javascript. C'est nécessaire afin d'envoyer vos informations de payement directement à
<a href="https://stripe.com/">Stripe</a> plutôt que de faire confiance à cette plateforme pour les stocker.</p>
</div>
</div>
</noscript>
<div class="container text-center hidden" id="thanks">
{% include "post-donation-message.html" %}
<form id="new-donor-password" class="hidden" action="{{root}}/password-reset" method="POST">
<p>Si vous voulez gérer vos dons plus tard, vous pouvez créer un compte en renseignent un mot de passe dans le champ ci-contre :</p>
<input type="password" placeholder="Mot de passe" name="password" />
<input type="hidden" name="token" id="reset-token" />
<button class="btn btn-primary btn-sm">Valider</button>
</form>
</div>
<div class="container text-center" id="donation-stuff">
<h3>Choississez votre montant :</h3>
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="btn-group btn-group-justified amounts" role="group" aria-label="...">
{% for amt in _cfg("default-amounts").split(" ") %}
<div class="btn-group" role="group">
<button data-amount="{{ amt }}" type="button"
class="btn btn-default {{"active" if _cfg("default-amount") == amt else ""}}"
>{{ currency.amount(amt) }}</button>
</div>
{% endfor %}
<div class="btn-group" role="group">
<button data-amount="custom" type="button" class="btn btn-default">Personnalisé</button>
</div>
</div>
</div>
</div>
<div class="row hidden" id="custom-amount" style="margin-top: 20px;">
<div class="col-md-4 col-md-offset-4">
<div class="form-group">
<div class="input-group">
<span class="input-group-addon">{{ currency.symbol }}</span>
<input id="custom-amount-text" type="text" value="13.12"
class="form-control" placeholder="Montant" />
</div>
</div>
</div>
</div>
<h3>Donner :</h3>
<div class="row">
<div class="col-md-4 col-md-offset-4">
<div class="form-group">
<div class="btn-group btn-group-justified frequencies" role="group" aria-label="...">
<div class="btn-group" role="group">
<button data-frequency="once" type="button"
class="btn btn-default {{"active" if _cfg("default-type")=="once" else ""}}"
>Une fois</button>
</div>
<div class="btn-group" role="group">
<button data-frequency="monthly" type="button"
class="btn btn-default {{"active" if _cfg("default-type")=="monthly" else ""}}"
>Tous les mois</button>
</div>
</div>
</div>
</div>
</div>
{% if len(projects) > 1 %}
<h3>Pour quel projet ?</h3>
<div class="row">
<div class="col-md-4 col-md-offset-4">
<div class="form-group">
<select id="project" name="project" class="form-control">
<option value="null"
{{ "selected" if selected_project == None else "" }}>Aucun en particulier</option>
{% for project in projects %}
<option value="{{ project.id }}"
{{ "selected" if selected_project == project.id else "" }}>{{ project.name }}</option>
{% endfor %}
</select>
</div>
</div>
</div>
{% endif %}
<div class="row">
<div class="col-md-4 col-md-offset-4">
<div class="form-group">
<input type="text" id="comments" class="form-control" placeholder="Ajouter un commentaire ?" maxlength="512" />
</div>
</div>
</div>
<div class="row">
<div class="col-md-4 col-md-offset-4">
<div class="alert alert-danger hidden" id="errors">
<p></p>
</div>
<button class="btn btn-block btn-success" id="donate-button">Valider</button>
</div>
</div>
</div>
{% include "goal.html" %}
<hr />
<div class="container text-center">
{% if not user %}
<p>
<small class="text-muted">
Si vous nous avez déjà fait au moins un don, vous pouvez <a href="login">vous connecter</a> pour voir
votre historique ou éditer vos dons récurrents. :)
</small>
</p>
{% endif %}
<p>
<small class="text-muted">
Powered by <a href="https://github.com/SirCmpwn/fosspay">fosspay</a>.
</small>
</p>
</div>
{% endblock %}