diff --git a/kfet/models.py b/kfet/models.py index 241fb39b..e7807805 100644 --- a/kfet/models.py +++ b/kfet/models.py @@ -133,7 +133,7 @@ class Account(models.Model): else: overdraft_until = timezone.now() + overdraft_duration_max # Checking it doesn't break 1 rule - if new_balance < overdraft_amount_max or timezone.now() > overdraft_until: + if new_balance < overdraft_amount or timezone.now() > overdraft_until: stop_ope = True perms.add('kfet.perform_negative_operations') return perms, stop_ope diff --git a/kfet/static/kfet/css/index.css b/kfet/static/kfet/css/index.css index fab773c7..62e73742 100644 --- a/kfet/static/kfet/css/index.css +++ b/kfet/static/kfet/css/index.css @@ -49,3 +49,46 @@ a:focus, a:hover { text-transform:uppercase; font-weight:bold; } + +.col-content-left, .col-content-right { + padding:0; +} + +.content-left-top { + background:#fff; + padding:10px 30px; +} + +.content-left .buttons { + background:#fff; +} + +.content-left .buttons .btn { + display:block; +} + +.content-left-top.frozen-account { + background:#000FBA; + color:#fff; +} + +.content-left .block { + padding-top:10px; +} + +.content-left .block .line { + font-size:16px; + line-height:30px; +} + +.content-left .line.trigramme { + font-family:Oswald; + font-size:60px; + font-weight:bold; + text-align:center; +} + +.content-left .line.balance { + font-size:45px; + text-align:center; +} diff --git a/kfet/templates/kfet/account_read.html b/kfet/templates/kfet/account_read.html index c42fad82..6a4ddb9c 100644 --- a/kfet/templates/kfet/account_read.html +++ b/kfet/templates/kfet/account_read.html @@ -1,4 +1,5 @@ {% extends "kfet/base.html" %} +{% load kfet_tags %} {% block title %} {% if account.user == request.user %} @@ -19,35 +20,56 @@ {% block content %}
Prénom: {{ account.first_name }}
-Nom: {{ account.last_name }}
-{% if perms.kfet.is_team %} -Surnom: {{ account.nickname }}
-{% endif %} -Email: {{ account.email }}
-Département: {{ account.departement }}
-Promo: {{ account.promo }}
-Statut COF: {{ account.is_cof }}
-Compte gelé: {{ account.is_frozen }}
-Solde: {{ account.balance }} €
-{% if account.negative.balance_offset %} -Solde réel: {{ account.real_balance }} €
-{% endif %} -{% if account.negative.authorized_overdraft %} -Découvert autorisé: {{ account.negative.authorized_overdraft }} €
-{% endif %} -{% if account.negative.start %} -En négatif depuis {{ account.negative.start }}
-{% endif %} - {% endblock %} diff --git a/kfet/templates/kfet/base.html b/kfet/templates/kfet/base.html index e57c4cbe..f7a016a0 100644 --- a/kfet/templates/kfet/base.html +++ b/kfet/templates/kfet/base.html @@ -36,7 +36,6 @@