django-cards 0.11.4__tar.gz → 0.11.6__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {django-cards-0.11.4/django_cards.egg-info → django-cards-0.11.6}/PKG-INFO +1 -1
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/base.py +12 -4
- {django-cards-0.11.4 → django-cards-0.11.6/django_cards.egg-info}/PKG-INFO +1 -1
- {django-cards-0.11.4 → django-cards-0.11.6}/setup.py +1 -1
- {django-cards-0.11.4 → django-cards-0.11.6}/LICENSE +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/MANIFEST.in +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/README.md +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/__init__.py +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/apps.py +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/card_list/__init__.py +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/card_list/base.py +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/card_list/main.py +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/card_list/tree.py +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/includes.py +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/standard.py +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/default/32px.png +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/default/40px.png +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/default/style.css +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/default/style.min.css +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/default/throbber.gif +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/default-dark/32px.png +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/default-dark/40px.png +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/default-dark/style.css +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/default-dark/style.min.css +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/default-dark/throbber.gif +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/proton/30px.png +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/proton/32px.png +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-bold-webfont.eot +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-bold-webfont.svg +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-bold-webfont.ttf +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-bold-webfont.woff +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-extralight-webfont.eot +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-extralight-webfont.svg +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-extralight-webfont.ttf +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-extralight-webfont.woff +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-regular-webfont.eot +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-regular-webfont.svg +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-regular-webfont.ttf +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-regular-webfont.woff +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/proton/style.css +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/proton/style.min.css +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/proton/throbber.gif +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/static/cards/jstree/js/jstree.js +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/static/cards/jstree/js/jstree.min.js +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/templates/cards/groups/groups.html +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/templates/cards/standard/blank.html +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/templates/cards/standard/card_group.html +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/templates/cards/standard/datatable.html +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/templates/cards/standard/default.html +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/templates/cards/standard/default_body.html +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/templates/cards/standard/html.html +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/templates/cards/standard/list_selection.html +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/templates/cards/standard/message.html +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/templates/cards/standard/table.html +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/templates/cards/standard/table_body.html +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/templates/cards/standard/tree_selection.html +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/templatetags/__init__.py +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/templatetags/django_cards_tags.py +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/cards/url_converters.py +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/django_cards.egg-info/SOURCES.txt +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/django_cards.egg-info/dependency_links.txt +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/django_cards.egg-info/top_level.txt +0 -0
- {django-cards-0.11.4 → django-cards-0.11.6}/setup.cfg +0 -0
@@ -82,7 +82,8 @@ class CardBase:
|
|
82
82
|
menu=None, tab_menu=None, template_name=None, call_details_data=False,
|
83
83
|
group_type=CARD_TYPE_STANDARD, show_created_modified_dates=False,
|
84
84
|
footer=None, extra_card_context=None,
|
85
|
-
is_empty=False, empty_template_name=None, empty_message='N/A',
|
85
|
+
is_empty=False, empty_template_name=None, empty_message='N/A',
|
86
|
+
collapsed=None, hidden_if_blank_or_none=None, **kwargs):
|
86
87
|
|
87
88
|
if code is None:
|
88
89
|
code = random_string()
|
@@ -98,7 +99,10 @@ class CardBase:
|
|
98
99
|
self.rows = []
|
99
100
|
self._row_styles = {}
|
100
101
|
self._default_row_styles = None
|
101
|
-
|
102
|
+
if title is not None:
|
103
|
+
self.title = mark_safe(title)
|
104
|
+
else:
|
105
|
+
self.title = None
|
102
106
|
self.created_modified_dates = self.get_created_modified_dates(details_object=details_object)
|
103
107
|
if isinstance(menu, (list, tuple)):
|
104
108
|
menu = HtmlMenu(self.request, self.button_menu_type).add_items(*menu)
|
@@ -109,6 +113,7 @@ class CardBase:
|
|
109
113
|
self.call_details_data = call_details_data
|
110
114
|
self.enable_collapse = collapsed is not None
|
111
115
|
self.collapsed = collapsed
|
116
|
+
self.hidden_if_blank_or_none = hidden_if_blank_or_none
|
112
117
|
|
113
118
|
if is_empty:
|
114
119
|
self.group_type = CARD_TYPE_STANDARD
|
@@ -211,7 +216,7 @@ class CardBase:
|
|
211
216
|
self.rows.append(row)
|
212
217
|
|
213
218
|
def add_entry(self, value=None, field=None, label=None, entry_css_class=None, css_class=None,
|
214
|
-
default='N/A', link=None, hidden=False, hidden_if_blank_or_none=
|
219
|
+
default='N/A', link=None, hidden=False, hidden_if_blank_or_none=None,
|
215
220
|
html_override=None, value_method=None, value_type=None, default_if=None, row_style=None, **kwargs):
|
216
221
|
|
217
222
|
entry = self._add_entry_internal(value=value,
|
@@ -328,13 +333,16 @@ class CardBase:
|
|
328
333
|
**kwargs)
|
329
334
|
|
330
335
|
def _add_entry_internal(self, value=None, field=None, label=None, default='N/A', link=None,
|
331
|
-
hidden=False, hidden_if_blank_or_none=
|
336
|
+
hidden=False, hidden_if_blank_or_none=None, html_override=None,
|
332
337
|
value_method=None, value_type=None,
|
333
338
|
entry_css_class=None, css_class=None, menu=None, default_if=None, row_style=None,
|
334
339
|
**kwargs):
|
335
340
|
|
336
341
|
value, label, field_type = self.get_field_value(value=value, field=field, label=label)
|
337
342
|
|
343
|
+
if hidden_if_blank_or_none is None:
|
344
|
+
hidden_if_blank_or_none = self.hidden_if_blank_or_none
|
345
|
+
|
338
346
|
if hidden or (hidden_if_blank_or_none and (value is None or value == '')):
|
339
347
|
return None
|
340
348
|
if isinstance(value, bool):
|
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.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/default/32px.png
RENAMED
File without changes
|
{django-cards-0.11.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/default/40px.png
RENAMED
File without changes
|
{django-cards-0.11.4 → django-cards-0.11.6}/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.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/proton/30px.png
RENAMED
File without changes
|
{django-cards-0.11.4 → django-cards-0.11.6}/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.4 → django-cards-0.11.6}/cards/static/cards/jstree/css/themes/proton/style.css
RENAMED
File without changes
|
File without changes
|
{django-cards-0.11.4 → django-cards-0.11.6}/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.4 → django-cards-0.11.6}/cards/templates/cards/standard/default_body.html
RENAMED
File without changes
|
File without changes
|
{django-cards-0.11.4 → django-cards-0.11.6}/cards/templates/cards/standard/list_selection.html
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{django-cards-0.11.4 → django-cards-0.11.6}/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
|