Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Gestion des stages Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fatima Ezzahra Majidi
Gestion des stages Frontend
Merge requests
!4
ajout de Update et Delete et des formulaires de Update
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
ajout de Update et Delete et des formulaires de Update
master
into
main
Overview
0
Commits
1
Pipelines
0
Changes
16
Merged
Fatima Ezzahra Majidi
requested to merge
master
into
main
2 months ago
Overview
0
Commits
1
Pipelines
0
Changes
16
Expand
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
1aaee02b
1 commit,
2 months ago
16 files
+
746
−
32
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
16
Search (e.g. *.vue) (Ctrl+P)
src/components/CandidacyForm.jsx
+
11
−
3
Options
import
React
,
{
useState
,
useEffect
}
from
"
react
"
;
import
{
Navigate
}
from
"
react-router-dom
"
;
const
CandidacyForm
=
()
=>
{
const
[
students
,
setStudents
]
=
useState
([]);
@@ -48,6 +49,10 @@ const CandidacyForm = () => {
})
.
catch
((
err
)
=>
console
.
error
(
"
Error:
"
,
err
));
};
// Handle cancel button
const
handleCancel
=
()
=>
{
Navigate
(
"
/candidatures
"
);
// Redirect back to candidacy list
};
return
(
<
div
className
=
"container mt-4"
>
@@ -111,9 +116,12 @@ const CandidacyForm = () => {
</
div
>
{
/* Submit Button */
}
<
button
type
=
"submit"
className
=
"btn btn-primary"
>
Ajouter Candidature
</
button
>
<
div
className
=
"d-flex gap-2"
>
<
button
type
=
"submit"
className
=
"btn btn-primary"
>
Ajouter Candidature
</
button
>
<
button
type
=
"button"
className
=
"btn btn-secondary"
onClick
=
{
handleCancel
}
>
Annuler
</
button
>
</
div
>
</
form
>
</
div
>
);
Loading