Repository navigation
Commit c411cf1
committed
Split the WAYF remember-my-choice template per mode
# If applied, this commit will...
Render the global and the per-SP remember-my-choice checkbox from two
separate templates, selected by a thin if/elseif in rememberChoice.html.twig.
# Why is this change needed?
Prior to this change, one template held both variants and nested the per-SP
checkbox inside the rememberChoiceFeature flag. The two modes are mutually
exclusive, so the per-SP variant should not depend on the flag of the global
variant, and the nesting hid that either/or relationship.
# How does it address the issue?
This change moves each variant into its own partial
(rememberChoiceGlobal and rememberChoicePerIdp). The per-SP variant is
rendered whenever rememberChoicePerIdp is set, the global variant only
otherwise. The markup of both variants is unchanged. The render test now also
covers the per-SP variant without the global flag and the case where both are
disabled.
# Provide links to any relevant tickets, articles or other resources
Review feedback on the remember-my-choice checkbox pull request.1 parent 059e6ca commit c411cf1
4 files changed
Lines changed: 29 additions & 14 deletions
File tree
- tests/unit/OpenConext/EngineBlockBundle/Twig
- theme/base/templates/modules/Authentication/View/Proxy/Partials/WAYF
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
60 | 67 | | |
61 | 68 | | |
62 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
14 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments