Intégration smartphone

This commit is contained in:
Jean-Marie Favreau 2024-11-11 23:57:20 +01:00
parent 936f6c1b6b
commit ab347d5656
4 changed files with 42 additions and 33 deletions

View File

@ -1026,6 +1026,11 @@ article form p .recurrence-widget {
} }
.large-table {
overflow-x: scroll;
width: 100%;
}
.container-fluid article form .hidden { .container-fluid article form .hidden {
display: none; display: none;
} }

View File

@ -1,3 +1,4 @@
<div class="large-table">
<table role="grid"> <table role="grid">
<thead> <thead>
<tr> <tr>
@ -54,3 +55,4 @@
{% endif %} {% endif %}
</tbody> </tbody>
</table> </table>
</div>

View File

@ -1,35 +1,37 @@
{% if modifications|length == 0 %} {% if modifications|length == 0 %}
<em>Aucune activité dans la période choisie</em> <em>Aucune activité dans la période choisie</em>
{% else %} {% else %}
<table role="grid"> <div class="large-table">
<thead> <table role="grid">
<tr> <thead>
<th>{% if modifications.0.when.0 == modifications.0.when.1 %}Date{% else %}Semaine{% endif %}</th> <tr>
<th>Créations manuelles</th> <th>{% if modifications.0.when.0 == modifications.0.when.1 %}Date{% else %}Semaine{% endif %}</th>
<th>Imports manuels</th> <th>Créations manuelles</th>
<th>Imports automatiques</th> <th>Imports manuels</th>
<th>Créations de copies locales</th> <th>Imports automatiques</th>
</tr> <th>Créations de copies locales</th>
</thead> </tr>
<tbody> </thead>
{% for m in modifications %} <tbody>
<tr> {% for m in modifications %}
<td>{{ m.when.0|date:'D j b' }}{% if modifications.0.when.0 != modifications.0.when.1 %} - {{ m.when.1|date:'D j b' }}{% endif %}</td> <tr>
<td>{{ m.nb_manual_creation }}</td> <td>{{ m.when.0|date:'D j b' }}{% if modifications.0.when.0 != modifications.0.when.1 %} - {{ m.when.1|date:'D j b' }}{% endif %}</td>
<td>{{ m.nb_manual_import }}</td> <td>{{ m.nb_manual_creation }}</td>
<td>{{ m.nb_first_import }}</td> <td>{{ m.nb_manual_import }}</td>
<td>{{ m.nb_local_copies }}</td> <td>{{ m.nb_first_import }}</td>
</tr> <td>{{ m.nb_local_copies }}</td>
{% endfor %} </tr>
{% if next %} {% endfor %}
<tr> {% if next %}
<td><a href="{% url 'activite' %}">...</a></td> <tr>
<td><a href="{% url 'activite' %}">...</a></td> <td><a href="{% url 'activite' %}">...</a></td>
<td><a href="{% url 'activite' %}">...</a></td> <td><a href="{% url 'activite' %}">...</a></td>
<td><a href="{% url 'activite' %}">...</a></td> <td><a href="{% url 'activite' %}">...</a></td>
<td><a href="{% url 'activite' %}">...</a></td> <td><a href="{% url 'activite' %}">...</a></td>
</tr> <td><a href="{% url 'activite' %}">...</a></td>
{% endif %} </tr>
</tbody> {% endif %}
</table> </tbody>
</table>
</div>
{% endif %} {% endif %}

View File

@ -57,9 +57,9 @@ def picto_visibility(event, visible=True):
if not visible: if not visible:
return "" return ""
if event.is_representative(): if event.is_representative():
return picto_from_name("award", "version mise en avant") return picto_from_name("award")
elif event.masked(): elif event.masked():
return picto_from_name("archive", "version non mise en avant") return picto_from_name("archive")
else: else:
return "" return ""