Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
canap
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
Model registry
Operate
Environments
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
SI-FSD
canap
Commits
563bffa4
Commit
563bffa4
authored
6 years ago
by
nicrausaz
Browse files
Options
Downloads
Patches
Plain Diff
remove animations
parent
c4514f45
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
canapEPFL/README.md
+2
-2
2 additions, 2 deletions
canapEPFL/README.md
canapEPFL/cible.php
+7
-3
7 additions, 3 deletions
canapEPFL/cible.php
canapEPFL/script.js
+13
-10
13 additions, 10 deletions
canapEPFL/script.js
canapEPFL/templates/errorTextEdit.php
+2
-2
2 additions, 2 deletions
canapEPFL/templates/errorTextEdit.php
with
24 additions
and
17 deletions
canapEPFL/README.md
+
2
−
2
View file @
563bffa4
# Améliorations en cours
-
[x] Utiliser la nouvelle charte 2018
-
[x] Adapter pour ajouter les postulations dans une DB
-
[x] Ajouter une page pour voir / supprimer
sa /
ses postulation
(s)
-
[x] Ajouter une page pour voir / supprimer ses postulation
s
-
[x] Commentaires et section du code
-
[ ] Editer ses postulation
-
[ ] Editer ses postulation
s
# Améliorations possibles du formulaire canap.epfl.ch
...
...
This diff is collapsed.
Click to expand it.
canapEPFL/cible.php
+
7
−
3
View file @
563bffa4
...
...
@@ -45,9 +45,13 @@
}
}
else
{
$_SESSION
[
'formError'
]
=
true
;
$_SESSION
[
'postedForm'
]
=
$_POST
;
$_SESSION
[
'files'
]
=
$_FILES
;
include
(
"templates/errorText.php"
);
if
(
isset
(
$_GET
[
'edit'
]))
{
include
(
"templates/errorTextEdit.php"
);
}
else
{
$_SESSION
[
'postedForm'
]
=
$_POST
;
$_SESSION
[
'files'
]
=
$_FILES
;
include
(
"templates/errorText.php"
);
}
}
?>
</body>
...
...
This diff is collapsed.
Click to expand it.
canapEPFL/script.js
+
13
−
10
View file @
563bffa4
...
...
@@ -58,7 +58,7 @@ function addChildren(parentId, maxItems, childTemplate, addButtonId) {
var
fullTemplate
=
childTemplate
.
replace
(
/
\{(
.*
?)\}
/g
,
i
);
$
(
parentId
).
append
(
fullTemplate
);
if
(
i
==
maxItems
-
1
)
{
$
(
addButtonId
).
hide
(
750
);
$
(
addButtonId
).
hide
();
}
}
}
...
...
@@ -111,7 +111,7 @@ function initButtonsAction() {
}
});
$
(
'
#editPost
'
).
click
(
function
()
{
document
.
location
.
href
=
"
form.php?edit
"
;
document
.
location
.
href
=
"
/
form.php?edit
"
;
});
$
(
'
#cancelEditBtn
'
).
click
(
function
()
{
document
.
location
.
href
=
"
viewpostulation.php
"
;
...
...
@@ -128,6 +128,9 @@ function initButtonsAction() {
$
(
'
#retourFormulaire
'
).
click
(
function
()
{
history
.
go
(
-
1
);
});
$
(
'
#retourFormulaireEdit
'
).
click
(
function
()
{
document
.
location
.
href
=
"
/form.php?edit
"
;
});
$
(
'
#retourAccueil
'
).
click
(
function
()
{
document
.
location
.
href
=
"
/index.php
"
;
});
...
...
@@ -157,23 +160,23 @@ function initAddChildButtons() {
+
'
<label for="annexe
'
+
nextIndex
+
'
" class="btn btn-secondary btn-sm icon-right">Choisir...</label><br>
'
+
'
<small class="error" class="form-text text-muted"></small></td></tr>
'
);
if
(
nextIndex
==
9
)
{
$
(
'
#addInputFile
'
).
hide
(
750
);
$
(
'
#addInputFile
'
).
hide
();
}
}
});
}
function
setMajState
()
{
$
(
'
#maj1
'
)[
0
].
checked
?
$
(
"
#representants
"
).
show
(
1000
)
:
$
(
"
#representants
"
).
hide
(
1000
);
$
(
'
#maj1
'
)[
0
].
checked
?
$
(
"
#representants
"
).
show
()
:
$
(
"
#representants
"
).
hide
();
}
function
setDejaCandState
()
{
if
(
$
(
'
#dejaCand1
'
)[
0
].
checked
)
{
$
(
"
#dejaCandAnnee
"
).
hide
(
750
);
$
(
"
#dejaCandAnnee
"
).
hide
();
$
(
"
#dejaCandAnneeInput
"
).
val
(
""
);
$
(
"
#dejaCandError
"
).
html
(
""
);
}
else
{
$
(
"
#dejaCandAnnee
"
).
show
(
750
);
$
(
"
#dejaCandAnnee
"
).
show
();
}
}
...
...
@@ -265,10 +268,10 @@ function showListJob(lieu) {
}
function
showPolyAndInfoDivs
(
selectedFormation
)
{
if
(
selectedFormation
!=
"
menu
"
)
{
$
(
"
#all
"
).
show
(
1000
);
selectedFormation
==
"
informaticien
"
?
$
(
"
#infoOnly
"
).
show
(
1000
)
:
$
(
"
#infoOnly
"
).
hide
(
500
);
selectedFormation
==
"
informaticien
"
?
$
(
"
#griTest
"
).
show
(
1000
)
:
$
(
"
#griTest
"
).
hide
(
500
);
selectedFormation
==
"
polyMecanicien
"
?
$
(
"
#polyOnly
"
).
show
(
1000
)
:
$
(
"
#polyOnly
"
).
hide
(
500
);
$
(
"
#all
"
).
show
();
selectedFormation
==
"
informaticien
"
?
$
(
"
#infoOnly
"
).
show
()
:
$
(
"
#infoOnly
"
).
hide
();
selectedFormation
==
"
informaticien
"
?
$
(
"
#griTest
"
).
show
()
:
$
(
"
#griTest
"
).
hide
();
selectedFormation
==
"
polyMecanicien
"
?
$
(
"
#polyOnly
"
).
show
()
:
$
(
"
#polyOnly
"
).
hide
();
}
}
...
...
This diff is collapsed.
Click to expand it.
canapEPFL/templates/errorTextEdit.php
+
2
−
2
View file @
563bffa4
...
...
@@ -5,12 +5,12 @@
if
(
!
$_POST
&&
!
$_FILES
)
{
echo
"<li>Fichiers fournis trop volumineux ! <small>(Taille recommandée env. 2Mo)</small></li>"
;
}
else
{
echo
"<li>"
.
$_SESSION
[
'edit_error'
]
.
"</li>"
;
echo
$_SESSION
[
'edit_error'
]
!=
''
?
"<li>"
.
$_SESSION
[
'edit_error'
]
.
"</li>"
:
''
;
foreach
(
$validator
->
errors
()
as
$error
=>
$errorVal
)
{
echo
"<li>
$errorVal
</li>"
;
}
}
?>
</div>
<button
type=
"button"
class=
"btn btn-primary btn-sm mt-3 mb-2"
id=
"retourFormulaire"
>
Retour au formulaire
</button>
<button
type=
"button"
class=
"btn btn-primary btn-sm mt-3 mb-2"
id=
"retourFormulaire
Edit
"
>
Retour au formulaire
</button>
</main>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment