Releases: deb17/flask-modals
Releases · deb17/flask-modals
Enhancement
- modal backdrop problem will not occur.
- No need for an IIFE to code custom javascript.
- Python code is simplified at the expense of a few extra lines.
Internal improvement
- Replaced parser with simple string matching
- Tested uploading of file thru a modal
- Submitter element included with form data sent to server.
Major changes
- Dropped turbo.js
- Removed
beautifulsoup
dependency. Now builtin parser is used. - Simpler and cleaner interface.
- Fixed issue regarding assets being reused in page loaded by form submit. No need of
redirect_to
andrender_template_redirect
. data-turbo=false
will not be set on the body tag of every page, as turbo.js is not being used.
To be done
- Enable file upload via modal.
- Fix to send submit button value along with form data.
Enhancement
- Support for bootstrap 5 modals.
- Examples folder now has an app using bootstrap 5.
Remove Turbo class
- Removed the
Turbo
class and converted its methods into functions. - Updated comments in
modal.py
Use beautiful soup library
- Replaced the built-in html parser with beautiful soup.
- New
response
decorator to handle calls torender_template_modal
. - Turbo library now always loaded.
- Links outside the modal form will not need a
data-turbo="false"
attribute now. - Can reload the page on form submit, if needed.
Remove turbo-flask dependency
- This extension does not depend on the Turbo-Flask extension anymore.
- Added a new function
redirect_to
to help in unloading the turbo.js library. Theafter_app_request
callback has been removed.
Bug fix and enhancement
_keep_flashes
session variable is now set in anafter_app_request
function. Another session variable_cond_flashes
is needed to do this.- Links on the modal page will now not require the
data-turbo="false"
attribute. This is handled by setting the attribute on the body tag in the parser.
Enhancement
- Reload page on redirect to remove the Turbo library. This is better than setting a body attribute of
data-turbo="false"
. - Fix documentation
Enhancement
- Allow rendering of template on post.
- Refactorings
- Fix documentation