Skip to content

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

AdrienClairembault
Copy link
Contributor

Checklist before requesting a review

  • I have performed a self-review of my code.
  • I have added tests that prove my fix is effective or that my feature works.

Description

Allow administrators to configure custom images for the helpdesk home page:

Screenshots

image

@AdrienClairembault AdrienClairembault marked this pull request as ready for review April 15, 2025 12:11
Comment on lines +90 to +98
{% do call('Dropdown::showFromArray', [
side.field,
options,
{
value: side.config,
width: "100%",
aria_label: side.dropdown_label,
}
]) %}
Copy link
Member

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.

Copy link
Contributor Author

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] = "";
Copy link
Member

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.

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants