Skip to content
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

UIComponent: Render File Upload: Show Max nr of files and upload size #7306

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

lscharmer
Copy link
Contributor

This PR addresses one part of Mantis Issue: https://mantis.ilias.de/view.php?id=39689

This PR displays the max nr of files and the max upload size below the file input field.

The info list may be extended to show the accepted file extensions in a future PR.

@lscharmer lscharmer added kitchen sink improvement php Pull requests that update Php code labels Apr 3, 2024
@lscharmer lscharmer requested review from Amstutz, klees and thibsy April 3, 2024 13:26
@Amstutz Amstutz removed their assignment Apr 17, 2024
Copy link
Member

@klees klees left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @lscharmer,

thanks for looking into this.

Please implement the following changes:

  • Output: Please do not construct strings containing meaningful parts in the renderer but instead via the mechanism we have for that: the template. Introduce separate placeholders for the new labels and values, we will also be able to address possible accessibility or styling changes easily then.

Best regards!
@thibsy, @Amstutz, @klees

@lscharmer lscharmer force-pushed the file-upload-info branch 2 times, most recently from 79f130c to 6f041be Compare April 29, 2024 13:51
@lscharmer lscharmer requested a review from klees April 29, 2024 13:52
Copy link
Contributor

@thibsy thibsy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @lscharmer

Thx a lot for incorporating @klees requested changes. I just looked over this again, and there are still some questions/remarks about this, before we can merge this:

  • this is not yet a mandatory, but we will need to limit our JavaScriptBindable components to one top-level HTML element in the future. Is it therefore possible, to move the additional info into the current top-level element?
  • you are escaping two values of which we certainly know there will be no special characters inside them. Please remove both htmlspecialchars() calls.

Kind regards,
@thibsy

@thibsy thibsy assigned lscharmer and unassigned klees and thibsy Jul 2, 2024
@lscharmer lscharmer requested a review from thibsy August 9, 2024 11:37
@thibsy thibsy assigned thibsy and unassigned lscharmer Aug 14, 2024
Copy link
Contributor

@thibsy thibsy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @lscharmer,

Thx for implementing the requested changes.

We noticed you are using the | character as a separator, which may not be accessibility-friendly and could be flagged in an audit.

Otherwise this LGTM now, so I'll merge this for the time being.

Kind regards,
@thibsy

@thibsy thibsy merged commit e3ef8e7 into ILIAS-eLearning:trunk Aug 20, 2024
2 checks passed
klees pushed a commit to klees/ILIAS that referenced this pull request Aug 22, 2024
oliversamoila pushed a commit to oliversamoila/ILIAS that referenced this pull request Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement kitchen sink php Pull requests that update Php code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants