django-forms-frontend-validation 1.0.0__py3-none-any.whl → 1.0.2__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- {django_forms_frontend_validation-1.0.0.dist-info → django_forms_frontend_validation-1.0.2.dist-info}/METADATA +8 -5
- {django_forms_frontend_validation-1.0.0.dist-info → django_forms_frontend_validation-1.0.2.dist-info}/RECORD +5 -5
- {django_forms_frontend_validation-1.0.0.dist-info → django_forms_frontend_validation-1.0.2.dist-info}/LICENSE +0 -0
- {django_forms_frontend_validation-1.0.0.dist-info → django_forms_frontend_validation-1.0.2.dist-info}/WHEEL +0 -0
- {django_forms_frontend_validation-1.0.0.dist-info → django_forms_frontend_validation-1.0.2.dist-info}/top_level.txt +0 -0
@@ -1,8 +1,8 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: django-forms-frontend-validation
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.2
|
4
4
|
Summary: A Django app for front-end form validation
|
5
|
-
Home-page: https://github.com/andrew-kyle92/django-frontend-validation
|
5
|
+
Home-page: https://github.com/andrew-kyle92/django-forms-frontend-validation
|
6
6
|
Author: Andrew Kyle
|
7
7
|
Author-email: andrew.kyle92@yahoo.com
|
8
8
|
License: MIT
|
@@ -46,9 +46,11 @@ The application is designed to streamline the process of form validation, ensuri
|
|
46
46
|
'formvalidator',
|
47
47
|
]
|
48
48
|
```
|
49
|
-
- Configure the following variables to customize the behavior.
|
49
|
+
- Configure the following variables to customize the behavior, after importing the form settings.
|
50
50
|
```python
|
51
|
-
|
51
|
+
from formvalidator.settings import *
|
52
|
+
|
53
|
+
IGNORED_CLASSES = ['example-class', 'example-class-2', ...]
|
52
54
|
IGNORE_VALIDATION = ['example-ignore-validation', ...]
|
53
55
|
VALIDATE_ONLY_ON_SUBMIT = ['all'] # Options: "__all__", specific class names, or leave empty.
|
54
56
|
```
|
@@ -56,7 +58,8 @@ The application is designed to streamline the process of form validation, ensuri
|
|
56
58
|
- Ensure the `_InitializeForms` method is called during page load to attach validation logic to forms dynamically.
|
57
59
|
To your HTML template with the form, add this.
|
58
60
|
```html
|
59
|
-
|
61
|
+
<script src="{% static 'dist/forms.bundle.js' %}"></script>
|
62
|
+
<script>
|
60
63
|
// fv (formsvalidator) is exported from forms.bundle.js
|
61
64
|
window.addEventListener("load", () => {
|
62
65
|
let ignoredClasses = {{ form_validator.ignored_classes|safe }}; // add more classes that represent forms you want this script to ignore.
|
@@ -21,8 +21,8 @@ formvalidator/templates/base.html,sha256=husejzZpyn7DKk-3S6frsalTMz4-ZO5EV5GWobW
|
|
21
21
|
formvalidator/templates/formvalidator/sample.html,sha256=IKklx25wt-paXmfaMbSZfTZaWFzlq_BGMOuVKACNpyI,2048
|
22
22
|
formvalidator/templates/formvalidator/sample2.html,sha256=_E5Rtv4fWOut5dbpRsguoEUw-X_Hln6wok4g2KPlzCo,2129
|
23
23
|
formvalidator/templates/includes/header.html,sha256=5EWbHxj-JFu7fzmGUWWqOxoG2bwl03UwwUG_O68qzj0,946
|
24
|
-
django_forms_frontend_validation-1.0.
|
25
|
-
django_forms_frontend_validation-1.0.
|
26
|
-
django_forms_frontend_validation-1.0.
|
27
|
-
django_forms_frontend_validation-1.0.
|
28
|
-
django_forms_frontend_validation-1.0.
|
24
|
+
django_forms_frontend_validation-1.0.2.dist-info/LICENSE,sha256=gA3cqug2Eqh9zkbcEDQ1Ez1APddDnmbX6bO6_wcBRM8,1095
|
25
|
+
django_forms_frontend_validation-1.0.2.dist-info/METADATA,sha256=nmqAVP9OlkwOy2-QrWwVefwrWsQ8jEWW1TgX8BYG1-s,4028
|
26
|
+
django_forms_frontend_validation-1.0.2.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
27
|
+
django_forms_frontend_validation-1.0.2.dist-info/top_level.txt,sha256=E9SLf9Mg8MAqnCin_sgh__XTquz_st_-Qyy9w3-3fms,14
|
28
|
+
django_forms_frontend_validation-1.0.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|