sulu / SuluFormBundle

Form Bundle for handling Dynamic and Symfony Forms in https://sulu.io
MIT License
81 stars 78 forks source link

dynamic forms: data detail view #352

Open Basster opened 1 year ago

Basster commented 1 year ago
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

alexander-schranz commented 6 months ago

@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.