Skip to content

Implement method tag for creating input hidden with PUT or DELETE value #48

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

Merged
merged 3 commits into from
Nov 14, 2023

Conversation

marcuxyz
Copy link
Owner

@marcuxyz marcuxyz commented Nov 14, 2023

Do you use {{ method('PUT') }} or {{ method('DELETE') }} for creating input method for HTML form.

Form Delete

form_delete

Form Put

form_put

Inspired by Laravel Framework

…en input fields for PUT and DELETE HTTP methods

feat(html.py): add HTMLMiddleware class to generate hidden input fields for PUT and DELETE HTTP methods
fix(edit.html): replace hidden input field with method('PUT') to inject hidden input field for PUT HTTP method
fix(show.html): replace hidden input field with method('DELETE') to inject hidden input field for DELETE HTTP method
fix(conftest.py): add message creation and commit to test_client and browser fixtures
fix(messages_direct_request_test.py): remove unnecessary expected variable and assert message title directly
fix(messages_direct_request_test.py): remove unnecessary message creation and commit, query message by title instead
fix(messages_form_test.py): add test to check for presence of hidden input field for PUT HTTP method in edit page
fix(messages_form_test.py): add test to check for presence of hidden input field for DELETE HTTP method in show page
fix(messages_form_test.py): remove unnecessary message creation and commit, query message by title instead
fix(messages_form_test.py): fix test name duplication and update message title in update test
fix(messages_form_test.py): fix test name duplication and update message title in delete test
…toml, and version_test.py

The version number in the `__version__.py` file, `pyproject.toml` file, and `version_test.py` test case has been updated from 2.7.2 to 2.8.1. This change is made to reflect the new version of the `mvc-flask` package.
…MLMiddleware class and its methods

feat(html.py): add method to handle the generation of appropriate HTML based on a given string
@marcuxyz marcuxyz changed the title Feature/method tag Implement method tag for creating input hidden with PUT or DELETE value Nov 14, 2023
@marcuxyz marcuxyz merged commit fba5dd0 into main Nov 14, 2023
@marcuxyz marcuxyz deleted the feature/method_tag branch November 14, 2023 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant