Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OSE
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
OSE
Commits
39dfb693
Commit
39dfb693
authored
Jul 21, 2015
by
lecluse
Browse files
Options
Downloads
Patches
Plain Diff
Début de refonte de la page d'accueil
parent
c950751c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
module/Application/src/Application/Controller/IndexController.php
+9
-6
9 additions, 6 deletions
...pplication/src/Application/Controller/IndexController.php
module/Application/view/application/index/index.phtml
+73
-59
73 additions, 59 deletions
module/Application/view/application/index/index.phtml
with
82 additions
and
65 deletions
module/Application/src/Application/Controller/IndexController.php
+
9
−
6
View file @
39dfb693
...
...
@@ -13,8 +13,9 @@ class IndexController extends AbstractActionController
{
use
\Application\Service\Traits\ContextAwareTrait
,
\Application\Service\Traits\AnneeAwareTrait
,
IntervenantAwareTrait
;
IntervenantAwareTrait
;
/**
*
...
...
@@ -37,6 +38,8 @@ class IndexController extends AbstractActionController
return
$view
;
}
public
function
changementAnneeAction
()
{
/* Prise en compte du changement d'année!! */
...
...
@@ -52,11 +55,11 @@ class IndexController extends AbstractActionController
}
}
return
[];
}
/**
* @return UserContext
*/
...
...
This diff is collapsed.
Click to expand it.
module/Application/view/application/index/index.phtml
+
73
−
59
View file @
39dfb693
<?php
$this
->
headTitle
(
"Accueil"
)
?>
<?php
/* @var $role \Application\Acl\Role */
<?php
echo
$this
->
messenger
()
->
addMessagesFromFlashMessenger
()
?>
$this
->
headTitle
(
"Accueil"
);
echo
$this
->
messenger
()
->
addMessagesFromFlashMessenger
();
?>
<div
class=
"jumbotron"
>
<h1>
OSE
<small>
Organisation des Services d'Enseignement
</small></h1>
<h1>
OSE
<small>
Organisation des Services d'Enseignement
</small>
</h1>
<p
class=
"lead"
>
Bienvenue dans l'application de saisie des enseignements de l'université de Caen.
</p>
<p>
Année
<?php
echo
$annee
?>
.
</p>
<?php
if
((
$identity
=
$this
->
identity
()))
:
?
>
<p>
Année
<?php
echo
$annee
?>
.
</p
>
<?php
$message
=
null
;
$url
=
$this
->
url
(
'home'
);
$label
=
$this
->
translate
(
"Accueil..."
);
if
(
$role
instanceof
\Application\Acl\IntervenantRole
)
{
if
(
$role
){
if
(
$role
->
isPerimetreIntervenant
()){
$intervenant
=
$role
->
getIntervenant
();
if
(
$intervenant
->
getStatut
()
->
getNonAutorise
()){
$message
=
"<div class='alert alert-danger'> Votre statut ne vous permet pas de vous connecter à OSE.</div>"
;
}
elseif
(
$intervenant
instanceof
\Application\Entity\Db\IntervenantExterieur
)
{
$message
=
null
;
}
elseif
(
$intervenant
instanceof
\Application\Entity\Db\IntervenantPermanent
)
{
$message
=
null
;
}
?>
<p><div
class=
'alert alert-danger'
>
Votre statut ne vous permet pas de vous connecter à OSE.
</div></p>
<?php
}
else
{
$wf
=
$this
->
workflow
(
$intervenant
,
$role
)
->
getWorkflow
();
if
(
$wf
->
getSteps
())
{
$step
=
$wf
->
getCurrentStep
()
?:
$wf
->
getLastStep
();
/* @var $wf \Application\Service\Workflow\WorkflowIntervenantExterieur */
$step
=
$wf
->
getCurrentStep
()
?:
$wf
->
getLastStep
();
/* @var $wf \Application\Service\Workflow\WorkflowIntervenantExterieur */
$url
=
$wf
->
getStepUrl
(
$step
);
$label
=
$this
->
translate
(
$step
->
getLabel
(
$role
));
?>
<p><a
class=
"btn btn-primary btn-large"
href=
"
<?php
echo
$url
?>
"
>
<?php
echo
$label
?>
</a></p>
<?php
}
}
elseif
(
$role
instanceof
\Application\Acl\ComposanteRole
)
{
}
elseif
(
$role
->
isPerimetreComposante
())
{
$url
=
$this
->
url
(
'service/resume'
);
$label
=
$this
->
translate
(
"Tableau synthétique des enseignements concernant ma composante..."
);
?>
<p><a
class=
"btn btn-primary btn-large"
href=
"
<?php
echo
$url
?>
"
>
<?php
echo
$label
?>
</a></p>
<?php
}
?>
<?php
if
(
$message
)
:
?>
<p>
<?php
echo
$message
?>
</p>
<?php
endif
;
?>
<p><a
class=
"btn btn-primary btn-large"
href=
"
<?php
echo
$url
?>
"
>
<?php
echo
$label
?>
</a></p>
<?php
else
:
?>
}
else
{
<a
class=
"btn btn-success btn-large"
href=
"
<?php
echo
$this
->
url
(
'zfcuser/login'
)
?>
"
>
<?php
echo
$this
->
translate
(
'Connectez-vous...'
)
?>
</a>
?>
<a
class=
"btn btn-success btn-large"
href=
"
<?php
echo
$this
->
url
(
'zfcuser/login'
)
?>
"
>
<?php
echo
$this
->
translate
(
'Connectez-vous...'
)
?>
</a>
<?php
<?php
endif
;
?>
}
?>
</div>
<!-------------------------- Indicateurs (AJAX) -------------------------->
<?php
if
(
isset
(
$this
->
abonnementsUrl
))
:
?>
<script>
$
(
function
()
{
$
(
function
()
{
var
url
=
'
<?php
echo
$this
->
abonnementsUrl
?>
'
;
$
(
"
.abonnements
"
).
hide
();
$
(
"
#abonnements
"
).
load
(
url
,
[],
function
()
{
$
(
"
#abonnements
"
).
load
(
url
,
[],
function
()
{
$
(
"
.abonnements
"
).
fadeIn
();
$
(
this
).
hide
().
fadeIn
();
});
});
</script>
<h2
class=
"abonnements"
>
Vos indicateurs
<a
class=
"btn btn-default btn-sm pull-right"
href=
"
<?php
echo
$this
->
url
(
'indicateur'
)
?>
"
>
Gérer vos abonnements à des indicateurs
</a></h2>
<div
id=
"abonnements"
><div
class=
"loading"
></div></div>
<h2
class=
"abonnements"
>
Vos indicateurs
<a
class=
"btn btn-default btn-sm pull-right"
href=
"
<?php
echo
$this
->
url
(
'indicateur'
)
?>
"
>
Gérer vos abonnements à des
indicateurs
</a></h2>
<div
id=
"abonnements"
>
<div
class=
"loading"
></div>
</div>
<?php
endif
?>
<!----------------------------- Feuille de route --------------------------->
...
...
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