Parcourir la source

Merge branch 'dev'

Denis K il y a 8 ans
Parent
commit
ee440ce7c3
32 fichiers modifiés avec 596 ajouts et 12 suppressions
  1. BIN
      jet/dashboard/locale/cs/LC_MESSAGES/django.mo
  2. 390 0
      jet/dashboard/locale/cs/LC_MESSAGES/django.po
  3. BIN
      jet/dashboard/locale/cs/LC_MESSAGES/djangojs.mo
  4. 28 0
      jet/dashboard/locale/cs/LC_MESSAGES/djangojs.po
  5. 6 0
      jet/dashboard/modules.py
  6. 4 2
      jet/dashboard/templates/jet.dashboard/module.html
  7. BIN
      jet/locale/cs/LC_MESSAGES/django.mo
  8. 70 0
      jet/locale/cs/LC_MESSAGES/django.po
  9. BIN
      jet/locale/cs/LC_MESSAGES/djangojs.mo
  10. 44 0
      jet/locale/cs/LC_MESSAGES/djangojs.po
  11. 11 2
      jet/management/commands/jet_custom_apps_example.py
  12. 3 0
      jet/static/admin/js/SelectFilter2.js
  13. 1 0
      jet/static/jet/css/_delete-confirmation.scss
  14. 0 0
      jet/static/jet/css/themes/default/base.css
  15. 0 0
      jet/static/jet/css/themes/default/base.css.map
  16. 0 0
      jet/static/jet/css/themes/green/base.css
  17. 0 0
      jet/static/jet/css/themes/green/base.css.map
  18. 0 0
      jet/static/jet/css/themes/light-blue/base.css
  19. 0 0
      jet/static/jet/css/themes/light-blue/base.css.map
  20. 0 0
      jet/static/jet/css/themes/light-gray/base.css
  21. 0 0
      jet/static/jet/css/themes/light-gray/base.css.map
  22. 0 0
      jet/static/jet/css/themes/light-green/base.css
  23. 0 0
      jet/static/jet/css/themes/light-green/base.css.map
  24. 0 0
      jet/static/jet/css/themes/light-violet/base.css
  25. 0 0
      jet/static/jet/css/themes/light-violet/base.css.map
  26. 0 0
      jet/static/jet/css/vendor.css
  27. 0 0
      jet/static/jet/js/build/bundle.min.js
  28. 10 1
      jet/static/jet/js/src/features/compact-inline.js
  29. 1 1
      jet/static/jet/js/src/features/dashboard.js
  30. 4 3
      jet/static/jet/js/src/features/inlines.js
  31. 20 3
      jet/static/jet/js/src/features/related-popups.js
  32. 4 0
      jet/static/jet/js/src/features/selects.js

BIN
jet/dashboard/locale/cs/LC_MESSAGES/django.mo


+ 390 - 0
jet/dashboard/locale/cs/LC_MESSAGES/django.po

@@ -0,0 +1,390 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2015-12-28 13:32+0000\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
+"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
+
+#: dashboard/modules.py:138 templates/admin/base.html:281
+msgid "URL"
+msgstr "URL"
+
+#: dashboard/dashboard.py:207
+msgid "Quick links"
+msgstr "Rychlé odkazy"
+
+#: dashboard/dashboard.py:213
+msgid "Return to site"
+msgstr "Vrátit na stránku"
+
+#: dashboard/dashboard.py:224 dashboard/modules.py:268
+msgid "Applications"
+msgstr "Aplikace"
+
+#: dashboard/dashboard.py:232
+msgid "Administration"
+msgstr "Administrace"
+
+#: dashboard/dashboard.py:240 dashboard/modules.py:413
+msgid "Recent Actions"
+msgstr "Poslední akce"
+
+#: dashboard/dashboard.py:248
+msgid "Latest Django News"
+msgstr "Nejnovější zprávy o Djangu"
+
+#: dashboard/dashboard.py:257
+msgid "Support"
+msgstr "Podpora"
+
+#: dashboard/dashboard.py:260
+msgid "Django documentation"
+msgstr "Django dokumentace"
+
+#: dashboard/dashboard.py:265
+msgid "Django \"django-users\" mailing list"
+msgstr "Django \"django-users\" mailing list"
+
+#: dashboard/dashboard.py:270
+msgid "Django irc channel"
+msgstr "Django irc kanál"
+
+#: dashboard/dashboard.py:285
+msgid "Application models"
+msgstr "Modely aplikace"
+
+#: dashboard/models.py:11 dashboard/modules.py:139
+msgid "Title"
+msgstr "Název"
+
+#: dashboard/modules.py:140
+msgid "External link"
+msgstr "Externí odkazy"
+
+#: dashboard/modules.py:144
+msgid "Layout"
+msgstr "Rozložení"
+
+#: dashboard/modules.py:144
+msgid "Stacked"
+msgstr ""
+
+#: dashboard/modules.py:144
+msgid "Inline"
+msgstr ""
+
+#: dashboard/modules.py:190 dashboard/modules.py:214
+msgid "Links"
+msgstr "Odkazy"
+
+#: dashboard/modules.py:213
+msgid "Link"
+msgstr "Odkaz"
+
+#: dashboard/modules.py:340
+msgid "Models"
+msgstr "Modely"
+
+#: dashboard/modules.py:383 dashboard/modules.py:490
+msgid "Items limit"
+msgstr "Limit položek"
+
+#: dashboard/modules.py:491
+msgid "Feed URL"
+msgstr "URL feedu"
+
+#: dashboard/modules.py:522
+msgid "RSS Feed"
+msgstr "RSS Feed"
+
+#: dashboard/modules.py:568
+msgid "You must install the FeedParser python module"
+msgstr "Musíte nainstalovat FeedParser python modul"
+
+#: dashboard/modules.py:573
+msgid "You must provide a valid feed URL"
+msgstr "Musíte zadat valídní URL feedu"
+
+#: dashboard/views.py:17
+msgid "Widget was successfully updated"
+msgstr "Widget byl úspěšně aktualizován"
+
+#: dashboard/views.py:89 dashboard/views.py:90
+msgid "Items"
+msgstr "Položky"
+
+#: dashboard/views.py:152
+msgid "Widget has been successfully added"
+msgstr "Widget byl úspěšně přidán"
+
+#: dashboard/dashboard_modules/google_analytics.py:145
+#: dashboard/dashboard_modules/yandex_metrika.py:102
+msgid "Revoke access"
+msgstr "Odebrat přístup"
+
+#: dashboard/dashboard_modules/google_analytics.py:150
+#: dashboard/dashboard_modules/yandex_metrika.py:107
+msgid "Grant access"
+msgstr "Povolit přístup"
+
+#: dashboard/dashboard_modules/google_analytics.py:163
+#: dashboard/dashboard_modules/yandex_metrika.py:117
+msgid "Access"
+msgstr "Přístup"
+
+#: dashboard/dashboard_modules/google_analytics.py:164
+#: dashboard/dashboard_modules/yandex_metrika.py:118
+msgid "Counter"
+msgstr "Počítadlo"
+
+#: dashboard/dashboard_modules/google_analytics.py:165
+#: dashboard/dashboard_modules/yandex_metrika.py:119
+msgid "Statistics period"
+msgstr "Statistická perioda"
+
+#: dashboard/dashboard_modules/google_analytics.py:166
+#: dashboard/dashboard_modules/yandex_metrika.py:120
+msgid "Today"
+msgstr "Dnes"
+
+#: dashboard/dashboard_modules/google_analytics.py:167
+#: dashboard/dashboard_modules/yandex_metrika.py:121
+msgid "Last week"
+msgstr "Poslední týden"
+
+#: dashboard/dashboard_modules/google_analytics.py:168
+#: dashboard/dashboard_modules/yandex_metrika.py:122
+msgid "Last month"
+msgstr "Poslední měsíc"
+
+#: dashboard/dashboard_modules/google_analytics.py:169
+#: dashboard/dashboard_modules/yandex_metrika.py:123
+msgid "Last quarter"
+msgstr "Poslední čtvrtletí"
+
+#: dashboard/dashboard_modules/google_analytics.py:170
+#: dashboard/dashboard_modules/yandex_metrika.py:124
+msgid "Last year"
+msgstr "Poslední rok"
+
+#: dashboard/dashboard_modules/google_analytics.py:180
+#: dashboard/dashboard_modules/yandex_metrika.py:134
+msgid "none"
+msgstr "nic"
+
+#: dashboard/dashboard_modules/google_analytics.py:183
+#: dashboard/dashboard_modules/yandex_metrika.py:137
+msgid "grant access first"
+msgstr "povolte nejdřív přístup"
+
+#: dashboard/dashboard_modules/google_analytics.py:183
+#: dashboard/dashboard_modules/yandex_metrika.py:137
+msgid "counters loading failed"
+msgstr "nepodařilo se načíst počítadla"
+
+#: dashboard/dashboard_modules/google_analytics.py:188
+#: dashboard/dashboard_modules/yandex_metrika.py:142
+msgid "Show"
+msgstr "Zobrazit"
+
+#: dashboard/dashboard_modules/google_analytics.py:193
+#: dashboard/dashboard_modules/google_analytics.py:201
+#: dashboard/dashboard_modules/yandex_metrika.py:147
+#: dashboard/dashboard_modules/yandex_metrika.py:155
+msgid "Group"
+msgstr "Skupina"
+
+#: dashboard/dashboard_modules/google_analytics.py:194
+#: dashboard/dashboard_modules/google_analytics.py:202
+#: dashboard/dashboard_modules/yandex_metrika.py:148
+#: dashboard/dashboard_modules/yandex_metrika.py:156
+msgid "By day"
+msgstr "Dle dne"
+
+#: dashboard/dashboard_modules/google_analytics.py:195
+#: dashboard/dashboard_modules/google_analytics.py:203
+#: dashboard/dashboard_modules/yandex_metrika.py:149
+#: dashboard/dashboard_modules/yandex_metrika.py:157
+msgid "By week"
+msgstr "Dle týdne"
+
+#: dashboard/dashboard_modules/google_analytics.py:196
+#: dashboard/dashboard_modules/google_analytics.py:204
+#: dashboard/dashboard_modules/yandex_metrika.py:150
+#: dashboard/dashboard_modules/yandex_metrika.py:158
+msgid "By month"
+msgstr "Dle měsíce"
+
+#: dashboard/dashboard_modules/google_analytics.py:277
+#, python-format
+msgid ""
+"Please <a href=\"%s\">attach Google account and choose Google Analytics "
+"counter</a> to start using widget"
+msgstr ""
+"Prosím <a href=\"%s\">připojte Google účet a vyberte Google Analytics "
+"počítadlo</a> pro využívání widgetu"
+
+#: dashboard/dashboard_modules/google_analytics.py:280
+#, python-format
+msgid ""
+"Please <a href=\"%s\">select Google Analytics counter</a> to start using "
+"widget"
+msgstr ""
+"Prosím <a href=\"%s\">vyberte Google Analytics počítadlo</a> pro využívání "
+"widgetu"
+
+#: dashboard/dashboard_modules/google_analytics.py:299
+#: dashboard/dashboard_modules/google_analytics_views.py:42
+#: dashboard/dashboard_modules/yandex_metrika.py:236
+#: dashboard/dashboard_modules/yandex_metrika_views.py:37
+msgid "API request failed."
+msgstr "Požadavek API se nezdařil."
+
+#: dashboard/dashboard_modules/google_analytics.py:301
+#: dashboard/dashboard_modules/yandex_metrika.py:238
+#, python-format
+msgid " Try to <a href=\"%s\">revoke and grant access</a> again"
+msgstr " Zkuste <a href=\"%s\">zakázat a povolit přístup</a> znovu"
+
+#: dashboard/dashboard_modules/google_analytics.py:311
+msgid "Google Analytics visitors totals"
+msgstr "Celkový počet návštěvníků Google Analytics"
+
+#: dashboard/dashboard_modules/google_analytics.py:189
+#: dashboard/templates/jet.dashboard/modules/google_analytics_period_visitors.html:15
+#: dashboard/dashboard_modules/google_analytics.py:326
+msgid "users"
+msgstr "uživatelé"
+
+#: dashboard/dashboard_modules/google_analytics.py:190
+#: dashboard/templates/jet.dashboard/modules/google_analytics_period_visitors.html:16
+#: dashboard/dashboard_modules/google_analytics.py:327
+msgid "sessions"
+msgstr "sezení"
+
+#: dashboard/dashboard_modules/google_analytics.py:191
+#: dashboard/dashboard_modules/yandex_metrika.py:146
+#: dashboard/templates/jet.dashboard/modules/google_analytics_period_visitors.html:17
+#: dashboard/templates/jet.dashboard/modules/yandex_metrika_period_visitors.html:17
+#: dashboard/dashboard_modules/google_analytics.py:328
+#: dashboard/dashboard_modules/yandex_metrika.py:267
+msgid "views"
+msgstr "zobrazení"
+
+#: dashboard/dashboard_modules/google_analytics.py:330
+#: dashboard/dashboard_modules/google_analytics.py:388
+#: dashboard/dashboard_modules/google_analytics.py:438
+#: dashboard/dashboard_modules/yandex_metrika.py:269
+#: dashboard/dashboard_modules/yandex_metrika.py:321
+#: dashboard/dashboard_modules/yandex_metrika.py:365
+msgid "Bad server response"
+msgstr "Špatná odpověď serveru"
+
+#: dashboard/dashboard_modules/google_analytics.py:340
+msgid "Google Analytics visitors chart"
+msgstr "Graf návštěvníků Google Analytics"
+
+#: dashboard/dashboard_modules/google_analytics.py:398
+msgid "Google Analytics period visitors"
+msgstr "Perioda návštěvníků Google Analytics"
+
+#: dashboard/dashboard_modules/google_analytics_views.py:26
+#: dashboard/dashboard_modules/google_analytics_views.py:46
+#: dashboard/dashboard_modules/yandex_metrika_views.py:23
+#: dashboard/dashboard_modules/yandex_metrika_views.py:45
+msgid "Module not found"
+msgstr "Modul nedostupný"
+
+#: dashboard/dashboard_modules/google_analytics_views.py:44
+#: dashboard/dashboard_modules/yandex_metrika_views.py:43
+msgid "Bad arguments"
+msgstr "Špatné argumenty"
+
+#: dashboard/dashboard_modules/yandex_metrika.py:219
+#, python-format
+msgid ""
+"Please <a href=\"%s\">attach Yandex account and choose Yandex Metrika "
+"counter</a> to start using widget"
+msgstr ""
+
+#: dashboard/dashboard_modules/yandex_metrika.py:222
+#, python-format
+msgid ""
+"Please <a href=\"%s\">select Yandex Metrika counter</a> to start using widget"
+msgstr ""
+
+#: dashboard/dashboard_modules/yandex_metrika.py:250
+msgid "Yandex Metrika visitors totals"
+msgstr ""
+
+#: dashboard/dashboard_modules/yandex_metrika.py:144
+#: dashboard/templates/jet.dashboard/modules/yandex_metrika_period_visitors.html:15
+#: dashboard/dashboard_modules/yandex_metrika.py:265
+msgid "visitors"
+msgstr ""
+
+#: dashboard/dashboard_modules/yandex_metrika.py:145
+#: dashboard/templates/jet.dashboard/modules/yandex_metrika_period_visitors.html:16
+#: dashboard/dashboard_modules/yandex_metrika.py:266
+msgid "visits"
+msgstr ""
+
+#: dashboard/dashboard_modules/yandex_metrika.py:279
+msgid "Yandex Metrika visitors chart"
+msgstr ""
+
+#: dashboard/dashboard_modules/yandex_metrika.py:331
+msgid "Yandex Metrika period visitors"
+msgstr ""
+
+#: dashboard/templates/jet.dashboard/dashboard.html:17
+msgid "Delete widget"
+msgstr "Smazat widget"
+
+#: dashboard/templates/jet.dashboard/dashboard.html:18
+msgid "Are you sure want to delete this widget?"
+msgstr "Opravdu si přejete smazat tento widget?"
+
+#: dashboard/templates/jet.dashboard/dashboard_tools.html:7
+msgid "widgets"
+msgstr "widgety"
+
+#: dashboard/templates/jet.dashboard/dashboard_tools.html:8
+msgid "available"
+msgstr "dostupné"
+
+#: dashboard/templates/jet.dashboard/dashboard_tools.html:13
+msgid "initials"
+msgstr "počáteční"
+
+#: dashboard/templates/jet.dashboard/dashboard_tools.html:21
+#: dashboard/templates/jet.dashboard/dashboard_tools.html:27
+msgid "Reset widgets"
+msgstr "Resetovat widgety"
+
+#: dashboard/templates/jet.dashboard/dashboard_tools.html:28
+msgid "Are you sure want to reset widgets?"
+msgstr "Opravdu si přejete resetovat widgety?"
+
+#: dashboard/templates/jet.dashboard/modules/feed.html:13
+#: dashboard/templates/jet.dashboard/modules/google_analytics_period_visitors.html:34
+#: dashboard/templates/jet.dashboard/modules/google_analytics_visitors_chart.html:30
+#: dashboard/templates/jet.dashboard/modules/google_analytics_visitors_totals.html:23
+#: dashboard/templates/jet.dashboard/modules/link_list.html:26
+#: dashboard/templates/jet.dashboard/modules/yandex_metrika_period_visitors.html:34
+#: dashboard/templates/jet.dashboard/modules/yandex_metrika_visitors_chart.html:30
+#: dashboard/templates/jet.dashboard/modules/yandex_metrika_visitors_totals.html:23
+msgid "Nothing to show"
+msgstr "Nic ke zobrazení"

BIN
jet/dashboard/locale/cs/LC_MESSAGES/djangojs.mo


+ 28 - 0
jet/dashboard/locale/cs/LC_MESSAGES/djangojs.po

@@ -0,0 +1,28 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2015-09-11 12:44+0000\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: static/jet/js/src/features/dashboard.js:79 static/jet/js/src/features/dashboard.js:208
+msgid "Cancel"
+msgstr "Zrušit"
+
+#: static/jet/js/src/features/dashboard.js:203
+msgid "Delete"
+msgstr "Smazat"
+
+#: static/jet/js/src/features/dashboard.js:74
+msgid "Yes"
+msgstr "Ano"

+ 6 - 0
jet/dashboard/modules.py

@@ -245,10 +245,16 @@ class LinkList(DashboardModule):
 
     def settings_dict(self):
         return {
+            'draggable': self.draggable,
+            'deletable': self.deletable,
+            'collapsible': self.collapsible,
             'layout': self.layout
         }
 
     def load_settings(self, settings):
+        self.draggable = settings.get('draggable', self.draggable)
+        self.deletable = settings.get('deletable', self.deletable)
+        self.collapsible = settings.get('collapsible', self.collapsible)
         self.layout = settings.get('layout', self.layout)
 
     def store_children(self):

+ 4 - 2
jet/dashboard/templates/jet.dashboard/module.html

@@ -1,8 +1,10 @@
 {% load i18n %}
 
-<div class="dashboard-item{% if module.collapsible %} collapsible{% endif %}{% if module.model.collapsed %} collapsed{% endif %}{% if module.deletable %} deletable{% endif %}{% if module.ajax_load %} ajax{% endif %}"{% if module.ajax_load %} data-ajax-url="{% url "jet-dashboard:load_dashboard_module" pk=module.model.id %}"{% endif %} data-module-id="{{ module.model.id }}">
+<div class="dashboard-item{% if module.collapsible %} collapsible{% endif %}{% if module.model.collapsed %} collapsed{% endif %}{% if module.deletable %} deletable{% endif %}{% if module.ajax_load %} ajax{% endif %}{% if module.draggable %} draggable{% endif %}"{% if module.ajax_load %} data-ajax-url="{% url "jet-dashboard:load_dashboard_module" pk=module.model.id %}"{% endif %} data-module-id="{{ module.model.id }}">
     <div class="dashboard-item-header">
-        <span class="dashboard-item-header-drag icon-grid"></span>
+        {% if module.draggable %}
+            <span class="dashboard-item-header-drag icon-grid"></span>
+        {% endif %}
         <span class="dashboard-item-header-buttons">
             <a href="{% url "jet-dashboard:update_module" pk=module.model.id %}" title="{% trans "Change" %}"><span class="icon-edit"></span></a>
 

BIN
jet/locale/cs/LC_MESSAGES/django.mo


+ 70 - 0
jet/locale/cs/LC_MESSAGES/django.po

@@ -0,0 +1,70 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2015-12-28 13:32+0000\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
+"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
+
+#: models.py:16 templates/admin/base.html:294
+msgid "bookmarks"
+msgstr "záložky"
+
+#: templates/admin/base.html:133
+msgid "back"
+msgstr "zpět"
+
+#: templates/admin/base.html:60
+msgid "View site"
+msgstr "Zobrazit stránku"
+
+#: templates/admin/base.html:273 templates/admin/base.html:292
+msgid "Add bookmark"
+msgstr "Přidat záložku"
+
+#: templates/admin/base.html:286
+msgid "Delete bookmark"
+msgstr "Smazat záložku"
+
+#: templates/admin/base.html:287
+msgid "Are you sure want to delete this bookmark?"
+msgstr "Opravdu si přejete smazat tuto záložku"
+
+#: templates/admin/base.html:339
+msgid "Application page"
+msgstr "Stránka aplikace"
+
+#: templates/admin/base.html:276
+msgid "Title"
+msgstr "Název"
+
+#: templates/admin/base.html:278
+msgid "URL"
+msgstr "URL"
+
+#: templates/admin/base.html:217
+msgid "Applications"
+msgstr "Aplikace"
+
+#: templates/admin/base.html:243
+msgid "Hide applications"
+msgstr "Skrýt aplikace"
+
+#: templates/admin/base.html:244
+msgid "Show hidden"
+msgstr "Zobrazit skryté"
+
+#: templates/admin/base.html:363
+msgid "current theme"
+msgstr "Aktuální vzhled"

BIN
jet/locale/cs/LC_MESSAGES/djangojs.mo


+ 44 - 0
jet/locale/cs/LC_MESSAGES/djangojs.po

@@ -0,0 +1,44 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2015-09-11 12:44+0000\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: static/jet/js/src/features/sidebar/bookmarks.js:80
+msgid "Add"
+msgstr "Přidat"
+
+#: static/jet/js/src/features/sidebar/bookmarks.js:85 static/jet/js/src/features/sidebar/bookmarks.js:118
+msgid "Cancel"
+msgstr "Zrušit"
+
+#: static/jet/js/src/features/sidebar/bookmarks.js:113
+msgid "Delete"
+msgstr "Smazat"
+
+#: static/jet/js/src/features/changeform.js:11
+msgid "Warning: you have unsaved changes"
+msgstr "Varování: máte neuložené změny"
+
+#: static/jet/js/src/features/selects.js:109
+msgid "select all"
+msgstr "označit vše"
+
+#: static/jet/js/src/features/selects.js:112
+msgid "deselect all"
+msgstr "odznačit vše"
+
+#: static/jet/js/src/layout-updaters/changeform-tabs.js:15 static/jet/js/src/layout-updaters/changeform-tabs.js:30
+msgid "General"
+msgstr "Obecné"

+ 11 - 2
jet/management/commands/jet_custom_apps_example.py

@@ -1,11 +1,20 @@
-from django.core.management.base import NoArgsCommand
+try:
+    from django.core.management.base import NoArgsCommand
+except ImportError:
+    from django.core.management import BaseCommand as NoArgsCommand
+
 from jet.utils import get_app_list
 
 
 class Command(NoArgsCommand):
     help = 'Generates example of JET custom apps setting'
     item_order = 0
-
+    
+    def handle(self, *args, **options):
+        if args:
+            raise CommandError("Command doesn't accept any arguments")
+        return self.handle_noargs(**options)
+    
     def handle_noargs(self, **options):
         class User:
             is_active = True

+ 3 - 0
jet/static/admin/js/SelectFilter2.js

@@ -0,0 +1,3 @@
+window.SelectFilter = {
+    init: function (field_id, field_name, is_stacked) { }
+};

+ 1 - 0
jet/static/jet/css/_delete-confirmation.scss

@@ -57,6 +57,7 @@
       font-weight: lighter;
       padding: 0 20px;
       text-transform: uppercase;
+      vertical-align: middle;
       margin-bottom: 5px;
 
       @include for-mobile {

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
jet/static/jet/css/themes/default/base.css


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
jet/static/jet/css/themes/default/base.css.map


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
jet/static/jet/css/themes/green/base.css


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
jet/static/jet/css/themes/green/base.css.map


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
jet/static/jet/css/themes/light-blue/base.css


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
jet/static/jet/css/themes/light-blue/base.css.map


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
jet/static/jet/css/themes/light-gray/base.css


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
jet/static/jet/css/themes/light-gray/base.css.map


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
jet/static/jet/css/themes/light-green/base.css


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
jet/static/jet/css/themes/light-green/base.css.map


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
jet/static/jet/css/themes/light-violet/base.css


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
jet/static/jet/css/themes/light-violet/base.css.map


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
jet/static/jet/css/vendor.css


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
jet/static/jet/js/build/bundle.min.js


+ 10 - 1
jet/static/jet/js/src/features/compact-inline.js

@@ -56,9 +56,12 @@ CompactInline.prototype = {
     },
     updateTotalForms: function($inline) {
         var $totalFormsInput = $inline.find('[name="' + this.prefix + '-TOTAL_FORMS"]');
+        var $maxFormsInput = $inline.find('[name="' + this.prefix + '-MAX_NUM_FORMS"]');
         var totalForms = parseInt($inline.find('.inline-related').length);
+        var maxForms = $maxFormsInput.val() ? parseInt($maxFormsInput.val()) : Infinity;
 
         $totalFormsInput.val(totalForms);
+        $inline.find('.add-row').toggle(maxForms >= totalForms);
     },
     addNavigationItem: function($inline, $inlineItem) {
         var $empty = $inline.find('.inline-navigation-item.empty');
@@ -84,7 +87,13 @@ CompactInline.prototype = {
         $inline.find('.inline-navigation-item[data-inline-related-id="' + $item.attr('id') + '"]').remove();
     },
     openFirstNavigationItem: function($inline) {
-        this.openNavigationItem($inline, $inline.find('.inline-navigation-item').first());
+        var $item = $inline.find('.inline-navigation-item:not(.empty)').first();
+
+        if ($item != undefined) {
+            return;
+        }
+
+        this.openNavigationItem($inline, $item);
         this.scrollNavigationToTop($inline);
     },
     addItemDeleteButton: function($item) {

+ 1 - 1
jet/static/jet/js/src/features/dashboard.js

@@ -128,7 +128,7 @@ Dashboard.prototype = {
             tolerance: 'pointer',
             accept: '.dashboard-item'
         }).sortable({
-            items: '.dashboard-item',
+            items: '.dashboard-item.draggable',
             handle: '.dashboard-item-header',
             tolerance: 'pointer',
             connectWith: '.dashboard-column',

+ 4 - 3
jet/static/jet/js/src/features/inlines.js

@@ -6,9 +6,10 @@ var Inline = function($inline) {
 };
 
 Inline.prototype = {
-    initSelectsOnAddRow: function($inline) {
+    initAddRow: function($inline) {
         $inline.find('.add-row a').on('click', function() {
-            $inline.find('.inline-related:not(.empty-form)').last().find('select').trigger('select:init');
+            var $inlineItem = $inline.find('.inline-related:not(.empty-form)').last();
+            $inline.trigger('inline-group-row:added', [$inlineItem]);
         });
     },
     run: function() {
@@ -19,7 +20,7 @@ Inline.prototype = {
                 new CompactInline($inline).run();
             }
 
-            this.initSelectsOnAddRow($inline);
+            this.initAddRow($inline);
         } catch (e) {
             console.error(e, e.stack);
         }

+ 20 - 3
jet/static/jet/js/src/features/related-popups.js

@@ -24,10 +24,14 @@ RelatedPopups.prototype = {
             }
         });
     },
-    initLinks: function() {
+    initLinksForRow: function($row) {
+        if ($row.data('related-popups-links-initialized')) {
+            return;
+        }
+
         var self = this;
 
-        $('.form-row select').each(function() {
+        $row.find('select').each(function() {
             var $select = $(this);
 
             self.updateLinks($select);
@@ -53,7 +57,7 @@ RelatedPopups.prototype = {
             self.updateLinks($(this));
         });
 
-        $('.form-row input').each(function() {
+        $row.find('input').each(function() {
             var $input = $(this);
 
             $input.find('~ .related-lookup').each(function() {
@@ -70,6 +74,19 @@ RelatedPopups.prototype = {
                 });
             });
         });
+
+        $row.data('related-popups-links-initialized', true);
+    },
+    initLinks: function() {
+        var self = this;
+
+        $('.form-row').each(function() {
+            self.initLinksForRow($(this));
+        });
+
+        $('.inline-group').on('inline-group-row:added', function(e, $inlineItem) {
+            self.initLinksForRow($inlineItem.find('.form-row'));
+        });
     },
     initPopupBackButton: function() {
         var self = this;

+ 4 - 0
jet/static/jet/js/src/features/selects.js

@@ -219,6 +219,10 @@ Select2.prototype = {
         });
 
         $('select').trigger('select:init');
+
+        $('.inline-group').on('inline-group-row:added', function(e, $inlineItem) {
+            $inlineItem.find('select').trigger('select:init');
+        });
     },
     run: function() {
         try {

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff