crispy-daisyui 0.3.0__py3-none-any.whl → 0.7.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- __version__ = "0.3.0"
crispy_daisyui/daisyui.py CHANGED
@@ -32,6 +32,7 @@ class CSSContainer:
32
32
  "splitdatetime",
33
33
  "splithiddendatetime",
34
34
  "selectdate",
35
+ "toggle",
35
36
  # other items
36
37
  "error_border",
37
38
  ]
@@ -6,7 +6,7 @@
6
6
  {# Opening Div and Label first #}
7
7
 
8
8
  <{% if tag %}{{ tag }}{% else %}div{% endif %} id="div_{{ field.auto_id }}" class="{% if wrapper_class %}{{ wrapper_class }} {% endif %}{% if field_class %}{{ field_class }}{% else %}mb-3{% endif %}">
9
- {% if field.label and form_show_labels %}
9
+ {% if field.label and form_show_labels and not field|is_toggle and not field|is_checkbox %}
10
10
  <label for="{{ field.id_for_label }}" class="{% if label_class %}{{ label_class }}{% endif %}">
11
11
  {{ field.label|safe }}{% if field.field.required %}<span class="asteriskField">*</span>{% endif %}
12
12
  </label>
@@ -15,17 +15,24 @@
15
15
  {# if field has a special template then use this #}
16
16
  {% if field|is_select %}
17
17
  <div class="{% if field_class %}{{ field_class }}{% else %}mb-3{% endif %}"{% if flat_attrs %} {{ flat_attrs|safe }}{% endif %}>
18
-
19
18
  {% include 'daisyui/layout/select.html' %}
19
+ </div>
20
20
  {% elif field|is_checkboxselectmultiple %}
21
21
  <div class="{% if field_class %}{{ field_class }}{% else %}mb-3{% endif %}"{% if flat_attrs %} {{ flat_attrs|safe }}{% endif %}>
22
-
23
22
  {% include 'daisyui/layout/checkboxselectmultiple.html' %}
23
+ </div>
24
+ {% elif field|is_toggle %}
25
+ <div class="{% if field_class %}{{ field_class }}{% else %}mb-3{% endif %}"{% if flat_attrs %} {{ flat_attrs|safe }}{% endif %}>
26
+ {% include 'daisyui/layout/toggle.html' %}
27
+ </div>
28
+ {% elif field|is_checkbox %}
29
+ <div class="{% if field_class %}{{ field_class }}{% else %}mb-3{% endif %}"{% if flat_attrs %} {{ flat_attrs|safe }}{% endif %}>
30
+ {% include 'daisyui/layout/checkbox.html' %}
31
+ </div>
24
32
  {% elif field|is_radioselect %}
25
33
  <div class="{% if field_class %}{{ field_class }}{% else %}mb-3{% endif %}"{% if flat_attrs %} {{ flat_attrs|safe }}{% endif %}>
26
-
27
34
  {% include 'daisyui/layout/radioselect.html' %}
28
-
35
+ </div>
29
36
  {% else %}
30
37
 
31
38
  {# otherwise use django rendering with additional classes added #}
@@ -0,0 +1,15 @@
1
+ {% load crispy_forms_filters %}
2
+
3
+ <div class="form-control">
4
+ <label class="label cursor-pointer">
5
+ <span class="label-text">{{ field.label }}</span>
6
+ <input type="checkbox"
7
+ class="checkbox {{ field.css_classes }}"
8
+ name="{{ field.html_name }}"
9
+ id="{{ field.auto_id }}"
10
+ {% if field.value %}checked="checked"{% endif %}
11
+ {{ field.field.widget.attrs|flatatt }}>
12
+ </label>
13
+ </div>
14
+
15
+ {% include 'daisyui/layout/help_text_and_errors.html' %}
@@ -1,16 +1,20 @@
1
1
  {% load crispy_forms_filters %}
2
2
  {% load l10n %}
3
3
 
4
-
5
4
  {% for choice in field.field.choices %}
6
5
  <div class="form-control">
7
- <label class="label cursor-pointer" for="id_{{ field.html_name }}_{{ forloop.counter }}">
8
- <input type="checkbox" class="checkbox"{% if choice.0 in field.value or choice.0|stringformat:"s" in field.value or choice.0|stringformat:"s" == field.value|default_if_none:""|stringformat:"s" %} checked="checked"{% endif %} name="{{ field.html_name }}" id="id_{{ field.html_name }}_{{ forloop.counter }}" value="{{ choice.0|unlocalize }}" {{ field.field.widget.attrs|flatatt }}>
6
+ <label class="label cursor-pointer">
7
+ <input type="checkbox" class="checkbox"
8
+ {% if choice.0 in field.value or choice.0|stringformat:"s" in field.value or choice.0|stringformat:"s" == field.value|default_if_none:""|stringformat:"s" %} checked="checked"{% endif %}
9
+ name="{{ field.html_name }}"
10
+ id="id_{{ field.html_name }}_{{ forloop.counter }}"
11
+ value="{{ choice.0|unlocalize }}"
12
+ {{ field.field.widget.attrs|flatatt }}>
9
13
  <span class="label-text">{{ choice.1|unlocalize }}</span>
10
14
  </label>
11
- {% if field.errors and forloop.last and not inline_class %}
12
- {# include 'daisyui/layout/field_errors_block.html' <-- bs4 template adds this here. Currently this pack adds it in field.html #}
13
- {% endif %}
14
15
  </div>
15
16
  {% endfor %}
16
- </div>
17
+
18
+ {% if field.errors and not inline_class %}
19
+ {% include 'daisyui/layout/field_errors_block.html' %}
20
+ {% endif %}
@@ -10,6 +10,5 @@
10
10
  {% if field.errors and forloop.last %}
11
11
  {# include 'daisyui/layout/field_errors_block.html' <-- bs4 template adds this here. Currently this pack adds it in field.html #}
12
12
  {% endif %}
13
+ </div>
13
14
  {% endfor %}
14
-
15
- </div>
@@ -8,5 +8,4 @@
8
8
  {% for value, label in field.field.choices %}
9
9
  {% include "daisyui/layout/select_option.html" with value=value label=label %}
10
10
  {% endfor %}
11
- </select>
12
- </div>
11
+ </select>
@@ -0,0 +1,10 @@
1
+ {% load crispy_forms_filters %}
2
+ {% load l10n %}
3
+
4
+ <div class="form-control">
5
+ <label class="label cursor-pointer" for="{{ field.id_for_label }}">
6
+ <span class="label-text">{{ field.label }}</span>
7
+ <input type="checkbox" class="toggle" name="{{ field.html_name }}" id="{{ field.id_for_label }}"
8
+ {% if field.value %}checked="checked"{% endif %} {{ field.field.widget.attrs|flatatt }}>
9
+ </label>
10
+ </div>
@@ -18,6 +18,9 @@ register = template.Library()
18
18
  def is_checkbox(field):
19
19
  return isinstance(field.field.widget, forms.CheckboxInput)
20
20
 
21
+ @register.filter
22
+ def is_toggle(field):
23
+ return isinstance(field.field.widget, forms.CheckboxInput) and 'toggle' in field.field.widget.attrs.get('class', '')
21
24
 
22
25
  @register.filter
23
26
  def is_password(field):
@@ -97,16 +100,17 @@ class CrispyDaisyUiFieldNode(template.Node):
97
100
  "date": base_input,
98
101
  "datetime": base_input,
99
102
  "time": base_input,
100
- "checkbox": "",
103
+ "checkbox": "checkbox",
101
104
  "select": "select select-bordered w-full",
102
105
  "nullbooleanselect": "",
103
106
  "selectmultiple": "",
104
- "checkboxselectmultiple": "",
107
+ "checkboxselectmultiple": "checkbox",
105
108
  "multi": "",
106
109
  "splitdatetime": base_input,
107
110
  "splithiddendatetime": "",
108
111
  "selectdate": "",
109
112
  "error_border": "border-red-500",
113
+ "toggle": "toggle",
110
114
  }
111
115
 
112
116
  default_container = CSSContainer(default_styles)
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,64 @@
1
+ Metadata-Version: 2.1
2
+ Name: crispy-daisyui
3
+ Version: 0.7.0
4
+ Summary: A DaisyUI package for Django Crispy Forms
5
+ Author: Fabian Geiger
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/fabge/crispy-daisyui
8
+ Project-URL: Changelog, https://github.com/fabge/crispy-daisyui/releases
9
+ Project-URL: Issues, https://github.com/fabge/crispy-daisyui/issues
10
+ Project-URL: CI, https://github.com/fabge/crispy-daisyui/actions
11
+ Keywords: forms,django,crispy,tailwind,daisyui
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Requires-Python: >=3.7
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENSE
16
+ Requires-Dist: django-crispy-forms >=1.11.2
17
+ Requires-Dist: django >=3.2
18
+
19
+ # crispy-daisyui
20
+
21
+ A [`daisyUI`](https://daisyui.com) template pack for the wonderful [django-crispy-forms](https://github.com/django-crispy-forms/django-crispy-forms).
22
+
23
+ This repository is a fork of [`crispy-tailwind`](https://github.com/django-crispy-forms/crispy-tailwind) and has been modified just enough to suit my needs.
24
+ It works well for the most common forms elements.
25
+
26
+ ## How to install
27
+
28
+ Install via pip:
29
+
30
+ ```bash
31
+ pip install crispy-daisyui
32
+ ```
33
+
34
+ You will need to update your project's settings file to add ``crispy_forms``
35
+ and ``crispy_daisyui`` to your project's ``INSTALLED_APPS`` setting. Also set
36
+ ``daisyui`` as an allowed template pack and as the default template pack
37
+ for your project:
38
+
39
+ ```python
40
+ INSTALLED_APPS = [
41
+ # ...
42
+ 'crispy_forms',
43
+ 'crispy_daisyui',
44
+ # ...
45
+ ]
46
+
47
+ CRISPY_ALLOWED_TEMPLATE_PACKS = 'daisyui'
48
+ CRISPY_TEMPLATE_PACK = 'daisyui'
49
+ ```
50
+
51
+ ## How to use
52
+
53
+ Current functionality allows the ``|crispy`` filter to be used to style your
54
+ form. In your template:
55
+
56
+ 1. Load the filter: ``{% load daisyui_filters %}``
57
+ 2. Apply the crispy filter: ``{{ form|crispy }}``
58
+
59
+ We can also use the ``{% crispy %}`` tag to allow usage of crispy-forms'
60
+ ``FormHelper`` and ``Layout``. In your template:
61
+
62
+ 1. Load the crispy tag: ``{% load crispy_forms_tags %}``
63
+ 2. Add ``FormHelper`` to your form and use crispy-forms to set-up your form
64
+ 3. Use the crispy tag ``{% crispy form %}`` in your template
@@ -1,10 +1,10 @@
1
- crispy_daisyui/__init__.py,sha256=VrXpHDu3erkzwl_WXrqINBm9xWkcyUy53IQOj042dOs,22
2
- crispy_daisyui/daisyui.py,sha256=P-UjhIlS_Tia7tvQl18L16JZb_Kyd6yDqKtaKYdGmNE,2281
1
+ crispy_daisyui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ crispy_daisyui/daisyui.py,sha256=KXCSsVN07et9UNcfLUHJoCFP-rk94bSlHCEcbtM-Sog,2303
3
3
  crispy_daisyui/layout.py,sha256=sJ7yFExo5nL1cvQ_fiSR7uY4I7mHjq_YJdP5KXXHVd0,2135
4
4
  crispy_daisyui/templates/daisyui/display_form.html,sha256=lOFZD53-Icz4Vklld4U1psoR8isugZZmhn_Br5bcy3Y,258
5
5
  crispy_daisyui/templates/daisyui/errors.html,sha256=uM4Couvg7B1JK0m1WD0N9u27tKBL3TGx98ZVwM7mAx8,410
6
6
  crispy_daisyui/templates/daisyui/errors_formset.html,sha256=NTkCR5p2FQ8RFm8KttVtMeQKuQ6E8140E0JEK5y_Pa8,386
7
- crispy_daisyui/templates/daisyui/field.html,sha256=pwOkCdvZ4ay6AmXTIfvmQgsiKBACmJFtdU_2KTXTyD0,1645
7
+ crispy_daisyui/templates/daisyui/field.html,sha256=yzCirUsvD61AKiO1Kqps3eRzQlxCDvxPNTIABDz03U4,2208
8
8
  crispy_daisyui/templates/daisyui/inputs.html,sha256=kw5acssJGx29WtPRDYP6fj7vOHwMGfrIm94yM0zRdVs,407
9
9
  crispy_daisyui/templates/daisyui/table_inline_formset.html,sha256=EI31XC0NJ28qN2LHomqzB42RVPuwTCghjrXRPfzQ-Qs,1872
10
10
  crispy_daisyui/templates/daisyui/uni_form.html,sha256=xNfQ7GCtW9mW55GK4tSiFkx8wyB0bltx5A8BISVoTxg,306
@@ -14,7 +14,8 @@ crispy_daisyui/templates/daisyui/whole_uni_formset.html,sha256=SAb7RaEUpI8Sd5j5b
14
14
  crispy_daisyui/templates/daisyui/layout/alert.html,sha256=bFc1e4UQCG4bVN8K9HpBQaZsNAMnld1Yj6HEDplgd58,766
15
15
  crispy_daisyui/templates/daisyui/layout/baseinput.html,sha256=YayTE-BqUKdb7k1M6FrAuuwpDduTbkyfOrke0jEeAW4,428
16
16
  crispy_daisyui/templates/daisyui/layout/button.html,sha256=ZW5R0kxa3PvkXSYcKgl-hW8vuv3TfdkCGB3YvekIRTI,84
17
- crispy_daisyui/templates/daisyui/layout/checkboxselectmultiple.html,sha256=gwR97cdiZ9k2vSrPJs2h3QtVpZEryYjzbol8eRusOfI,959
17
+ crispy_daisyui/templates/daisyui/layout/checkbox.html,sha256=akTc8zae6VFYwotUYukUQGtZnl8ISC-0ALcfPx8hzxQ,495
18
+ crispy_daisyui/templates/daisyui/layout/checkboxselectmultiple.html,sha256=igqqVFrAcxmGnL1Q_TjdorUXpjXX7r9b6EZHBV66264,863
18
19
  crispy_daisyui/templates/daisyui/layout/column.html,sha256=PJPuIJhyqgLKFGtYnx5ueYtge-FsemSk21168ghfXAs,161
19
20
  crispy_daisyui/templates/daisyui/layout/div.html,sha256=BAN5QbRtm3lmxi5gpKKBwLu2-5L05ZCN9JD7nYNHWWw,182
20
21
  crispy_daisyui/templates/daisyui/layout/field_errors.html,sha256=5tZz6oxlA0-8CDpdsyhCjTn73zTZAjETc4oAfFUUDM0,241
@@ -26,16 +27,17 @@ crispy_daisyui/templates/daisyui/layout/help_text.html,sha256=n0DIIhqPFRTP6ucQ4i
26
27
  crispy_daisyui/templates/daisyui/layout/help_text_and_errors.html,sha256=3eDpjivVwe2C8BB7X4H9ngj0Zh2mPj1cBIRVcInye7o,370
27
28
  crispy_daisyui/templates/daisyui/layout/inline_field.html,sha256=cfzb0Wyf7TvAywrUf34R2GMvegJMTAgVlJbC84dqiJc,853
28
29
  crispy_daisyui/templates/daisyui/layout/prepended_appended_text.html,sha256=_8nZ3kIu3y8aJWsMAbZfcjhUzad6-cudxQ8wWfpXO6M,3068
29
- crispy_daisyui/templates/daisyui/layout/radioselect.html,sha256=N1UUowpPtFqOiWb1tOKb9wkBYF1HXdBPDrnHBvuNJRg,851
30
+ crispy_daisyui/templates/daisyui/layout/radioselect.html,sha256=UhptN_uXmgjfss5EsWGJqCrwuWfwbcaXRFgqZFj66OY,854
30
31
  crispy_daisyui/templates/daisyui/layout/radioselect_inline.html,sha256=vQxTJBN7mm5n57sdcRI86SZwllGu_asrR8QnIHj-MT0,893
31
32
  crispy_daisyui/templates/daisyui/layout/row.html,sha256=qGv5hSu1_QDZTqQDKhEwry4eJCBqei7m4yARuDVNEmM,169
32
- crispy_daisyui/templates/daisyui/layout/select.html,sha256=ziTL50IH0PtJgo63-0oM_98WP57ebAHXkiu9c4mpk9A,533
33
+ crispy_daisyui/templates/daisyui/layout/select.html,sha256=-_xw2lGdNfBVAE0SD-i2cHrN3rC9iGw91UgNK0LQP8E,525
33
34
  crispy_daisyui/templates/daisyui/layout/select_option.html,sha256=c5oNLFw_hYICvixovxbd6o1EI_8aqYT38DudWlaDOmg,237
35
+ crispy_daisyui/templates/daisyui/layout/toggle.html,sha256=i8F7a9Wx-rkuQ6QEvFRXo2h4CngfQMOYifrNt6kmYWQ,418
34
36
  crispy_daisyui/templatetags/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
- crispy_daisyui/templatetags/daisyui_field.py,sha256=TWa1sbQjM82Z5--C6MPi8vhKCKQlEjDRGZ7IGKhgDXs,7476
37
+ crispy_daisyui/templatetags/daisyui_field.py,sha256=FQz008pHvHN2w5dOe5FCIpJIPnWhBbYaGw8CdWt97yA,7680
36
38
  crispy_daisyui/templatetags/daisyui_filters.py,sha256=4RCNLV-fS6Pe3fwdMgqnExFtAHYGdtMB016nzt9fdno,3708
37
- crispy_daisyui-0.3.0.dist-info/LICENSE.txt,sha256=PzRbBf7JOKfauYvmChUSkC9MyRgG9utHlzWt4IzfEV0,1075
38
- crispy_daisyui-0.3.0.dist-info/METADATA,sha256=7uujZisIuTTg8FVub33CS2cFpvKtsboJzXpg-ZKDnpU,3009
39
- crispy_daisyui-0.3.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
40
- crispy_daisyui-0.3.0.dist-info/top_level.txt,sha256=iUfAwww7rFyMb7SijKgjBe3vui_xvSHOovH4tPtPjTo,15
41
- crispy_daisyui-0.3.0.dist-info/RECORD,,
39
+ crispy_daisyui-0.7.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
40
+ crispy_daisyui-0.7.0.dist-info/METADATA,sha256=hbrQ3hiuC8i02AopTJrDtpwkZ8RHk5HHrHsFAOxWyCI,2099
41
+ crispy_daisyui-0.7.0.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
42
+ crispy_daisyui-0.7.0.dist-info/top_level.txt,sha256=iUfAwww7rFyMb7SijKgjBe3vui_xvSHOovH4tPtPjTo,15
43
+ crispy_daisyui-0.7.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: setuptools (74.1.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,22 +0,0 @@
1
- Copyright (c) 2023 Fabian Geiger and contributors.
2
-
3
- Permission is hereby granted, free of charge, to any person
4
- obtaining a copy of this software and associated documentation
5
- files (the "Software"), to deal in the Software without
6
- restriction, including without limitation the rights to use,
7
- copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- copies of the Software, and to permit persons to whom the
9
- Software is furnished to do so, subject to the following
10
- conditions:
11
-
12
- The above copyright notice and this permission notice shall be
13
- included in all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
- OTHER DEALINGS IN THE SOFTWARE.
@@ -1,93 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: crispy-daisyui
3
- Version: 0.3.0
4
- Summary: A DaisyUI package for Django Crispy Forms
5
- Home-page: https://github.com/fabge/crispy-daisyui
6
- Author: Fabian Geiger
7
- Author-email: geiger.fabian@outlook.com
8
- License: MIT
9
- Keywords: forms,django,crispy,tailwind,daisyui
10
- Platform: UNKNOWN
11
- Classifier: Development Status :: 2 - Pre-Alpha
12
- Classifier: Environment :: Web Environment
13
- Classifier: Framework :: Django
14
- Classifier: Framework :: Django :: 3.2
15
- Classifier: Framework :: Django :: 4.0
16
- Classifier: License :: OSI Approved :: MIT License
17
- Classifier: Operating System :: OS Independent
18
- Classifier: Programming Language :: JavaScript
19
- Classifier: Programming Language :: Python :: 3
20
- Classifier: Programming Language :: Python :: 3.7
21
- Classifier: Programming Language :: Python :: 3.8
22
- Classifier: Programming Language :: Python :: 3.9
23
- Classifier: Programming Language :: Python :: 3.10
24
- Classifier: Topic :: Internet :: WWW/HTTP
25
- Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
26
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
27
- Requires-Python: >=3.7
28
- License-File: LICENSE.txt
29
- Requires-Dist: django-crispy-forms >=1.11.2
30
- Requires-Dist: django >=3.2
31
-
32
- ===============
33
- crispy-daisyui
34
- ===============
35
-
36
- A `daisyUI`_ template pack for the wonderful django-crispy-forms_.
37
-
38
- This repository is a fork of `crispy-tailwind`_ and has been modified just enough to suit my needs.
39
- It works well for the most common forms elements.
40
-
41
- **WARNING**
42
-
43
- This project is still in its early stages of development. Any contributions to
44
- the package would be very welcomed.
45
-
46
- Currently the template pack allows the use of the ``|crispy`` filter to style
47
- your form. Here is an example image.
48
-
49
- How to install
50
- --------------
51
-
52
- Install via pip. ::
53
-
54
- pip install crispy-daisyui
55
-
56
- You will need to update your project's settings file to add ``crispy_forms``
57
- and ``crispy_daisyui`` to your project's ``INSTALLED_APPS`` setting. Also set
58
- ``daisyui`` as an allowed template pack and as the default template pack
59
- for your project::
60
-
61
- INSTALLED_APPS = (
62
- ...
63
- "crispy_forms",
64
- "crispy_daisyui",
65
- ...
66
- )
67
-
68
- CRISPY_ALLOWED_TEMPLATE_PACKS = "daisyui"
69
-
70
- CRISPY_TEMPLATE_PACK = "daisyui"
71
-
72
- How to use
73
- ----------
74
-
75
- This project is still in its early stages.
76
-
77
- Current functionality allows the ``|crispy`` filter to be used to style your
78
- form. In your template:
79
-
80
- 1. Load the filter: ``{% load daisyui_filters %}``
81
- 2. Apply the crispy filter: ``{{ form|crispy }}``
82
-
83
- We can also use the ``{% crispy %}`` tag to allow usage of crispy-forms'
84
- ``FormHelper`` and ``Layout``. In your template:
85
-
86
- 1. Load the crispy tag: ``{% load crispy_forms_tags %}``
87
- 2. Add ``FormHelper`` to your form and use crispy-forms to set-up your form
88
- 3. Use the crispy tag ``{% crispy form %}`` in your template
89
-
90
- .. _daisyUI: https://daisyui.com
91
- .. _crispy-tailwind: https://github.com/django-crispy-forms/crispy-tailwind
92
- .. _django-crispy-forms: https://github.com/django-crispy-forms/django-crispy-forms
93
-