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

Distribute forms over multiple views #18

Open
5 tasks
henhuy opened this issue Jul 8, 2024 · 0 comments
Open
5 tasks

Distribute forms over multiple views #18

henhuy opened this issue Jul 8, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@henhuy
Copy link
Contributor

henhuy commented Jul 8, 2024

In contrary to former setup of forms, we want to distribute them over multiple views in order to lower information / overhead per page for the user.
But this means, that we have to "remember" the user input over multiple pages.
This is done by implementing a django session (see https://docs.djangoproject.com/en/5.0/topics/http/sessions) which keeps track of former form inputs.

TODOS:

  • Set up multiple views (including forms as far as they are known right now) regarding to FIGMA mockup (see RC)
  • Set up django sessions as REDIS-cached session (https://docs.djangoproject.com/en/5.0/topics/http/sessions/#using-cached-sessions)
  • On each view, form shall be validated in backend after post and either same page is shown with form errors or user is leaded forwards to next page
  • If user "goes back", form with former user inputs shall be recreated from session entries
  • Note: Eventually, HTMX is needed on some pages, so that some parts/forms of the page are rendered depending on former user inputs. This must be "remembered" when coming back to the page and recreating forms from session!
@henhuy henhuy added the enhancement New feature or request label Jul 8, 2024
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

No branches or pull requests

2 participants