mirror of
https://github.com/simple-login/app.git
synced 2024-11-01 03:21:01 +01:00
cb7868bdca
* Add DJlint configuration * Initial reformat for djlint * Add template linting to CI * Add explanation for HTML template checks in CONTRIBUTING.md
36 lines
1.1 KiB
HTML
36 lines
1.1 KiB
HTML
{% extends "developer/client_details/base.html" %}
|
|
|
|
{% set client_details_page = "referral" %}
|
|
{% block client_details_content %}
|
|
|
|
<h1 class="h2">Referral</h1>
|
|
<div>
|
|
If you are in the
|
|
<a href="{{ url_for('dashboard.referral_route') }}">referral</a>
|
|
program, you can attach a
|
|
referral to this website.
|
|
Any SimpleLogin sign up thanks to the SIWSL on your website will be counted towards this referral.
|
|
</div>
|
|
<form method="post" class="mt-3">
|
|
<div class="form-group">
|
|
<label class="form-label" for="client-select">Referral</label>
|
|
<select class="form-control" name="referral-id" id="client-select">
|
|
{% for referral in current_user.referrals %}
|
|
|
|
<option value="{{ referral.id }}"
|
|
{% if client.referral_id == referral.id %} selected{% endif %}>
|
|
{{ referral.name }}
|
|
</option>
|
|
{% endfor %}
|
|
{% if client.referral_id is none %}
|
|
|
|
<option value="" selected>
|
|
No referral selected
|
|
</option>
|
|
{% endif %}
|
|
</select>
|
|
</div>
|
|
<input type="submit" class="btn btn-primary" value="Update">
|
|
</form>
|
|
{% endblock %}
|