Limit selection of files to csv and txt (Fixed #2133)
agenda, motions, users csv import
This commit is contained in:
parent
6aeba88f09
commit
62310c83ae
1
AUTHORS
1
AUTHORS
@ -19,3 +19,4 @@ Authors of OpenSlides in chronological order of first contribution:
|
||||
Jörn Bensch <bensch@triagonale.de> (Template design)
|
||||
John Felipe Urrego Mejia <ingenierofelipeurrego@gmail.com> (Spanish translation)
|
||||
Erik Steenman <eriksteenman@gmail.com>
|
||||
Sean Engelhardt <sean.f.t.engelhardt@gmail.com>
|
||||
|
@ -8,7 +8,7 @@
|
||||
"angular-bootstrap": "~0.14.3",
|
||||
"angular-bootstrap-colorpicker": "~3.0.24",
|
||||
"angular-chosen-localytics": "~1.4.0",
|
||||
"angular-csv-import": "~0.0.27",
|
||||
"angular-csv-import": "~0.0.29",
|
||||
"angular-formly": "~7.3.9",
|
||||
"angular-formly-templates-bootstrap": "~6.2.0",
|
||||
"angular-gettext": "~2.2.0",
|
||||
|
@ -417,6 +417,7 @@ angular.module('OpenSlidesApp.agenda.site', ['OpenSlidesApp.agenda'])
|
||||
$scope.separator = ',';
|
||||
$scope.encoding = 'UTF-8';
|
||||
$scope.encodingOptions = ['UTF-8', 'ISO-8859-1'];
|
||||
$scope.accept = '.csv, .txt';
|
||||
$scope.csv = {
|
||||
content: null,
|
||||
header: true,
|
||||
@ -425,6 +426,7 @@ angular.module('OpenSlidesApp.agenda.site', ['OpenSlidesApp.agenda'])
|
||||
separatorVisible: false,
|
||||
encoding: $scope.encoding,
|
||||
encodingVisible: false,
|
||||
accept: $scope.accept,
|
||||
result: null
|
||||
};
|
||||
// set csv file encoding
|
||||
|
@ -59,6 +59,7 @@ Keep each item in a single line.</p>
|
||||
separator-visible="csv.separatorVisible"
|
||||
result="csv.result"
|
||||
encoding="csv.encoding"
|
||||
accept="csv.accept"
|
||||
encoding-visible="csv.encodingVisible"></ng-csv-import>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -824,6 +824,7 @@ angular.module('OpenSlidesApp.motions.site', ['OpenSlidesApp.motions'])
|
||||
$scope.separator = ',';
|
||||
$scope.encoding = 'UTF-8';
|
||||
$scope.encodingOptions = ['UTF-8', 'ISO-8859-1'];
|
||||
$scope.accept = '.csv, .txt';
|
||||
$scope.csv = {
|
||||
content: null,
|
||||
header: true,
|
||||
@ -832,6 +833,7 @@ angular.module('OpenSlidesApp.motions.site', ['OpenSlidesApp.motions'])
|
||||
separatorVisible: false,
|
||||
encoding: $scope.encoding,
|
||||
encodingVisible: false,
|
||||
accept: $scope.accept,
|
||||
result: null
|
||||
};
|
||||
// set csv file encoding
|
||||
|
@ -31,6 +31,7 @@
|
||||
separator-visible="csv.separatorVisible"
|
||||
result="csv.result"
|
||||
encoding="csv.encoding"
|
||||
accept="csv.accept"
|
||||
encoding-visible="csv.encodingVisible"></ng-csv-import>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -688,6 +688,7 @@ angular.module('OpenSlidesApp.users.site', ['OpenSlidesApp.users'])
|
||||
$scope.separator = ',';
|
||||
$scope.encoding = 'UTF-8';
|
||||
$scope.encodingOptions = ['UTF-8', 'ISO-8859-1'];
|
||||
$scope.accept = '.csv, .txt';
|
||||
$scope.csv = {
|
||||
content: null,
|
||||
header: true,
|
||||
@ -696,6 +697,7 @@ angular.module('OpenSlidesApp.users.site', ['OpenSlidesApp.users'])
|
||||
separatorVisible: false,
|
||||
encoding: $scope.encoding,
|
||||
encodingVisible: false,
|
||||
accept: $scope.accept,
|
||||
result: null
|
||||
};
|
||||
// set csv file encoding
|
||||
|
@ -59,6 +59,7 @@
|
||||
separator="csv.separator"
|
||||
separator-visible="csv.separatorVisible"
|
||||
result="csv.result"
|
||||
accept="csv.accept"
|
||||
encoding="csv.encoding"
|
||||
encoding-visible="csv.encodingVisible"></ng-csv-import>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user