From 8d638a908d6405dfda81db7e04d0e6b5c6656628 Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Mon, 9 Mar 2015 15:40:54 +0100 Subject: [PATCH] Added new angularjs templates for agenda, motions, assignments, users and mediafiles apps. Users app: - Show permissions in group form (Fixed #1500) - Added experimental csv import for users. Agenda: - new agenda sort view. - Added experimental angular-xeditable for item-list view. General: - Added core.tag templates. - Added mediafiles templates. - Remove old template and js files. Remove old views. - Skip old tests. Added external angular modules: - angular-loading-bar (Fixed #1448) - ui-tree (for sorting agenda tree) - ng-fab-forms (for better form validation) - ui-bootstrap (for modal window, dropdown, popover) - ngBootbox (for confirm delete dialogs in agenda and users app) --- bower.json | 18 +- openslides/agenda/main_menu.py | 2 +- .../static/img/glyphicons_300_microphone.png | Bin 1076 -> 0 bytes openslides/agenda/static/js/agenda.js | 142 ---- openslides/agenda/static/js/agenda/agenda.js | 131 +++- ...enda_current_list_of_speakers_projector.js | 14 - .../templates/agenda/item-csv-import.html | 39 + .../static/templates/agenda/item-detail.html | 54 ++ .../static/templates/agenda/item-form.html | 55 +- .../static/templates/agenda/item-list.html | 94 ++- .../static/templates/agenda/item-sort.html | 27 + openslides/agenda/templates/agenda/edit.html | 44 -- .../agenda/item_form_csv_import.html | 47 -- .../agenda/templates/agenda/item_row.html | 90 --- .../agenda/templates/agenda/overview.html | 149 ---- openslides/agenda/templates/agenda/sort.html | 151 ---- openslides/agenda/templates/agenda/view.html | 173 ----- .../agenda/templates/agenda/widget_item.html | 62 -- .../agenda/widget_list_of_speakers.html | 16 - openslides/agenda/urls.py | 91 +-- openslides/agenda/views.py | 609 +-------------- openslides/assignments/main_menu.py | 2 +- .../static/img/glyphicons_041_charts.png | Bin 1029 -> 0 bytes .../img/glyphicons_041_charts_white.png | Bin 1059 -> 0 bytes .../assignments/static/js/assignment.js | 67 -- .../static/js/assignments/assignments.js | 50 +- .../assignments/assignment-detail.html | 29 + .../assignments/assignment-form.html | 35 +- .../assignments/assignment-list.html | 83 +- .../assignments/assignment_detail.html | 2 +- .../assignments/assignment_form.html | 47 -- .../assignments/assignment_list.html | 94 --- .../assignments/widget_assignment.html | 30 - openslides/assignments/urls.py | 76 +- openslides/assignments/views.py | 305 +------- openslides/core/main_menu.py | 2 +- openslides/core/static/css/app.css | 140 +++- openslides/core/static/js/app.js | 13 + openslides/core/static/js/core.js | 149 +++- .../core/static/templates/core/tag-form.html | 23 + .../core/static/templates/core/tag-list.html | 44 ++ .../core/static/templates/dashboard.html | 1 + openslides/core/static/templates/index.html | 180 +++-- openslides/core/templates/base.html | 9 +- openslides/core/urls.py | 4 - openslides/mediafiles/main_menu.py | 2 +- .../static/js/mediafiles/mediafiles.js | 83 ++ .../templates/mediafiles/mediafile-form.html | 35 + .../templates/mediafiles/mediafile-list.html | 73 ++ .../mediafiles/widget_pdfpresentation.html | 9 +- openslides/mediafiles/urls.py | 27 +- openslides/mediafiles/views.py | 101 +-- openslides/mediafiles/widgets.py | 1 - openslides/motions/csv_import.py | 144 ---- openslides/motions/main_menu.py | 2 +- .../motions/static/js/motions/motions.js | 242 ++++++ .../templates/motions/category-detail.html | 12 + .../templates/motions/category-form.html | 27 + .../templates/motions/category-list.html | 54 ++ .../templates/motions/motion-detail.html | 29 + .../static/templates/motions/motion-form.html | 91 +++ .../static/templates/motions/motion-list.html | 69 ++ .../templates/motions/widget_motion.html | 32 - openslides/motions/urls.py | 99 +-- openslides/motions/views.py | 718 +----------------- openslides/urls.py | 25 +- openslides/users/main_menu.py | 2 +- openslides/users/static/js/users/users.js | 96 ++- .../static/templates/users/group-form.html | 10 +- .../static/templates/users/group-list.html | 6 +- .../templates/users/user-csv-import.html | 29 +- .../static/templates/users/user-form.html | 23 +- .../static/templates/users/user-list.html | 53 +- openslides/users/urls.py | 3 - tests/old/account/test_widgets.py | 3 + tests/old/agenda/test_list_of_speakers.py | 18 + tests/old/agenda/tests.py | 13 + tests/old/assignments/test_views.py | 6 + tests/old/core/test_views.py | 2 + tests/old/mediafiles/tests.py | 15 + tests/old/motions/test_csv_import.py | 30 +- tests/old/motions/test_models.py | 3 + tests/old/motions/test_views.py | 55 ++ 83 files changed, 2030 insertions(+), 3605 deletions(-) delete mode 100644 openslides/agenda/static/img/glyphicons_300_microphone.png delete mode 100644 openslides/agenda/static/js/agenda.js delete mode 100644 openslides/agenda/static/js/agenda_current_list_of_speakers_projector.js create mode 100644 openslides/agenda/static/templates/agenda/item-csv-import.html create mode 100644 openslides/agenda/static/templates/agenda/item-sort.html delete mode 100644 openslides/agenda/templates/agenda/edit.html delete mode 100644 openslides/agenda/templates/agenda/item_form_csv_import.html delete mode 100644 openslides/agenda/templates/agenda/item_row.html delete mode 100644 openslides/agenda/templates/agenda/overview.html delete mode 100644 openslides/agenda/templates/agenda/sort.html delete mode 100644 openslides/agenda/templates/agenda/view.html delete mode 100644 openslides/assignments/static/img/glyphicons_041_charts.png delete mode 100644 openslides/assignments/static/img/glyphicons_041_charts_white.png delete mode 100644 openslides/assignments/static/js/assignment.js delete mode 100644 openslides/assignments/templates/assignments/assignment_form.html delete mode 100644 openslides/assignments/templates/assignments/assignment_list.html create mode 100644 openslides/core/static/templates/core/tag-form.html create mode 100644 openslides/core/static/templates/core/tag-list.html create mode 100644 openslides/mediafiles/static/js/mediafiles/mediafiles.js create mode 100644 openslides/mediafiles/static/templates/mediafiles/mediafile-form.html create mode 100644 openslides/mediafiles/static/templates/mediafiles/mediafile-list.html delete mode 100644 openslides/motions/csv_import.py create mode 100644 openslides/motions/static/js/motions/motions.js create mode 100644 openslides/motions/static/templates/motions/category-detail.html create mode 100644 openslides/motions/static/templates/motions/category-form.html create mode 100644 openslides/motions/static/templates/motions/category-list.html create mode 100644 openslides/motions/static/templates/motions/motion-detail.html create mode 100644 openslides/motions/static/templates/motions/motion-form.html create mode 100644 openslides/motions/static/templates/motions/motion-list.html diff --git a/bower.json b/bower.json index 1f9d474fb..44c77e312 100644 --- a/bower.json +++ b/bower.json @@ -3,14 +3,24 @@ "private": true, "dependencies": { "lodash": "~3.0.1", - "jquery": "~1.11.2", + "jquery": "~2.1.4", "jquery.cookie": "~1.4.1", - "bootstrap": "~3.3.1", - "datatables-bootstrap3-plugin": "~0.2.0", - "angular": "~1.3.13", + "bootstrap-css-only": "~3.3.4", + "angular": "~1.3.15", + "angular-bootstrap": "~0.13.0", + "angular-messages": "~1.3.15", + "angular-animate": "~1.3.15", + "angular-csv-import": "~0.0.15", + "angular-loading-bar": "~0.7.1", "angular-ui-router": "~0.2.13", + "angular-ui-select": "~0.11.2", + "angular-ui-tree": "~2.2.0", "angular-gettext": "~2.0.2", + "angular-sanitize": "~1.3.15", + "angular-xeditable": "~0.1.9", "js-data-angular": "~2.1.0", + "ng-fab-form": "~1.2.7", + "ngBootbox": "~0.0.5", "sockjs": "~0.3.4", "font-awesome-bower": "4.3.0" } diff --git a/openslides/agenda/main_menu.py b/openslides/agenda/main_menu.py index db50655a6..f97d00804 100644 --- a/openslides/agenda/main_menu.py +++ b/openslides/agenda/main_menu.py @@ -10,5 +10,5 @@ class AgendaMainMenuEntry(MainMenuEntry): verbose_name = ugettext_lazy('Agenda') required_permission = 'agenda.can_see' default_weight = 20 - pattern_name = 'item_overview' + pattern_name = '/agenda' # TODO: use generic solution, see issue #1469 icon_css_class = 'glyphicon-calendar' diff --git a/openslides/agenda/static/img/glyphicons_300_microphone.png b/openslides/agenda/static/img/glyphicons_300_microphone.png deleted file mode 100644 index bde033ca3b39c1316e370878e71bf97cf635acb3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1076 zcmV-41k3x0P)4Tx04R}-l+Q~PVHn51vyB)iL11Qkh@nGBs7w}RMCGo(*tBg~f0Po$?CiU{ zle4qa%26U(f|ru*d1uDm5$(qdGxK?$AK&MB z-{F0M8d)(-JtP5n!?BWmQR({Vm{j`_Asj&+!l+YJ+l(X<1E9fUv1@F;hrqupt$X|b zI_lE4ng@jaKh%lTb}(f=ak3uu6-!kMZ8FSKs7BM z|C+c%%_(W1MkH>@24YeH&g(_h@8=*r^~@L^r0;R+=`OQ-d=_TXN_RhT8}a8f>+a#2 z#Pb=gH%8n{&sxUn9rjo_p*gW3k3%Dd9v|?z$wwEp4JbjhwM#!rpOV)g4O?IHuKzA8qHe6NWHQ4?5 zW?+>pP^lFuS83d>RC0Yby(58Yf7(5YU7B8Os@7T+7jCT7FHP^*tHQ2TvC67;&Z}|3 zd?p?hPl_?ILp%pbyd-vt7sYOxofiix8N;NaVZv3ip-`5AN%ERI{+SmG@2t6_p^q8N z(o~6`|AbY@XgUiV(SNxAbMSk`qp>3J!UhhXuG%(|?j0gDE>~^N72v`*x)0t~ZOwEZ z4m|-D&ZtGJ}8;WLk96sqPn3I;4%{fxLET5GkbR{t#`+_*~}`j zbQ|o!Sm8skUWdN>^9=Kl{wB8{Kj^Azom^po0UjhbhN}A0Z>_zx|Mtvv#1oIxYu!|+$;1Dm;^KG{Ay$f*|g(n&0cY3U}^RUaSr??C_ z$`DIjVGr|$X@>cRADBhy3~%uY&t;)&@FI)uB)n5Yi%6W uM>gj%X05eJRjt;gU;n4Himl_Ls&WURpk`iG%08t40000