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

Javascript graceful degredation #8

Open
jedateach opened this issue Nov 17, 2014 · 0 comments
Open

Javascript graceful degredation #8

jedateach opened this issue Nov 17, 2014 · 0 comments

Comments

@jedateach
Copy link
Contributor

It would be great to see this module work without requiring javascript. Although the percentage of non-js users is probably quite small, there are various reasons it might be disabled, or broken, and I just like to have it as a safe guard - particularly on the front-end. More on js degredation

Here's what I think would need to be done:

  • Handle redirecting back from form on success, instead of reloading. Getting the link correct might not be as simple as $form->getController()->Link(), so perhaps supply a setBackLink function.
  • Possibly supply a 'back' button to get back to the main form.
  • Get the main form back to its previous state. Data may need to be stored in session upon add/edit.
  • Create alternative gridfield components to the ones requiring javascript. (e.g. delete action)
  • Template rendering I think should be flexible. Perhaps by default just use the front end iframe template, but perhaps it would be nice if the main form's controller template was used to keep style consistent. I played with this a little, and saw that it might work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants