Skip to content

Add attachment element token - #17

Merged
rimi-itk merged 10 commits into
mainfrom
feature/attachment-element-token
Nov 23, 2026
Merged

rimi-itk merged 10 commits into
mainfrom
feature/attachment-element-token

Conversation

@rimi-itk

@rimi-itk rimi-itk commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

https://leantime.itkdev.dk/#/tickets/showTicket/8965

  • Adds an additional token, [attachment:title], for convenience.
  • Adds more default value setting in the global F2 settings
  • Updates translations to match F2 and don't mention a token that'll not be used (yet)

@rimi-itk
rimi-itk force-pushed the feature/attachment-element-token branch from 9b7af0a to 6172480 Compare November 18, 2026 06:45
@rimi-itk
rimi-itk force-pushed the feature/attachment-element-token branch from 6172480 to a74efdb Compare November 18, 2026 06:49
Apparently F2 shows the underlying file extension af the document title, so using `[file:filename]` will effectively show the file extension twice. We don't remove the token, but don't tell about it.
@rimi-itk
rimi-itk marked this pull request as ready for review November 20, 2026 12:43
@rimi-itk
rimi-itk requested a review from jekuaitk November 20, 2026 12:43
Comment thread README.md

### Translations

This module comes wth Danish translations in the `os2forms_f2` context (cf. [Translations](#translations)). Go to

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this a self-reference?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, but it shold not be. Heading removed in 4f14c06.

Comment thread translations/os2forms_f2.da.po Resolved
Comment on lines +111 to +115
await page
.locator(
'[name="general[archive_target_case][matter_title_default_value]"]',
)
.fill("[webform_submission:label]");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is there a reason for this being done twice? Or should it be some other value?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No and yes! Cleaned up in 6410394.

rimi-itk and others added 3 commits November 23, 2026 13:20
Co-authored-by: Jeppe Kuhlmann Andersen <78410897+jekuaitk@users.noreply.github.com>
@rimi-itk
rimi-itk force-pushed the feature/attachment-element-token branch from ad47b6e to 6410394 Compare November 23, 2026 12:37
@rimi-itk
rimi-itk requested a review from jekuaitk November 23, 2026 12:38
@rimi-itk
rimi-itk merged commit 92e5fe1 into main Nov 23, 2026
5 checks passed
@rimi-itk
rimi-itk deleted the feature/attachment-element-token branch November 23, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants