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

dynamic forms: data detail view #352

Draft
wants to merge 2 commits into
base: 2.5
Choose a base branch
from

Conversation

Basster
Copy link

@Basster Basster commented Feb 24, 2023

Q A
Bug fix? no
New feature? yes
BC breaks? yes
Deprecations? no
Fixed tickets no
Related issues/PRs no
License MIT

What's in this PR?

One of my client wants to have a detail view of dynamic form submissions, because he doesn't want to export everything, but check the submissions from the Sulu Backend. If some text-editor field values are too long, the Table component just hides the text.

Why?

As I'm still pretty new to Sulu, maybe there is another, easier solution, without touching the admin frontend. So this PR is more of a PoC and open for discussion.

I didn't find an actual "view" or "readonly form" mode in Sulu, so I tried this approach.

Example Usage

Read-Only View:
Bildschirm­foto 2023-02-24 um 13 08 44

Preview Button in list:
image

BC Breaks/Deprecations

It adds admin frontend code

To Do

  • Discuss better solution
  • Field mappings
  • Attachments
  • Create documentation

@alexander-schranz
Copy link
Member

@Basster Sorry for the late response here. We currently avoid custom JS inside our core bundles.

I think best if we tackle how we can make in sulu core (sulu/sulu) maybe a view which is just used for displaying data some kind of widgets view and put there create some widgets which we could reuse here. Maybe we need a new type of xml to tackle that.

Feel free to create an issue in the sulu/sulu repository to discuss how such widgets view / readonly views could look like.

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.

None yet

2 participants