Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
authentification
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
lib
unicaen
authentification
Commits
3c666eaf
You need to sign in or sign up before continuing.
Commit
3c666eaf
authored
2 years ago
by
Thibaut Vallee
Browse files
Options
Downloads
Patches
Plain Diff
correctif du bug sur les menu de connection
parent
6c2e56cd
No related branches found
No related tags found
No related merge requests found
Pipeline
#18856
passed
2 years ago
Stage: publish
Changes
2
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
view/unicaen-authentification/auth/login-tabs.phtml
+18
-19
18 additions, 19 deletions
view/unicaen-authentification/auth/login-tabs.phtml
view/unicaen-authentification/auth/login.phtml
+3
-3
3 additions, 3 deletions
view/unicaen-authentification/auth/login.phtml
with
21 additions
and
22 deletions
view/unicaen-authentification/auth/login-tabs.phtml
+
18
−
19
View file @
3c666eaf
<?php
use
UnicaenAuth\Authentication\Adapter
;
use
UnicaenAuth\Form\LoginForm
;
use
UnicaenAuth\View\Helper\AbstractConnectViewHelper
;
use
UnicaenAuth
entification
\Authentication\Adapter
;
use
UnicaenAuth
entification
\Form\LoginForm
;
use
UnicaenAuth
entification
\View\Helper\AbstractConnectViewHelper
;
/**
* Génération des différents types de formulaire de connexion activés.
...
...
@@ -26,7 +26,6 @@ $form->setAttributes([
$helpers
=
[];
foreach
(
$types
as
$t
=>
$config
)
{
$helpers
[
$t
]
=
$this
->
connect
(
$t
,
$form
);
/** @see \UnicaenAuth\View\Helper\ConnectViewHelper */
}
$activeHelper
=
null
;
...
...
@@ -37,9 +36,11 @@ $activeHelper = null;
<ul
class=
"nav nav-tabs card-header-tabs"
role=
"tablist"
>
<?php
foreach
(
$helpers
as
$key
=>
$helper
)
:
?>
<?php
$query
=
$redirect
?
[
'redirect'
=>
$redirect
]
:
[];
if
(
$key
===
$type
)
{
$activeClass
=
'active'
;
$ariaSelected
=
'true'
;
$activeHelper
=
$helper
;
}
else
{
if
(
isset
(
$forms
[
$key
])
&&
$forms
[
$key
]
->
isHidden
())
{
continue
;
...
...
@@ -49,27 +50,25 @@ $activeHelper = null;
}
?>
<li
role=
"presentation"
class=
"nav-item"
>
<button
class=
"nav-link
<?=
$activeClass
?>
"
id=
"
<?=
$key
?>
-tab"
data-bs-toggle=
"tab"
data-bs-target=
"#
<?=
$key
?>
"
type=
"button"
role=
"tab"
aria-controls=
"
<?=
$key
?>
"
aria-selected=
"
<?=
$ariaSelected
?>
"
>
<a
class=
"nav-link
<?=
$activeClass
?>
"
type=
"button"
role=
"tab"
aria-selected=
"
<?=
$ariaSelected
?>
"
href=
"
<?=
$this
->
url
(
'zfcuser/login'
,
[
'type'
=>
$key
],
[
'query'
=>
$query
])
?>
"
>
<?=
$helper
->
getTitle
()
?>
</
button
>
</
a
>
</li>
<?php
endforeach
?>
</ul>
</div>
<div
class=
"card-body tab-content"
>
<?php
foreach
(
$helpers
as
$key
=>
$helper
)
:
?>
<?php
$activeClass
=
(
$key
===
$type
)
?
'active'
:
''
;
?>
<div
class=
"tab-pane
<?=
$activeClass
?>
"
id=
"
<?=
$key
?>
"
role=
"tabpanel"
aria-labelledby=
"
<?=
$key
?>
-tab"
>
<?php
$title
=
$helper
->
getTitle
();
$helper
->
setTitle
(
""
);
// pour éviter que le title soit répété
<div
class=
"tab-pane active"
role=
"tabpanel"
>
<?php
if
(
isset
(
$activeHelper
))
{
$activeHelper
->
setTitle
(
""
);
// pour éviter que le title soit répété
echo
$activeHelper
;
}
?>
<?=
(
string
)
$helper
?>
</div>
<?php
endforeach
?>
</div>
</div>
This diff is collapsed.
Click to expand it.
view/unicaen-authentification/auth/login.phtml
+
3
−
3
View file @
3c666eaf
...
...
@@ -8,11 +8,11 @@
* @var string $redirect URL demandée nécessitant authentification
* @var bool $enableRegistration
*
* @see \UnicaenAuth\Controller\AuthController::loginAction()
* @see \UnicaenAuth
entification
\Controller\AuthController::loginAction()
*/
use
Application\View\Renderer\PhpRenderer
;
use
UnicaenAuth\Form\LoginForm
;
use
UnicaenAuth
entification
\Form\LoginForm
;
use
Laminas\Form\Form
;
$this
->
headTitle
(
"Connexion"
)
?>
...
...
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