1499c0bced
K-Fêt - Wagtail - Page content becomes a StreamField. - GroupTeam snippet becomes a block for stream field. - Navigation menu moved becomes a "flatmenu", preventing possible future conflicts. - Page layout can be modified in wagtail admin. K-Fêt - Add shorthands for ukf account balance/article price. - Cleaning stylesheets and templates.
96 lines
2.7 KiB
HTML
96 lines
2.7 KiB
HTML
{% load kfet_tags %}
|
|
|
|
|
|
<aside class="aside {% if account.is_frozen %}frozen-account{% endif %}">
|
|
|
|
<div class="heading">
|
|
<div class="big">{{ account.trigramme }}</div>
|
|
<div class="toggle">
|
|
<span class="base">{{ account.balance_ukf }} UKF</span>
|
|
<span class="hover">{{ account.balance }} €</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="buttons">
|
|
<a class="btn btn-default" href="{% url 'kfet.account.update' account.trigramme %}">
|
|
<span class="glyphicon glyphicon-cog"></span><span>Éditer</span>
|
|
</a>
|
|
<a class="btn btn-default" disabled>
|
|
<span class="glyphicon glyphicon-credit-card"></span><span>Créditer</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="text">
|
|
<h4>{{ account.name|title }}</h4>
|
|
<ul class="list-unstyled">
|
|
{% if perms.kfet.is_team %}
|
|
<li>{{ account.nickname }}</li>
|
|
{% endif %}
|
|
<li>{{ account.email|default:"Pas d'email!" }}</li>
|
|
<li>{{ account.departement }} {{ account.promo }}</li>
|
|
<li>
|
|
{% if account.is_cof %}
|
|
<span title="Réduction de {{ kfet_config.reduction_cof }} % sur tes commandes" data-toggle="tooltip" data-placement="right">Adhérent COF</span>
|
|
{% else %}
|
|
Non-COF
|
|
{% endif %}
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
{% if account.negative %}
|
|
<div class="text">
|
|
<h4>Négatif</h4>
|
|
<ul class="list-unstyled">
|
|
{% if account.negative.start %}
|
|
<li>Depuis le <b>{{ account.negative.start|date:"d/m/Y à H:i" }}</b></li>
|
|
{% endif %}
|
|
{% if account.real_balance != account.balance %}
|
|
<li>Solde réel: {{ account.real_balance }} €</li>
|
|
{% endif %}
|
|
<li>
|
|
Plafond :
|
|
<b>{{ account.negative.authz_overdraft_amount|default:kfet_config.overdraft_amount }} €</b>
|
|
jusqu'au
|
|
<b>{{ account.negative.authz_overdraft_until|default:account.negative.until_default|date:"d/m/Y à H:i" }}</b>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
|
|
</aside>
|
|
|
|
|
|
|
|
{% if account.user == request.user %}
|
|
<div class="buttons tabs-buttons">
|
|
<div>
|
|
<a class="btn btn-primary-w focus" data-toggle="pill" href="#tab_stats">
|
|
Statistiques
|
|
<span class="hidden-xs glyphicon glyphicon-chevron-right"></span>
|
|
</a>
|
|
</div>
|
|
<div>
|
|
<a class="btn btn-primary-w" data-toggle="pill" href="#tab_history">
|
|
Historique
|
|
<span class="hidden-xs glyphicon glyphicon-chevron-right"></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<script type="text/javascript">
|
|
$( function() {
|
|
|
|
// Tooltips
|
|
$('[data-toggle="tooltip"]').tooltip();
|
|
|
|
// Opened tab button
|
|
let tabs_buttons = $('.tabs-buttons a');
|
|
tabs_buttons.click( function() {
|
|
tabs_buttons.removeClass('focus');
|
|
$(this).addClass('focus');
|
|
});
|
|
|
|
});
|
|
</script>
|