django-cards 0.11.0__tar.gz → 0.11.1__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {django-cards-0.11.0/django_cards.egg-info → django-cards-0.11.1}/PKG-INFO +1 -1
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/base.py +11 -3
- {django-cards-0.11.0 → django-cards-0.11.1/django_cards.egg-info}/PKG-INFO +1 -1
- {django-cards-0.11.0 → django-cards-0.11.1}/setup.py +1 -1
- {django-cards-0.11.0 → django-cards-0.11.1}/LICENSE +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/MANIFEST.in +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/README.md +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/__init__.py +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/apps.py +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/card_list/__init__.py +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/card_list/base.py +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/card_list/main.py +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/card_list/tree.py +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/includes.py +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/standard.py +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/default/32px.png +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/default/40px.png +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/default/style.css +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/default/style.min.css +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/default/throbber.gif +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/default-dark/32px.png +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/default-dark/40px.png +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/default-dark/style.css +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/default-dark/style.min.css +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/default-dark/throbber.gif +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/proton/30px.png +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/proton/32px.png +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-bold-webfont.eot +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-bold-webfont.svg +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-bold-webfont.ttf +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-bold-webfont.woff +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-extralight-webfont.eot +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-extralight-webfont.svg +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-extralight-webfont.ttf +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-extralight-webfont.woff +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-regular-webfont.eot +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-regular-webfont.svg +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-regular-webfont.ttf +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-regular-webfont.woff +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/proton/style.css +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/proton/style.min.css +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/proton/throbber.gif +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/js/jstree.js +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/js/jstree.min.js +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/templates/cards/groups/groups.html +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/templates/cards/standard/blank.html +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/templates/cards/standard/card_group.html +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/templates/cards/standard/datatable.html +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/templates/cards/standard/default.html +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/templates/cards/standard/default_body.html +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/templates/cards/standard/html.html +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/templates/cards/standard/list_selection.html +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/templates/cards/standard/message.html +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/templates/cards/standard/table.html +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/templates/cards/standard/table_body.html +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/templates/cards/standard/tree_selection.html +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/templatetags/__init__.py +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/templatetags/django_cards_tags.py +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/cards/url_converters.py +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/django_cards.egg-info/SOURCES.txt +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/django_cards.egg-info/dependency_links.txt +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/django_cards.egg-info/top_level.txt +0 -0
- {django-cards-0.11.0 → django-cards-0.11.1}/setup.cfg +0 -0
@@ -134,7 +134,7 @@ class CardBase:
|
|
134
134
|
|
135
135
|
def add_boolean_entry(self, value, label=None, hidden=False, html_override=None,
|
136
136
|
entry_css_class=None, css_class=None,
|
137
|
-
menu=None, default_if=None, value_type=None, **kwargs):
|
137
|
+
menu=None, default_if=None, value_type=None, row_style=None, **kwargs):
|
138
138
|
if value:
|
139
139
|
entry = self._add_entry_internal(value='<i class="fas fa-check" style="color:green;"></i>',
|
140
140
|
label=label,
|
@@ -145,6 +145,7 @@ class CardBase:
|
|
145
145
|
menu=menu,
|
146
146
|
default_if=default_if,
|
147
147
|
value_type=value_type,
|
148
|
+
row_style=row_style,
|
148
149
|
**kwargs)
|
149
150
|
else:
|
150
151
|
entry = self._add_entry_internal(value='<i class="fas fa-times" style="color:red;"></i>',
|
@@ -156,11 +157,13 @@ class CardBase:
|
|
156
157
|
menu=menu,
|
157
158
|
default_if=default_if,
|
158
159
|
value_type=value_type,
|
160
|
+
row_style=row_style,
|
159
161
|
**kwargs)
|
160
162
|
return entry
|
161
163
|
|
162
164
|
def add_date_entry(self, value, label=None, hidden=False, html_override=None,
|
163
|
-
entry_css_class=None, css_class=None, menu=None, default_if=None,
|
165
|
+
entry_css_class=None, css_class=None, menu=None, default_if=None,
|
166
|
+
value_type=None, row_style=None, **kwargs):
|
164
167
|
new_value = value.strftime('%d/%m/%y')
|
165
168
|
return self._add_entry_internal(value=new_value,
|
166
169
|
label=label,
|
@@ -171,6 +174,7 @@ class CardBase:
|
|
171
174
|
menu=menu,
|
172
175
|
default_if=default_if,
|
173
176
|
value_type=value_type,
|
177
|
+
row_style=row_style,
|
174
178
|
**kwargs)
|
175
179
|
|
176
180
|
def add_row(self, *args, extra_row_kwargs=None):
|
@@ -284,7 +288,7 @@ class CardBase:
|
|
284
288
|
def _add_many_to_many_field(self, label, query, query_filter=None, m2m_field=None,
|
285
289
|
html_barge=None, default='N/A', html_override=None,
|
286
290
|
entry_css_class=None, css_class=None, menu=None,
|
287
|
-
default_if=None, value_type=None, **kwargs):
|
291
|
+
default_if=None, value_type=None, row_style=None, **kwargs):
|
288
292
|
if html_barge is None:
|
289
293
|
html_barge = '<span class="small badge badge-pill badge-primary"> %1% </span> '
|
290
294
|
|
@@ -313,6 +317,7 @@ class CardBase:
|
|
313
317
|
menu=menu,
|
314
318
|
default_if=default_if,
|
315
319
|
value_type=value_type,
|
320
|
+
row_style=row_style,
|
316
321
|
**kwargs)
|
317
322
|
|
318
323
|
def _add_entry_internal(self, value=None, field=None, label=None, default='N/A', link=None,
|
@@ -335,6 +340,7 @@ class CardBase:
|
|
335
340
|
menu=menu,
|
336
341
|
default_if=default_if,
|
337
342
|
value_type=value_type,
|
343
|
+
row_style=row_style,
|
338
344
|
**kwargs)
|
339
345
|
elif isinstance(value, datetime.date):
|
340
346
|
return self.add_date_entry(value=value,
|
@@ -344,6 +350,7 @@ class CardBase:
|
|
344
350
|
menu=menu,
|
345
351
|
default_if=default_if,
|
346
352
|
value_type=value_type,
|
353
|
+
row_style=row_style,
|
347
354
|
**kwargs)
|
348
355
|
elif hasattr(value, 'through'):
|
349
356
|
return self._add_many_to_many_field(label=label,
|
@@ -355,6 +362,7 @@ class CardBase:
|
|
355
362
|
menu=menu,
|
356
363
|
default_if=default_if,
|
357
364
|
value_type=value_type,
|
365
|
+
row_style=row_style,
|
358
366
|
**kwargs)
|
359
367
|
else:
|
360
368
|
if value is None or value == '' or default_if:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/default/32px.png
RENAMED
File without changes
|
{django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/default/40px.png
RENAMED
File without changes
|
{django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/default/style.css
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/proton/30px.png
RENAMED
File without changes
|
{django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/proton/32px.png
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/proton/style.css
RENAMED
File without changes
|
File without changes
|
{django-cards-0.11.0 → django-cards-0.11.1}/cards/static/cards/jstree/css/themes/proton/throbber.gif
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{django-cards-0.11.0 → django-cards-0.11.1}/cards/templates/cards/standard/default_body.html
RENAMED
File without changes
|
File without changes
|
{django-cards-0.11.0 → django-cards-0.11.1}/cards/templates/cards/standard/list_selection.html
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{django-cards-0.11.0 → django-cards-0.11.1}/cards/templates/cards/standard/tree_selection.html
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|