2022-06-29 11:28:26 +02:00
|
|
|
{% extends "developer/client_details/base.html" %}
|
2021-10-26 11:56:36 +02:00
|
|
|
|
|
|
|
{% set client_details_page = "referral" %}
|
|
|
|
{% block client_details_content %}
|
2022-06-29 11:28:26 +02:00
|
|
|
|
2021-10-26 11:56:36 +02:00
|
|
|
<h1 class="h2">Referral</h1>
|
2022-06-29 11:28:26 +02:00
|
|
|
<div>
|
|
|
|
If you are in the
|
|
|
|
<a href="{{ url_for('dashboard.referral_route') }}">referral</a>
|
|
|
|
program, you can attach a
|
2021-10-26 11:56:36 +02:00
|
|
|
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 %}
|
2022-06-29 11:28:26 +02:00
|
|
|
|
2021-10-26 11:56:36 +02:00
|
|
|
<option value="{{ referral.id }}"
|
2022-06-29 11:28:26 +02:00
|
|
|
{% if client.referral_id == referral.id %} selected{% endif %}>
|
|
|
|
{{ referral.name }}
|
|
|
|
</option>
|
2021-10-26 11:56:36 +02:00
|
|
|
{% endfor %}
|
|
|
|
{% if client.referral_id is none %}
|
2022-06-29 11:28:26 +02:00
|
|
|
|
|
|
|
<option value="" selected>
|
|
|
|
No referral selected
|
|
|
|
</option>
|
2021-10-26 11:56:36 +02:00
|
|
|
{% endif %}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<input type="submit" class="btn btn-primary" value="Update">
|
|
|
|
</form>
|
2022-06-29 11:28:26 +02:00
|
|
|
{% endblock %}
|