Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
archived-simpleSAMLphp
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
Container 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
Trust and Identity Incubator
personal-profile-page
archived-simpleSAMLphp
Commits
77a06cb1
Commit
77a06cb1
authored
1 year ago
by
Marko Ivancic
Browse files
Options
Downloads
Patches
Plain Diff
Update action buttons template
parent
4c562679
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#83981
passed
1 year ago
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config-templates/module_accounting.php
+9
-7
9 additions, 7 deletions
config-templates/module_accounting.php
templates/user/includes/_action-buttons.twig
+8
-1
8 additions, 1 deletion
templates/user/includes/_action-buttons.twig
with
17 additions
and
8 deletions
config-templates/module_accounting.php
+
9
−
7
View file @
77a06cb1
...
...
@@ -252,14 +252,16 @@ $config = [
/**
* Enable or disable 'action buttons'. Action buttons are displayed on 'Personal data' page, and can be used to
* provide links to relevant endpoint
s, for exampl
e to change a password, send email to support, etc.
* provide
, for example,
links to relevant endpoint
lik
e to change a password, send email to support, etc.
*
* Note that you
can easily
override the action buttons Twig template using standard SimpleSAMLphp
*
custom theming
features: https://simplesamlphp.org/docs/stable/simplesamlphp-theming
* Note that you
should
override the action buttons Twig template using standard SimpleSAMLphp
custom theming
* features: https://simplesamlphp.org/docs/stable/simplesamlphp-theming
*
* The path to the action buttons template file is:
* modules/accounting/templates/user/includes/_action-buttons.twig, so when creating a custom theme file,
* place it in: modules/mymodule/themes/fancytheme/accounting/user/includes/_action-buttons.twig
* The path to the action buttons template file is: modules/accounting/templates/user/includes/_action-buttons.twig.
* You can check the source of that file to see a sample dropdown, and a comment about the available variables.
*
* So, when creating a custom theme action buttons file, place it in:
* modules/{mymodule}/themes/{fancytheme}/accounting/user/includes/_action-buttons.twig
*/
ModuleConfiguration
::
OPTION_ACTION_BUTTONS_ENABLED
=>
tru
e
,
ModuleConfiguration
::
OPTION_ACTION_BUTTONS_ENABLED
=>
fals
e
,
];
This diff is collapsed.
Click to expand it.
templates/user/includes/_action-buttons.twig
+
8
−
1
View file @
77a06cb1
{# @var normalizedAttributes array User attributes #}
{#
Example code to dump user attribute array to the screen:
{{ normalizedAttributes|json_encode(constant('JSON_PRETTY_PRINT')) }}
#}
<div
class=
"dropdown"
>
<button
class=
"dropbtn"
>
{%
trans
%}
TODO Actions
{%
endtrans
%}
▾
</button>
<div
class=
"dropdown-content"
>
<a
href=
"#"
>
{%
trans
%}
Download data
{%
endtrans
%}
</a>
<a
href=
"#"
>
{%
trans
%}
Custom action
{%
endtrans
%}
</a>
</div>
</div>
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