From 79e6e31229fb8e67ed85ba9822ff53a71df0a04a Mon Sep 17 00:00:00 2001 From: FinnStutzenstein Date: Fri, 17 Nov 2017 11:25:42 +0100 Subject: [PATCH] Extended motion export dialog (fixes #3493) - Cleanup formfield types - Remove complete columns in the csv --- openslides/core/static/js/core/site.js | 5 +- .../templates/core/checkbox-buttons.html | 14 + .../static/templates/core/radio-buttons.html | 19 +- .../static/templates/core/select-radio.html | 17 -- openslides/motions/static/js/motions/csv.js | 102 +++++-- openslides/motions/static/js/motions/docx.js | 32 +-- openslides/motions/static/js/motions/pdf.js | 183 +++++++------ openslides/motions/static/js/motions/site.js | 252 ++++++++++++++---- .../templates/motions/motion-import.html | 17 +- 9 files changed, 448 insertions(+), 193 deletions(-) create mode 100644 openslides/core/static/templates/core/checkbox-buttons.html delete mode 100644 openslides/core/static/templates/core/select-radio.html diff --git a/openslides/core/static/js/core/site.js b/openslides/core/static/js/core/site.js index dd00d3e73..dea5e5766 100644 --- a/openslides/core/static/js/core/site.js +++ b/openslides/core/static/js/core/site.js @@ -788,8 +788,9 @@ angular.module('OpenSlidesApp.core.site', [ overwriteOk: true, }); formlyConfig.setType({ - name: 'select-radio', - templateUrl: 'static/templates/core/select-radio.html', + name: 'checkbox-buttons', + templateUrl: 'static/templates/core/checkbox-buttons.html', + overwriteOk: true, }); formlyConfig.setType({ name: 'select-single', diff --git a/openslides/core/static/templates/core/checkbox-buttons.html b/openslides/core/static/templates/core/checkbox-buttons.html new file mode 100644 index 000000000..a8feb84ed --- /dev/null +++ b/openslides/core/static/templates/core/checkbox-buttons.html @@ -0,0 +1,14 @@ +
+
+ +
+
+ +
+
diff --git a/openslides/core/static/templates/core/radio-buttons.html b/openslides/core/static/templates/core/radio-buttons.html index 72df2be91..528179ed8 100644 --- a/openslides/core/static/templates/core/radio-buttons.html +++ b/openslides/core/static/templates/core/radio-buttons.html @@ -1,6 +1,17 @@ -
-
@@ -113,7 +121,8 @@ {{ motionsImported.length }} motions were successfully imported. (Users created: {{ usersCreated }}, - Categories created: {{ categoriesCreated }}) + Categories created: {{ categoriesCreated }}, + Motion blocks created: {{ motionBlocksCreated }})