Répare les liens des écrans métier
Some checks are pending
CI - Tests et Syntax / lint-and-test (push) Waiting to run

This commit is contained in:
root 2026-08-14 19:18:39 +00:00
parent 82c2683c4a
commit 092e4cc8ff
9 changed files with 20 additions and 20 deletions

View file

@ -103,7 +103,7 @@
{% endif %}
</td>
<td>
<a href="{{ url_for('equipments.scheduled_tasks', id=child.id) }}" class="btn btn-sm btn-outline-primary">
<a href="{{ url_for('equipments_scheduled.scheduled_tasks', id=child.id) }}" class="btn btn-sm btn-outline-primary">
<i class="bi bi-calendar-check"></i>
</a>
</td>
@ -166,4 +166,4 @@
{% endif %}
</div>
</div>
{% endblock %}
{% endblock %}

View file

@ -302,7 +302,7 @@
<tr>
<td>
{% if ec.consumable %}
<a href="{{ url_for('consumables.detail', id=ec.consumable.id) }}">
<a href="{{ url_for('planning.consumables') }}">
{{ ec.consumable.name }}
</a>
{% else %}

View file

@ -120,7 +120,7 @@
</td>
<td>
{% if eq.room %}
<a href="{{ url_for('equipments.room_detail', id=eq.room.id) }}">
<a href="{{ url_for('rooms.detail', id=eq.room.id) }}">
{{ eq.room.name }}
</a>
{% elif eq.location %}
@ -176,4 +176,4 @@
</div>
{% endif %}
</div>
{% endblock %}
{% endblock %}

View file

@ -75,7 +75,7 @@
</td>
<td>
{% if eq.room %}
<a href="{{ url_for('equipments.room_detail', id=eq.room.id) }}">
<a href="{{ url_for('rooms.detail', id=eq.room.id) }}">
{{ eq.room.name }}
</a>
{% elif eq.location %}
@ -121,4 +121,4 @@
{% endif %}
</div>
</div>
{% endblock %}
{% endblock %}

View file

@ -8,7 +8,7 @@
{% if room.code %}<small class="text-muted">({{ room.code }})</small>{% endif %}
</h1>
<div>
<a href="{{ url_for('equipments.edit_room', id=room.id) }}" class="btn btn-outline-primary">
<a href="{{ url_for('rooms.edit', id=room.id) }}" class="btn btn-outline-primary">
<i class="bi bi-pencil"></i> Modifier
</a>
<a href="{{ url_for('rooms.index') }}" class="btn btn-outline-secondary">
@ -207,4 +207,4 @@
</div>
</div>
</div>
{% endblock %}
{% endblock %}

View file

@ -9,7 +9,7 @@
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{{ url_for('equipments.index') }}">Équipements</a></li>
<li class="breadcrumb-item"><a href="{{ url_for('equipments.detail', id=equipment.id) }}">{{ equipment.name }}</a></li>
<li class="breadcrumb-item"><a href="{{ url_for('equipments.scheduled_tasks', id=equipment.id) }}">Tâches planifiées</a></li>
<li class="breadcrumb-item"><a href="{{ url_for('equipments_scheduled.scheduled_tasks', id=equipment.id) }}">Tâches planifiées</a></li>
<li class="breadcrumb-item active">{% if task %}Modifier{% else %}Ajouter{% endif %}</li>
</ol>
</nav>
@ -131,7 +131,7 @@
<button type="submit" class="btn btn-primary">
<i class="bi bi-check-circle me-1"></i>Enregistrer
</button>
<a href="{{ url_for('equipments.scheduled_tasks', id=equipment.id) }}" class="btn btn-outline-secondary">
<a href="{{ url_for('equipments_scheduled.scheduled_tasks', id=equipment.id) }}" class="btn btn-outline-secondary">
Annuler
</a>
</div>
@ -165,4 +165,4 @@
</div>
</div>
</div>
{% endblock %}
{% endblock %}

View file

@ -130,13 +130,13 @@
{% if intervention.equipment and intervention.equipment.status not in ['a_jeter', 'jete'] %}
<hr class="my-3">
<form method="POST" action="{{ url_for('interventions.mark_equipment_trash', id=intervention.id) }}">
<form method="POST" action="{{ url_for('equipments.mark_as_trash', id=intervention.equipment.id) }}">
<div class="mb-2">
<label class="form-label small text-muted">Action spéciale :</label>
</div>
<div class="d-flex gap-2 align-items-center">
<button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('Marquer l\'équipement comme à jeter et clôturer cette intervention ?')">
<i class="bi bi-trash"></i> Marquer l'équipement à jeter et clôturer
<i class="bi bi-trash"></i> Prévoir la mise au rebut de l'équipement
</button>
</div>
</form>
@ -393,7 +393,7 @@
<!-- Actions -->
<div class="d-grid gap-2 mb-3">
{% if intervention.is_deleted %}
<form method="POST" action="{{ url_for('interventions.restore', id=intervention.id) }}">
<form method="POST" action="{{ url_for('interventions_planning.restore', id=intervention.id) }}">
<button type="submit" class="btn btn-outline-success w-100" onclick="return confirm('Restaurer cette intervention ?')">
<i class="bi bi-arrow-counterclockwise"></i> Restaurer
</button>
@ -504,13 +504,13 @@
<br><small class="text-muted">{{ doc.uploaded_at.strftime('%d/%m/%Y') if doc.uploaded_at else '—' }}</small>
</div>
<div>
<a href="{{ url_for('documents.download_intervention', doc_id=doc.id) }}" class="btn btn-sm btn-outline-secondary" title="Télécharger">
<a href="{{ url_for('documents.download_intervention_document', doc_id=doc.id) }}" class="btn btn-sm btn-outline-secondary" title="Télécharger">
<i class="bi bi-download"></i>
</a>
<button type="button" class="btn btn-sm btn-outline-primary" title="Modifier la description" data-bs-toggle="modal" data-bs-target="#editInterventionDocumentModal{{ doc.id }}">
<i class="bi bi-pencil"></i>
</button>
<form method="POST" action="{{ url_for('documents.delete_intervention', doc_id=doc.id) }}" style="display:inline;" onsubmit="return confirm('Supprimer ce document ?')">
<form method="POST" action="{{ url_for('documents.delete_intervention_document', doc_id=doc.id) }}" style="display:inline;" onsubmit="return confirm('Supprimer ce document ?')">
<button type="submit" class="btn btn-sm btn-outline-danger" title="Supprimer">
<i class="bi bi-trash"></i>
</button>

View file

@ -142,7 +142,7 @@
</div>
{% if show_trashed %}
<div class="mt-1">
<form method="POST" action="{{ url_for('interventions.restore', id=interv.id) }}" style="display:inline;">
<form method="POST" action="{{ url_for('interventions_planning.restore', id=interv.id) }}" style="display:inline;">
<button type="submit" class="btn btn-sm btn-outline-success" onclick="return confirm('Restaurer cette intervention ?')"><i class="bi bi-arrow-counterclockwise"></i> Restaurer</button>
</form>
</div>
@ -186,4 +186,4 @@
.bg-purple { background-color: #6f42c1 !important; }
.intervention-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important; }
</style>
{% endblock %}
{% endblock %}

View file

@ -135,7 +135,7 @@
</td>
<td>
{% if eq.room %}
<a href="{{ url_for('equipments.room_detail', id=eq.room.id) }}">
<a href="{{ url_for('rooms.detail', id=eq.room.id) }}">
{{ eq.room.name }}
</a>
{% elif eq.location %}