django-cards 0.9.5__tar.gz → 0.9.7__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {django-cards-0.9.5 → django-cards-0.9.7}/PKG-INFO +1 -5
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/base.py +6 -1
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/templates/cards/standard/default_body.html +4 -4
- {django-cards-0.9.5 → django-cards-0.9.7}/django_cards.egg-info/PKG-INFO +1 -5
- {django-cards-0.9.5 → django-cards-0.9.7}/setup.py +1 -1
- {django-cards-0.9.5 → django-cards-0.9.7}/LICENSE +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/MANIFEST.in +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/README.md +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/__init__.py +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/apps.py +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/card_list/__init__.py +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/card_list/base.py +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/card_list/main.py +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/card_list/tree.py +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/includes.py +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/standard.py +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/default/32px.png +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/default/40px.png +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/default/style.css +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/default/style.min.css +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/default/throbber.gif +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/default-dark/32px.png +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/default-dark/40px.png +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/default-dark/style.css +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/default-dark/style.min.css +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/default-dark/throbber.gif +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/proton/30px.png +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/proton/32px.png +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-bold-webfont.eot +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-bold-webfont.svg +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-bold-webfont.ttf +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-bold-webfont.woff +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-extralight-webfont.eot +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-extralight-webfont.svg +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-extralight-webfont.ttf +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-extralight-webfont.woff +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-regular-webfont.eot +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-regular-webfont.svg +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-regular-webfont.ttf +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-regular-webfont.woff +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/proton/style.css +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/proton/style.min.css +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/proton/throbber.gif +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/js/jstree.js +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/js/jstree.min.js +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/templates/cards/groups/groups.html +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/templates/cards/standard/blank.html +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/templates/cards/standard/card_group.html +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/templates/cards/standard/datatable.html +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/templates/cards/standard/default.html +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/templates/cards/standard/html.html +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/templates/cards/standard/list_selection.html +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/templates/cards/standard/message.html +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/templates/cards/standard/table.html +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/templates/cards/standard/table_body.html +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/templates/cards/standard/tree_selection.html +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/templatetags/__init__.py +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/templatetags/django_cards_tags.py +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/cards/url_converters.py +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/django_cards.egg-info/SOURCES.txt +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/django_cards.egg-info/dependency_links.txt +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/django_cards.egg-info/top_level.txt +0 -0
- {django-cards-0.9.5 → django-cards-0.9.7}/setup.cfg +0 -0
@@ -1,11 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: django-cards
|
3
|
-
Version: 0.9.
|
3
|
+
Version: 0.9.7
|
4
4
|
Summary: Django app that allows you make cards
|
5
5
|
Home-page: https://github.com/django-advance-utils/django-cards
|
6
6
|
Author: Thomas Turner
|
7
|
-
License: UNKNOWN
|
8
|
-
Platform: UNKNOWN
|
9
7
|
Classifier: Programming Language :: Python :: 3
|
10
8
|
Classifier: License :: OSI Approved :: MIT License
|
11
9
|
Classifier: Operating System :: OS Independent
|
@@ -18,5 +16,3 @@ License-File: LICENSE
|
|
18
16
|
|
19
17
|
# django-cards
|
20
18
|
Django Cards
|
21
|
-
|
22
|
-
|
@@ -118,6 +118,7 @@ class CardBase:
|
|
118
118
|
extra_info['datatable_id'] = kwargs.get('datatable_id', self.code)
|
119
119
|
extra_info['datatable'] = kwargs.get('datatable')
|
120
120
|
extra_info['datatable_model'] = kwargs.get('datatable_model')
|
121
|
+
extra_info['setup_table'] = kwargs.get('setup_table')
|
121
122
|
if group_type == CARD_TYPE_ORDERED_DATATABLE:
|
122
123
|
extra_info['order_field'] = kwargs.get('order_field', 'order')
|
123
124
|
elif group_type == CARD_TYPE_HTML:
|
@@ -403,7 +404,11 @@ class CardBase:
|
|
403
404
|
else:
|
404
405
|
table = self.extra_card_info['datatable']
|
405
406
|
setup_table_field = 'setup_table'
|
406
|
-
if self.
|
407
|
+
if self.extra_card_info['setup_table'] is not None:
|
408
|
+
field_setup_table_field = f'setup_table_{self.extra_card_info["setup_table"]}'
|
409
|
+
if hasattr(self.view, field_setup_table_field):
|
410
|
+
setup_table_field = field_setup_table_field
|
411
|
+
elif self.code is not None:
|
407
412
|
field_setup_table_field = f'setup_table_{self.code}'
|
408
413
|
if hasattr(self.view, field_setup_table_field):
|
409
414
|
setup_table_field = field_setup_table_field
|
@@ -4,10 +4,10 @@
|
|
4
4
|
<div class="list-group">
|
5
5
|
{% for row in card.rows %}
|
6
6
|
{% if row.type == 'html' %}<div class="{{ item_css_class }}">{{ row.html|safe }}</div>{% else %}
|
7
|
-
{% if row.type == 'multiple' %}<div class="row">{% endif %}
|
7
|
+
{% if row.type == 'multiple' %}<div class="{{ item_css_class }}"><div class="row">{% endif %}
|
8
8
|
{% for entry in row.entries %}
|
9
9
|
{% if entry.entry_css_class %}<div class="{{ entry.entry_css_class }}">{% endif %}
|
10
|
-
{% if entry.link %}<a class="{{ item_css_class }} cards-list-group-item" href="{{ entry.link }}" style="{{ item_css }}">{%
|
10
|
+
{% if entry.link %}<a class="{{ item_css_class }} cards-list-group-item" href="{{ entry.link }}" style="{{ item_css }}">{% elif row.type != 'multiple' %}<div class="{{ item_css_class }}" style="{{ item_css }}">{% endif %}
|
11
11
|
{% if entry.label %}
|
12
12
|
<div class="d-flex"><label class="mr-auto">{{ entry.label|safe }}</label>{{ entry.menu.render }}</div>
|
13
13
|
{% if entry.multiple_lines %}
|
@@ -20,10 +20,10 @@
|
|
20
20
|
{% else %}
|
21
21
|
{{ entry.html|safe }}
|
22
22
|
{% endif %}
|
23
|
-
{% if entry.link %}</a>{%
|
23
|
+
{% if entry.link %}</a>{% elif row.type != 'multiple' %}</div>{% endif %}
|
24
24
|
{% if entry.entry_css_class %}</div>{% endif %}
|
25
25
|
{% endfor %}
|
26
|
-
{% if row.type == 'multiple' %}</div>{% endif %}
|
26
|
+
{% if row.type == 'multiple' %}</div></div>{% endif %}
|
27
27
|
{% endif %}
|
28
28
|
{% endfor %}
|
29
29
|
</div>
|
@@ -1,11 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: django-cards
|
3
|
-
Version: 0.9.
|
3
|
+
Version: 0.9.7
|
4
4
|
Summary: Django app that allows you make cards
|
5
5
|
Home-page: https://github.com/django-advance-utils/django-cards
|
6
6
|
Author: Thomas Turner
|
7
|
-
License: UNKNOWN
|
8
|
-
Platform: UNKNOWN
|
9
7
|
Classifier: Programming Language :: Python :: 3
|
10
8
|
Classifier: License :: OSI Approved :: MIT License
|
11
9
|
Classifier: Operating System :: OS Independent
|
@@ -18,5 +16,3 @@ License-File: LICENSE
|
|
18
16
|
|
19
17
|
# django-cards
|
20
18
|
Django Cards
|
21
|
-
|
22
|
-
|
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.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/default/32px.png
RENAMED
File without changes
|
{django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/default/40px.png
RENAMED
File without changes
|
{django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/default/style.css
RENAMED
File without changes
|
{django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/default/style.min.css
RENAMED
File without changes
|
{django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/default/throbber.gif
RENAMED
File without changes
|
{django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/default-dark/32px.png
RENAMED
File without changes
|
{django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/default-dark/40px.png
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/proton/30px.png
RENAMED
File without changes
|
{django-cards-0.9.5 → django-cards-0.9.7}/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.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/proton/style.css
RENAMED
File without changes
|
{django-cards-0.9.5 → django-cards-0.9.7}/cards/static/cards/jstree/css/themes/proton/style.min.css
RENAMED
File without changes
|
{django-cards-0.9.5 → django-cards-0.9.7}/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
|
File without changes
|
{django-cards-0.9.5 → django-cards-0.9.7}/cards/templates/cards/standard/list_selection.html
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{django-cards-0.9.5 → django-cards-0.9.7}/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
|