-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Configure helpdesk home page illustration #19464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Configure helpdesk home page illustration #19464
Conversation
81b0091
to
46d89d4
Compare
46d89d4
to
7c92cbc
Compare
templates/pages/admin/helpdesk_home_custom_scene_config.html.twig
Outdated
Show resolved
Hide resolved
templates/pages/admin/helpdesk_home_custom_scene_config.html.twig
Outdated
Show resolved
Hide resolved
{% do call('Dropdown::showFromArray', [ | ||
side.field, | ||
options, | ||
{ | ||
value: side.config, | ||
width: "100%", | ||
aria_label: side.dropdown_label, | ||
} | ||
]) %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a dropdownArrayField
macro.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't want the full macro, I just need a dropdown.
|
||
if ($value == self::SCENE_DEFAULT) { | ||
// Reset default value (empty string) | ||
$input[$field] = ""; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe storing default
in DB instead of an empty string would be easier to read.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not ideal because the field is name "custom_scene_left/right".
An empty value make sense to mean there are no custom scene defined.
If you want to be extra precise, we need an extra field that store the behavior : default/custom/-2.
This would be clearer but come at the cost of adding 2 extra fields to a table that already have 124 columns.
I'm not against it, just let me know what you want.
Co-authored-by: Cédric Anne <[email protected]>
Checklist before requesting a review
Description
Allow administrators to configure custom images for the helpdesk home page:
Screenshots