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

AJAX and x-editable now allowed, plus uploading images to SQL database #2256

Open
wants to merge 157 commits into
base: master
Choose a base branch
from

Conversation

mccarthysean
Copy link
Contributor

@mccarthysean mccarthysean commented Jun 1, 2022

Problem: can't use AJAX and x-editable at the same time.

https://stackoverflow.com/questions/65193474/can-i-use-form-ajax-refs-and-column-editable-list-for-the-same-column-in-fla

Together they're awesome. AJAX-filled dropdowns make the list view page load MUCH faster, and x-editable fields greatly improve the user's editing experience in the list view.

Now we can have both!

Problem: can't save images to the database, only file system

It's more efficient to store images in the database, especially when storing image files in Docker images, which bloat the image size. This way, with the new "ImageUploadFieldDB" class, our images can be stored and served from the SQL database as large binary files 👍

…lds in the list view

The problem was we couldn't use AJAX and x-editable at the same time.

Together they're awesome. AJAX-filled dropdowns make the list view page load MUCH faster, and x-editable fields greatly improve the user's editing experience in the list view.

Now we can have both!
…file system

It's more efficient to store images in the database, especially when storing image files in Docker images, which bloat the image size. This way our images can be stored and served from the SQL database as large binary files 👍
… images

Added another example for users looking to use x-editable AJAX, or who want to upload their images to the database instead of the file system
Added NestedRuleClasses to add customizable classes, which allows Bootstrap containers, rows, and columns

changed names for Bootstrap container, row, and col

added example of Bootstrap container, row, and col
added 1rem of margin-right to the form buttons
better margin below inline-field cards, and above inline-field buttons
…n tuples. The next version of WTForms will abandon support for flags in tuples.
…n tuples. The next version of WTForms will abandon support for flags in tuples.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants