Add basic support for csv user import

This commit is contained in:
Johannes Zellner
2022-01-20 17:38:47 +01:00
parent 63394a666e
commit b604311e2a
2 changed files with 26 additions and 8 deletions

View File

@@ -351,8 +351,8 @@
<div class="modal-body">
<div ng-show="!userImport.done">
<div ng-show="!userImport.busy">
<input type="file" style="display: none;" id="userImportFileInput" accept="application/json"/>
<button class="btn btn-primary" ng-click="userImport.openFileInput()">Select JSON file</button>
<input type="file" style="display: none;" id="userImportFileInput" accept="application/json,text/csv"/>
<button class="btn btn-primary" ng-click="userImport.openFileInput()">Select JSON or CSV file</button>
<br/>
<br/>
<p class="text-danger" ng-show="userImport.error.file">{{ userImport.error.file }}</p>