Skip to content

Commit

Permalink
refact info_user
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesfize committed Apr 3, 2024
1 parent 8b80901 commit 95a248f
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions app/templates/info_user.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,10 @@ <h3>Utilisateur "{{fullname}}"</h3>
<br /><strong>Remarques :</strong> {{user['remarques']}}
{% endif %}

{% if user['pass_plus'] == "" or user["pass_plus"] is none %}
<br /><strong>Mot de passe Plus :</strong> Non
{%else %}
<br /><strong>Mot de passe Plus :</strong> Oui
{% endif %}
{% if user['pass_md5'] == "" or user["pass_md5"] is none %}
<br /><strong>Mot de passe Md5 :</strong> Non
{%else %}
<br /><strong>Mot de passe Md5 :</strong> Oui
{% endif %}
{% if user['active'] == True %}
<br /><strong>Compte Actif :</strong> Oui
{%else %}
<br /><strong>Compte Actif :</strong> Non
{% endif %}

<br /><strong>Mot de passe Plus :</strong> {"Non" if user['pass_plus'] == "" or user["pass_plus"] is none else "Oui"}
<br /><strong>Mot de passe Md5 :</strong> {"Non" if user['pass_md5'] == "" or user["pass_md5"] is none else "Oui"}
<br /><strong>Compte Actif :</strong> {{"Oui" if user["active"] else "Non" }}
{% if is_date_insert %}
<br /><strong>Date de création :</strong> {{user['date_insert']|truncate(10, True, '', 0)}}
{% endif %}
Expand Down

0 comments on commit 95a248f

Please sign in to comment.