Skip to content

Conversation

sinejespersen
Copy link
Contributor

@sinejespersen sinejespersen commented Aug 29, 2025

Link to LEANTIME ticket

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

Link to Github issue

#267

Description

  • Create helper.js for getInputFiles
  • Create renderAdminForm like already existing renderSlide
  • Rename templates.js to templates-slide.js (as the new admin renderer is called templates-admin.js)
  • Remove adminForm in image-text.json
  • Create admin-form.jsx with the admin form in, add a bit of if/then in the jsx.
  • Extract image-text template into file to simplify image-text.jsx

More info on the grand idea, see github issue

Screenshot of the result

image image image image image

@sinejespersen sinejespersen marked this pull request as draft August 29, 2025 11:09
@sinejespersen sinejespersen self-assigned this Aug 29, 2025
@sinejespersen sinejespersen added the enhancement New feature or request label Aug 29, 2025
@sinejespersen sinejespersen linked an issue Aug 29, 2025 that may be closed by this pull request
7 tasks
@sinejespersen sinejespersen requested a review from tuj August 29, 2025 11:10
@@ -0,0 +1,70 @@
// Load templates.
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason for splitting into template-admin template-slide ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You mean, not putting them in the same file?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes.. they are almost duplicates.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, would you prefer one file to do both? At first they were in the same file but I though the slight differences made it more messy so i split them.

@sinejespersen sinejespersen force-pushed the feature/5316-poc-admin-form branch from 0f134e9 to 3c9fe8f Compare September 17, 2025 09:20
@sinejespersen sinejespersen force-pushed the feature/5316-poc-admin-form branch from 39069ca to ac5bcd9 Compare September 22, 2025 07:30
@sinejespersen sinejespersen force-pushed the feature/5316-poc-admin-form branch from 0c8278a to bdd5cb5 Compare September 22, 2025 08:38
@sinejespersen sinejespersen force-pushed the feature/5316-poc-admin-form branch 2 times, most recently from 2ac7785 to 324eebb Compare September 26, 2025 08:34
@sinejespersen sinejespersen force-pushed the feature/5316-poc-admin-form branch from 324eebb to 0a641eb Compare September 26, 2025 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dynamic admin forms
2 participants