Refactor routes Flask en Blueprints
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
<!-- Formulaire combiné / Filtre Année + Société -->
|
||||
<form
|
||||
method="POST"
|
||||
action="{{ url_for('main.gestion_ordres') }}"
|
||||
action="{{ url_for('ordres.gestion_ordres') }}"
|
||||
class="flex items-center gap-2 m-0"
|
||||
>
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
||||
@@ -80,7 +80,7 @@
|
||||
|
||||
<form
|
||||
method="POST"
|
||||
action="{{ url_for('main.gestion_ordres') }}"
|
||||
action="{{ url_for('ordres.gestion_ordres') }}"
|
||||
class="m-0"
|
||||
>
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
||||
@@ -112,7 +112,7 @@
|
||||
</button>
|
||||
|
||||
<a
|
||||
href="{{ url_for('main.menu') }}"
|
||||
href="{{ url_for('menu.menu') }}"
|
||||
class="px-4 py-2 bg-gray-800 hover:bg-gray-700 text-gray-200 text-sm font-medium rounded-lg transition duration-200"
|
||||
>
|
||||
Retour au menu
|
||||
@@ -304,7 +304,7 @@
|
||||
<form
|
||||
id="form-modal-ordre"
|
||||
method="POST"
|
||||
action="{{ url_for('main.creer_ordre_traitement') }}"
|
||||
action="{{ url_for('ordres.creer_ordre_traitement') }}"
|
||||
class="space-y-4"
|
||||
>
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
||||
@@ -599,7 +599,7 @@
|
||||
const btnValider = document.getElementById("btn-valider");
|
||||
|
||||
modal.classList.remove("hidden");
|
||||
form.action = "{{ url_for('main.creer_ordre_traitement') }}";
|
||||
form.action = "{{ url_for('ordres.creer_ordre_traitement') }}";
|
||||
title.innerHTML =
|
||||
'<i class="fa-solid fa-plus-circle text-emerald-500"></i> Créer un Nouvel Ordre';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user