proper logo alt text with the configured name

This commit is contained in:
OniriCorpe 2024-05-22 02:09:01 +02:00
parent 31640b1523
commit 89dee68807

View file

@ -1,42 +1,45 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{{ _('Donate to %(name)s', name=name) }}</title> <head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="{{ favicon }}" type="image/x-icon" /> <title>{{ _('Donate to %(name)s', name=name) }}</title>
<link href="./css/bootstrap-5.0.0-beta2.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
<link href="./css/global.css" rel="stylesheet" />
<script src="https://js.stripe.com/v3/"></script>
<script src="./index.js" defer></script>
</head>
<body class="text-center"> <link rel="icon" href="{{ favicon }}" type="image/x-icon" />
<main class="form-donate"> <link href="./css/bootstrap-5.0.0-beta2.min.css" rel="stylesheet"
<div> integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
<img src="{{ logo }}" class="mb-4" alt="Project Logo" max-width="7em"/> <link href="./css/global.css" rel="stylesheet" />
<h1 class="h3 mb-3 fw-normal">{{ _('I want to give to %(name)s', name=name) }}</h1> <script src="https://js.stripe.com/v3/"></script>
<div class="input-group mb-3"> <script src="./index.js" defer></script>
<input type="hidden" id="csrf" value="{{ csrf }}" /> </head>
<input type="hidden" id="public_key" value="{{ stripe_publishable_key }}" />
<input type="number" min="0" max="9999" class="form-control" id="quantity" value="10" aria-label="Amount"> <body class="text-center">
<select class="form-control" id="currency" style="width:40px"> <main class="form-donate">
{% for iso, symbol in currencies %} <div>
<option value="{{ iso }}">{{ symbol }} <img src="{{ logo }}" class="mb-4" alt="{{ _('%(name)s Logo', name=name) }}" max-width="7em" />
{% endfor %} <h1 class="h3 mb-3 fw-normal">{{ _('I want to give to %(name)s', name=name) }}</h1>
</select> <div class="input-group mb-3">
<select class="form-control" id="frequency"> <input type="hidden" id="csrf" value="{{ csrf }}" />
<option value="recuring"> {{ _('/ month') }} <input type="hidden" id="public_key" value="{{ stripe_publishable_key }}" />
<option value="one_time"> {{ _('one time') }} <input type="number" min="0" max="9999" class="form-control" id="quantity" value="10" aria-label="Amount">
</select> <select class="form-control" id="currency" style="width:40px">
</div> {% for iso, symbol in currencies %}
<option value="{{ iso }}">{{ symbol }}
{% endfor %}
</select>
<select class="form-control" id="frequency">
<option value="recuring"> {{ _('/ month') }}
<option value="one_time"> {{ _('one time') }}
</select>
</div>
<button id="submit" class="w-100 btn btn-lg btn-primary">{{ _('Donate') }}</button>
<p><a href="{{ contact_url }}">{{ _('If you want to cancel a monthly donation, please contact us') }}</a></p>
<div id="error-message"></div>
</div>
</main>
</body>
<button id="submit" class="w-100 btn btn-lg btn-primary">{{ _('Donate') }}</button>
<p><a href="{{ contact_url }}">{{ _('If you want to cancel a monthly donation, please contact us') }}</a></p>
<div id="error-message"></div>
</div>
</main>
</body>
</html> </html>