diff --git a/app/but/jury_export.py b/app/but/jury_export.py
new file mode 100644
index 000000000..ccafaf68a
--- /dev/null
+++ b/app/but/jury_export.py
@@ -0,0 +1,26 @@
+##############################################################################
+# ScoDoc
+# Copyright (c) 1999 - 2023 Emmanuel Viennet. All rights reserved.
+# See LICENSE
+##############################################################################
+
+"""Feuille d'export Jury BUT
+"""
+import datetime
+
+from flask import render_template
+
+from app.models import FormSemestre, FormSemestreInscription
+from app.views import ScoData
+
+
+def feuille_preparation_jury_but(formsemestre_id: int):
+ formsemestre: FormSemestre = FormSemestre.query.filter_by(
+ id=formsemestre_id
+ ).first_or_404()
+ return render_template(
+ "but/jury_export.j2",
+ datetime=datetime,
+ formsemestre=formsemestre,
+ sco=ScoData(formsemestre=formsemestre),
+ )
diff --git a/app/scodoc/sco_formsemestre_status.py b/app/scodoc/sco_formsemestre_status.py
index 767f5a2fa..ef79b77bf 100755
--- a/app/scodoc/sco_formsemestre_status.py
+++ b/app/scodoc/sco_formsemestre_status.py
@@ -444,6 +444,12 @@ def formsemestre_status_menubar(formsemestre: FormSemestre) -> str:
"args": {"formsemestre_id": formsemestre_id},
"enabled": not formsemestre.formation.is_apc(),
},
+ {
+ "title": "Générer feuille préparation Jury (BUT)",
+ "endpoint": "notes.feuille_preparation_jury_but",
+ "args": {"formsemestre_id": formsemestre_id},
+ "enabled": formsemestre.formation.is_apc(),
+ },
{
"title": "Éditer les PV et archiver les résultats",
"endpoint": "notes.formsemestre_archive",
diff --git a/app/templates/but/jury_export.j2 b/app/templates/but/jury_export.j2
new file mode 100644
index 000000000..8d0dc8f32
--- /dev/null
+++ b/app/templates/but/jury_export.j2
@@ -0,0 +1,53 @@
+{# -*- mode: jinja-html -*- #}
+{% extends "sco_page.j2" %}
+
+{% block styles %}
+{{super()}}
+{% endblock %}
+
+{% block app_content %}
+
+ {{ formsemestre.id }}
+
+
+{% endblock %}
+
+{% block scripts %}
+ {{super()}}
+
+{# #}
+
+
+
+{% endblock %}
diff --git a/app/views/notes.py b/app/views/notes.py
index c7a4613b0..761585e9c 100644
--- a/app/views/notes.py
+++ b/app/views/notes.py
@@ -51,6 +51,7 @@ from app.but import (
jury_but_pv,
jury_but_validation_auto,
jury_but_view,
+ jury_export,
)
from app.but.forms import jury_but_forms
@@ -2969,6 +2970,11 @@ sco_publish(
sco_prepajury.feuille_preparation_jury,
Permission.ScoView,
)
+sco_publish(
+ "/feuille_preparation_jury_but",
+ jury_export.feuille_preparation_jury_but,
+ Permission.ScoView,
+)
sco_publish(
"/formsemestre_archive",
sco_archives.formsemestre_archive,