mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2024-11-30 09:33:03 +00:00
82 lines
3.4 KiB
HTML
82 lines
3.4 KiB
HTML
{% extends "admin/base_site.html" %}
|
|
{% comment %}
|
|
SPDX-License-Identifier: GPL-3.0-or-later
|
|
{% endcomment %}
|
|
|
|
{% load i18n static %}
|
|
|
|
{% block title %}Base de donnée de la Mediatek{% endblock %}
|
|
|
|
{% block extrastyle %}
|
|
{{ block.super }}
|
|
<link rel="stylesheet" type="text/css" href="{% static "admin/css/dashboard.css" %}"/>
|
|
{% endblock %}
|
|
|
|
{% block coltype %}colMS{% endblock %}
|
|
|
|
{% block bodyclass %}{{ block.super }} dashboard{% endblock %}
|
|
|
|
{% block breadcrumbs %}{% endblock %}
|
|
|
|
{% block content %}
|
|
<div id="content-main">
|
|
<h1>Bienvenue sur la base de données de la Mediatek.</h1>
|
|
<h1>Welcome to procrastination heaven !</h1>
|
|
<p>
|
|
Le site va subir progressivement des mises à jour pendant ces vacances.
|
|
Si vous rencontrez des instabilités,
|
|
veuillez nous faire remonter les problèmes <a href="mailto:a@crans.org,club-med@crans.org">au webmaster</a>.
|
|
</p>
|
|
<img src="{% static "images/splash.png" %}" class="poulpy" alt="Poulpy">
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block sidebar %}
|
|
<div id="content-related">
|
|
<div class="module" id="recent-actions-module">
|
|
{% if user.is_authenticated %}
|
|
<h2>{{ user.first_name }} {{ user.last_name }}</h2>
|
|
|
|
<h3>
|
|
{% trans 'My profile' %}
|
|
<small><a class="changelink" href="{% url 'users:edit-info' %}">
|
|
{% trans 'Edit' %}
|
|
</a></small>
|
|
</h3>
|
|
<ul>
|
|
<li><strong>{% trans 'username' %}</strong> : {{ user.username }}</li>
|
|
<li><strong>{% trans 'email' %}</strong> : {{ user.email }}</li>
|
|
<li><strong>{% trans 'comment' %}</strong> : {{ user.comment }}</li>
|
|
<li><strong>{% trans 'date joined' %}</strong> : {{ user.date_joined }}</li>
|
|
<li><strong>{% trans 'last login' %}</strong> : {{ user.last_login }}</li>
|
|
<li><strong>{% trans 'address' %}</strong> : {{ user.address }}</li>
|
|
<li><strong>{% trans 'phone number' %}</strong> : {{ user.telephone }}</li>
|
|
<li><strong>{% trans 'groups' %}</strong> : {% for g in user.groups.all %}{{ g.name }} {% endfor %}</li>
|
|
<li><strong>{% trans 'maximum borrowed' %}</strong> : {{ user.maxemprunt }}</li>
|
|
<li>
|
|
<strong>{% trans 'membership for current year' %}</strong> :
|
|
{% if user.is_adherent %}
|
|
<span style="color:green">{% trans 'yes' %}</span>
|
|
{% else %}
|
|
<span style="color:red">{% trans 'no' %}</span>
|
|
{% endif %}
|
|
</li>
|
|
</ul>
|
|
|
|
<h3>{% trans 'Current borrowed items' %}</h3>
|
|
{% if borrowed_items %}
|
|
<ul>
|
|
{% for emprunt in borrowed_items %}
|
|
<li>{{ emprunt.media }} ({% trans 'since' %} {{ emprunt.date_emprunt }})</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}
|
|
<p>{% trans 'No current borrowed items.' %}</p>
|
|
{% endif %}
|
|
{% else %}
|
|
<p>{% trans 'You are not logged in.' %}</p>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|