File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,10 @@ INSTALLED_APPS = [
27
27
<link rel =" stylesheet" type =" text/css" href =" {% static 'forms_fieldset/css/main.css' %}" >
28
28
29
29
<form >
30
- {% fieldset form fieldsets '#42945c' % }
30
+ {{ form|fieldset: '#42945c' } }
31
31
</form >
32
32
```
33
- *** Note*** : The first argument of ` fieldset ` tag is the ` form ` the second the list
34
- ` fieldsets ` where you have defined the positioning of your different elements and
35
- the last the color of the title of the fieldset (by default this value is at ` #79AEC8 ` )
33
+ *** Note*** : The fieldset filter receives the color of the titles of the form groups, by default this color is used: # 79AEC8)
36
34
37
35
Complete Guide
38
36
----------
@@ -108,7 +106,6 @@ def home(request):
108
106
# save...
109
107
context = {
110
108
' form' : form,
111
- ' fieldsets' : form.fieldsets,
112
109
' inline_form' : InlineForm()
113
110
}
114
111
return render(request, ' home.html' , context)
@@ -127,8 +124,8 @@ def home(request):
127
124
<h1>Student form information</h1>
128
125
129
126
<form>
130
- {% fieldset form fieldsets '#42945c' % }
131
- {% inline_fieldset inline_form ' #42945c' " Note des eleves" % }
127
+ {{ form|fieldset: '#42945c' } }
128
+ {{ form_inline| inline_fieldset:" #42945c, Note des eleves" } }
132
129
</form>
133
130
</body>
134
131
</html>
Original file line number Diff line number Diff line change 1
1
[metadata]
2
2
name = django-forms-fieldset
3
- version = 0.1.4
3
+ version = 1.0.0
4
4
description = Django form fieldset inspire django admin fieldset.
5
5
long_description = file: README.rst
6
6
url = https://github.com/hadpro24/django-forms-fieldset
You can’t perform that action at this time.
0 commit comments