fix: Récupération d'un template donné

This commit is contained in:
N3WT DE COMPET
2025-03-01 16:05:16 +01:00
parent 085c086ec7
commit 9b13d52e8d
5 changed files with 8 additions and 65 deletions

View File

@ -76,7 +76,7 @@ export const editRegistrationFileGroup = async (groupId, groupData, csrfToken) =
};
export const fetchRegistrationFileFromGroup = async (groupId) => {
const response = await fetch(`${BE_SUBSCRIPTION_REGISTRATIONFILE_GROUPS_URL}/${groupId}/registrationFiles`, {
const response = await fetch(`${BE_SUBSCRIPTION_REGISTRATIONFILE_GROUPS_URL}/${groupId}/templates`, {
credentials: 'include',
headers: {
'Accept': 'application/json',

View File

@ -307,7 +307,7 @@ export default function FilesGroupsManagement({ csrfToken }) {
/>
<div className="mt-8 mb-4">
<div className="flex justify-between items-center mb-4">
<h2 className="text-xl font-bold">Groupes de templateMasters</h2>
<h2 className="text-xl font-bold">Groupes de fichiers</h2>
<button
onClick={() => setIsGroupModalOpen(true)}
className="flex items-center bg-blue-600 text-white p-2 rounded-full shadow hover:bg-blue-900 transition duration-200"
@ -326,7 +326,7 @@ export default function FilesGroupsManagement({ csrfToken }) {
{groups.length > 0 && (
<div className="mt-8">
<div className="flex justify-between items-center mb-4">
<h2 className="text-xl font-bold">templateMasters</h2>
<h2 className="text-xl font-bold">Fichiers</h2>
<div className="flex items-center gap-4">
<select
className="border rounded p-2"