Refactor routes Flask en Blueprints
This commit is contained in:
@@ -15,7 +15,7 @@ header_title %}Tableau de bord{% endblock %} {% block content %}
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-5 mb-8">
|
||||
<!-- btn 1 -->
|
||||
<a
|
||||
href="{{ url_for('main.gestion_actions') }}"
|
||||
href="{{ url_for('actions.gestion_actions') }}"
|
||||
class="py-6 px-6 bg-gray-950 hover:bg-blue-600/30 border-2 border-gray-800 hover:border-blue-500 rounded-xl text-white text-lg font-bold tracking-wide transition-all duration-200 flex items-center justify-center shadow-lg hover:scale-[1.01]"
|
||||
>
|
||||
1. Gérer les actions
|
||||
@@ -23,7 +23,7 @@ header_title %}Tableau de bord{% endblock %} {% block content %}
|
||||
|
||||
<!-- btn 2 -->
|
||||
<a
|
||||
href="{{ url_for('main.gestion_ordres') }}"
|
||||
href="{{ url_for('ordres.gestion_ordres') }}"
|
||||
class="py-6 px-6 bg-gray-950 hover:bg-blue-600/30 border-2 border-gray-800 hover:border-blue-500 rounded-xl text-white text-lg font-bold tracking-wide transition-all duration-200 flex items-center justify-center shadow-lg hover:scale-[1.01]"
|
||||
>
|
||||
2. Ordres
|
||||
@@ -31,7 +31,7 @@ header_title %}Tableau de bord{% endblock %} {% block content %}
|
||||
|
||||
<!-- btn 3 -->
|
||||
<a
|
||||
href="{{ url_for('main.gestion_comptes') }}"
|
||||
href="{{ url_for('comptes.gestion_comptes') }}"
|
||||
class="py-6 px-6 bg-gray-950 hover:bg-blue-600/30 border-2 border-gray-800 hover:border-blue-500 rounded-xl text-white text-lg font-bold tracking-wide transition-all duration-200 flex items-center justify-center shadow-lg hover:scale-[1.01]"
|
||||
>
|
||||
3. Comptes
|
||||
@@ -39,7 +39,7 @@ header_title %}Tableau de bord{% endblock %} {% block content %}
|
||||
|
||||
<!-- btn 4 -->
|
||||
<a
|
||||
href="{{ url_for('main.gestion_societes') }}"
|
||||
href="{{ url_for('societes.gestion_societes') }}"
|
||||
class="py-6 px-6 bg-gray-950 hover:bg-blue-600/30 border-2 border-gray-800 hover:border-blue-500 rounded-xl text-white text-lg font-bold tracking-wide transition-all duration-200 flex items-center justify-center shadow-lg hover:scale-[1.01]"
|
||||
>
|
||||
4. Gestion sociétés
|
||||
@@ -47,7 +47,7 @@ header_title %}Tableau de bord{% endblock %} {% block content %}
|
||||
|
||||
<!-- btn 5 -->
|
||||
<a
|
||||
href="{{ url_for('main.gestion_utilisateurs') }}"
|
||||
href="{{ url_for('utilisateurs.gestion_utilisateurs') }}"
|
||||
class="py-6 px-6 bg-gray-950 hover:bg-blue-600/30 border-2 border-gray-800 hover:border-blue-500 rounded-xl text-white text-lg font-bold tracking-wide transition-all duration-200 flex items-center justify-center shadow-lg hover:scale-[1.01]"
|
||||
>
|
||||
5. Gestion utilisateurs
|
||||
@@ -55,7 +55,7 @@ header_title %}Tableau de bord{% endblock %} {% block content %}
|
||||
|
||||
<!-- btn 6 -->
|
||||
<a
|
||||
href="{{ url_for('main.analyse') }}"
|
||||
href="{{ url_for('analyse.analyse') }}"
|
||||
class="py-6 px-6 bg-gray-950 hover:bg-blue-600/30 border-2 border-gray-800 hover:border-blue-500 rounded-xl text-white text-lg font-bold tracking-wide transition-all duration-200 flex items-center justify-center shadow-lg hover:scale-[1.01]"
|
||||
>
|
||||
6. Stat historique
|
||||
@@ -63,7 +63,7 @@ header_title %}Tableau de bord{% endblock %} {% block content %}
|
||||
|
||||
<!-- btn 7 -->
|
||||
<a
|
||||
href="{{ url_for('main.gestion_import_export_actions_csv') }}"
|
||||
href="{{ url_for('historique.gestion_import_export_actions_csv') }}"
|
||||
class="py-6 px-6 bg-gray-950 hover:bg-blue-600/30 border-2 border-gray-800 hover:border-blue-500 rounded-xl text-white text-lg font-bold tracking-wide transition-all duration-200 flex items-center justify-center shadow-lg hover:scale-[1.01]"
|
||||
>
|
||||
7. Import/Export Actions CSV
|
||||
@@ -71,7 +71,7 @@ header_title %}Tableau de bord{% endblock %} {% block content %}
|
||||
|
||||
<!-- btn 8 -->
|
||||
<a
|
||||
href="{{ url_for('main.gestion_import_historique_csv') }}"
|
||||
href="{{ url_for('historique.gestion_import_historique_csv') }}"
|
||||
class="py-6 px-6 bg-gray-950 hover:bg-blue-600/30 border-2 border-gray-800 hover:border-blue-500 rounded-xl text-white text-lg font-bold tracking-wide transition-all duration-200 flex items-center justify-center shadow-lg hover:scale-[1.01]"
|
||||
>
|
||||
8. Import historique CSV
|
||||
|
||||
Reference in New Issue
Block a user