feat(home): replace history shortcut with asset search in viewer action bar

This commit is contained in:
kdeterme 2026-10-07 15:58:51 +02:00
parent 875efc67f4
commit dd12e2fde1
7 changed files with 16 additions and 4 deletions

View file

@ -1191,3 +1191,7 @@ msgstr "All interventions"
msgid "Vue détaillée" msgid "Vue détaillée"
msgstr "Detailed view" msgstr "Detailed view"
msgid "Rechercher un asset"
msgstr "Search for an asset"

View file

@ -1200,3 +1200,7 @@ msgstr "Toutes les interventions"
msgid "Vue détaillée" msgid "Vue détaillée"
msgstr "Vue détaillée" msgstr "Vue détaillée"
msgid "Rechercher un asset"
msgstr "Rechercher un asset"

View file

@ -1197,3 +1197,7 @@ msgstr "Alle interventies"
msgid "Vue détaillée" msgid "Vue détaillée"
msgstr "Gedetailleerde weergave" msgstr "Gedetailleerde weergave"
msgid "Rechercher un asset"
msgstr "Een asset zoeken"

View file

@ -54,14 +54,14 @@
<span class="quick-action-icon"><i class="bi bi-search"></i></span> <span class="quick-action-icon"><i class="bi bi-search"></i></span>
<span class="quick-action-text">{% translate "Rechercher une intervention" %}</span> <span class="quick-action-text">{% translate "Rechercher une intervention" %}</span>
</a> </a>
<a href="{% url 'assets:index' %}" class="quick-action-btn">
<span class="quick-action-icon"><i class="bi bi-layers"></i></span>
<span class="quick-action-text">{% translate "Rechercher un asset" %}</span>
</a>
<a href="{% url 'interventions:interventions_calendar' %}" class="quick-action-btn"> <a href="{% url 'interventions:interventions_calendar' %}" class="quick-action-btn">
<span class="quick-action-icon"><i class="bi bi-calendar3"></i></span> <span class="quick-action-icon"><i class="bi bi-calendar3"></i></span>
<span class="quick-action-text">{% translate "Calendrier" %}</span> <span class="quick-action-text">{% translate "Calendrier" %}</span>
</a> </a>
<a href="#widget-user-history" class="quick-action-btn" onclick="const el=document.getElementById('widget-user-history'); if(el){ el.scrollIntoView({behavior:'smooth'}); el.style.boxShadow='0 0 0 3px rgba(13, 110, 253, 0.4)'; setTimeout(()=>el.style.boxShadow='', 1800); return false; }" data-bs-toggle="modal" data-bs-target="#userHistoryModal">
<span class="quick-action-icon"><i class="bi bi-clock-history"></i></span>
<span class="quick-action-text">{% translate "Mon historique" %}</span>
</a>
{% endif %} {% endif %}
{% if user.config|has_any_role:"observer,manager,controller,admin,external_manager,top_manager" %} {% if user.config|has_any_role:"observer,manager,controller,admin,external_manager,top_manager" %}
<a href="{% url 'observations:observation_add' %}" class="quick-action-btn quick-action-obs"> <a href="{% url 'observations:observation_add' %}" class="quick-action-btn quick-action-obs">