django-cards 0.11.3__tar.gz → 0.11.4__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {django-cards-0.11.3/django_cards.egg-info → django-cards-0.11.4}/PKG-INFO +1 -1
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/card_list/main.py +9 -16
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/standard.py +23 -0
- {django-cards-0.11.3 → django-cards-0.11.4/django_cards.egg-info}/PKG-INFO +1 -1
- {django-cards-0.11.3 → django-cards-0.11.4}/setup.py +1 -1
- {django-cards-0.11.3 → django-cards-0.11.4}/LICENSE +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/MANIFEST.in +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/README.md +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/__init__.py +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/apps.py +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/base.py +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/card_list/__init__.py +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/card_list/base.py +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/card_list/tree.py +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/includes.py +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/default/32px.png +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/default/40px.png +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/default/style.css +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/default/style.min.css +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/default/throbber.gif +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/default-dark/32px.png +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/default-dark/40px.png +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/default-dark/style.css +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/default-dark/style.min.css +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/default-dark/throbber.gif +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/proton/30px.png +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/proton/32px.png +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-bold-webfont.eot +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-bold-webfont.svg +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-bold-webfont.ttf +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-bold-webfont.woff +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-extralight-webfont.eot +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-extralight-webfont.svg +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-extralight-webfont.ttf +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-extralight-webfont.woff +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-regular-webfont.eot +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-regular-webfont.svg +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-regular-webfont.ttf +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/proton/fonts/titillium/titilliumweb-regular-webfont.woff +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/proton/style.css +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/proton/style.min.css +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/proton/throbber.gif +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/static/cards/jstree/js/jstree.js +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/static/cards/jstree/js/jstree.min.js +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/templates/cards/groups/groups.html +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/templates/cards/standard/blank.html +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/templates/cards/standard/card_group.html +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/templates/cards/standard/datatable.html +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/templates/cards/standard/default.html +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/templates/cards/standard/default_body.html +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/templates/cards/standard/html.html +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/templates/cards/standard/list_selection.html +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/templates/cards/standard/message.html +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/templates/cards/standard/table.html +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/templates/cards/standard/table_body.html +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/templates/cards/standard/tree_selection.html +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/templatetags/__init__.py +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/templatetags/django_cards_tags.py +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/cards/url_converters.py +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/django_cards.egg-info/SOURCES.txt +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/django_cards.egg-info/dependency_links.txt +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/django_cards.egg-info/top_level.txt +0 -0
- {django-cards-0.11.3 → django-cards-0.11.4}/setup.cfg +0 -0
@@ -20,7 +20,8 @@ class CardListMixin(CardListBaseMixin):
|
|
20
20
|
|
21
21
|
model = None
|
22
22
|
|
23
|
-
def
|
23
|
+
def setup_cards(self):
|
24
|
+
|
24
25
|
list_menu = self.get_list_menu()
|
25
26
|
selected_id = self.slug.get('pk')
|
26
27
|
self.display_list_entries()
|
@@ -32,22 +33,14 @@ class CardListMixin(CardListBaseMixin):
|
|
32
33
|
if selected_id:
|
33
34
|
selected_id = int(selected_id)
|
34
35
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
36
|
+
self.add_list_card(card_name='list_card',
|
37
|
+
list_entries=self.list_entries,
|
38
|
+
list_title=self.list_title,
|
39
|
+
selected_id=selected_id,
|
40
|
+
list_menu=list_menu,
|
41
|
+
list_template_name=self.list_template_name,
|
42
|
+
empty_list_message=self.empty_list_message())
|
41
43
|
|
42
|
-
self.add_card('list_card',
|
43
|
-
title=self.list_title,
|
44
|
-
menu=list_menu,
|
45
|
-
group_type=CARD_TYPE_HTML,
|
46
|
-
template_name=self.list_template_name,
|
47
|
-
extra_card_context=context)
|
48
|
-
|
49
|
-
def setup_cards(self):
|
50
|
-
self.add_list_card()
|
51
44
|
self.add_card('details_card',
|
52
45
|
group_type=CARD_TYPE_HTML,
|
53
46
|
template_name='blank',
|
@@ -91,6 +91,29 @@ class CardMixin:
|
|
91
91
|
return self.add_card(card_name=card_name,
|
92
92
|
group_type=CARD_TYPE_CARD_LAYOUT)
|
93
93
|
|
94
|
+
|
95
|
+
def add_list_card(self, list_entries, card_name=None, list_title='Entries',
|
96
|
+
selected_id='', list_menu=None, list_template_name='list_selection',
|
97
|
+
empty_list_message='No entries setup yet!',
|
98
|
+
extra_card_context=None):
|
99
|
+
|
100
|
+
context = {'list_title': list_title,
|
101
|
+
'entries': list_entries,
|
102
|
+
'selected_id': selected_id,
|
103
|
+
'empty_list_message': empty_list_message,
|
104
|
+
'details_button_action_name': 'details_html',
|
105
|
+
'details_empty_button_action_name': 'empty_details_html'}
|
106
|
+
if extra_card_context is not None:
|
107
|
+
context.update(extra_card_context)
|
108
|
+
|
109
|
+
card = self.add_card(card_name=card_name,
|
110
|
+
title=list_title,
|
111
|
+
menu=list_menu,
|
112
|
+
group_type=CARD_TYPE_HTML,
|
113
|
+
template_name=list_template_name,
|
114
|
+
extra_card_context=context)
|
115
|
+
return card
|
116
|
+
|
94
117
|
def get_context_data(self, **kwargs):
|
95
118
|
self.setup_datatable_cards()
|
96
119
|
self.setup_cards()
|
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.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/default/32px.png
RENAMED
File without changes
|
{django-cards-0.11.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/default/40px.png
RENAMED
File without changes
|
{django-cards-0.11.3 → django-cards-0.11.4}/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.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/proton/30px.png
RENAMED
File without changes
|
{django-cards-0.11.3 → django-cards-0.11.4}/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.3 → django-cards-0.11.4}/cards/static/cards/jstree/css/themes/proton/style.css
RENAMED
File without changes
|
File without changes
|
{django-cards-0.11.3 → django-cards-0.11.4}/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.3 → django-cards-0.11.4}/cards/templates/cards/standard/default_body.html
RENAMED
File without changes
|
File without changes
|
{django-cards-0.11.3 → django-cards-0.11.4}/cards/templates/cards/standard/list_selection.html
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{django-cards-0.11.3 → django-cards-0.11.4}/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
|