|
@ -17,23 +17,29 @@ |
|
|
|
|
|
|
|
|
<div class="divider"></div> |
|
|
<div class="divider"></div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="code-gen-btn"> |
|
|
|
|
|
{% if request.user.invite_codes_remaining > 0 %} |
|
|
|
|
|
<button |
|
|
|
|
|
class="btn btn-primary" |
|
|
|
|
|
data-ic-get-from="{{ request.route_url( |
|
|
|
|
|
'ic_user_invite_code', |
|
|
|
|
|
username=request.user.username, |
|
|
|
|
|
) }}" |
|
|
|
|
|
data-ic-replace-target="true" |
|
|
|
|
|
data-ic-target=".code-gen-btn" |
|
|
|
|
|
>Generate new code ({{ request.user.invite_codes_remaining }} left)</button> |
|
|
|
|
|
{% else %} |
|
|
|
|
|
<p>You don't currently have any invite codes available.</p> |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
{% if codes %} |
|
|
{% if codes %} |
|
|
<p>You have the following invite codes active that have not been used yet:</p> |
|
|
|
|
|
|
|
|
<p>You have the following invite codes active that have not been used yet:</p> |
|
|
|
|
|
</div> |
|
|
{% for code in codes %} |
|
|
{% for code in codes %} |
|
|
<input class="form-input input-lg input-invite-code" type="text" value="{{ code }}" readonly data-js-autoselect-input> |
|
|
<input class="form-input input-lg input-invite-code" type="text" value="{{ code }}" readonly data-js-autoselect-input> |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
{% if request.user.invite_codes_remaining > 0 %} |
|
|
|
|
|
<button |
|
|
|
|
|
class="btn btn-primary" |
|
|
|
|
|
data-ic-get-from="{{ request.route_url( |
|
|
|
|
|
'ic_user_invite_code', |
|
|
|
|
|
username=request.user.username, |
|
|
|
|
|
) }}" |
|
|
|
|
|
data-ic-replace-target="true" |
|
|
|
|
|
>Generate new code ({{ request.user.invite_codes_remaining }} left)</button> |
|
|
|
|
|
{% else %} |
|
|
{% else %} |
|
|
<p>You don't currently have any invite codes available.</p> |
|
|
|
|
|
|
|
|
</div> |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
{% endblock %} |
|
|
{% endblock %} |