Skip to content

Commit

Permalink
Update version
Browse files Browse the repository at this point in the history
  • Loading branch information
hadpro24 committed Jun 18, 2021
1 parent 03456c5 commit 23e0944
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,10 @@ INSTALLED_APPS = [
<link rel="stylesheet" type="text/css" href="{% static 'forms_fieldset/css/main.css' %}">

<form>
{% fieldset form fieldsets '#42945c' %}
{{ form|fieldset:'#42945c' }}
</form>
```
***Note*** : The first argument of `fieldset` tag is the `form` the second the list
`fieldsets` where you have defined the positioning of your different elements and
the last the color of the title of the fieldset (by default this value is at `#79AEC8`)
***Note*** : The fieldset filter receives the color of the titles of the form groups, by default this color is used: # 79AEC8)

Complete Guide
----------
Expand Down Expand Up @@ -108,7 +106,6 @@ def home(request):
#save...
context = {
'form': form,
'fieldsets': form.fieldsets,
'inline_form': InlineForm()
}
return render(request, 'home.html', context)
Expand All @@ -127,8 +124,8 @@ def home(request):
<h1>Student form information</h1>
<form>
{% fieldset form fieldsets '#42945c' %}
{% inline_fieldset inline_form '#42945c' "Note des eleves" %}
{{ form|fieldset:'#42945c' }}
{{ form_inline|inline_fieldset:"#42945c,Note des eleves" }}
</form>
</body>
</html>
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = django-forms-fieldset
version = 0.1.4
version = 1.0.0
description = Django form fieldset inspire django admin fieldset.
long_description = file: README.rst
url = https://github.com/hadpro24/django-forms-fieldset
Expand Down

0 comments on commit 23e0944

Please sign in to comment.