passman/templates/views/partials/forms/settings/import.html

29 lines
955 B
HTML
Raw Normal View History

<div ng-controller="ImportCtrl">
2016-09-25 06:01:23 +08:00
<div class="row">
2016-09-25 22:18:18 +08:00
<div class="col-xs-6">
2016-09-25 06:01:23 +08:00
<label>Import type
2016-09-25 22:18:18 +08:00
<select ng-init="importerType" ng-model="importerType"
ng-change="setImporter(importerType)">
<option ng-repeat="importer in available_importers"
value="{{importer}}">
{{importer.name}}
</option>
</select></label>
2016-09-25 17:21:04 +08:00
<div><b>{{selectedImporter.description}}</b></div>
2016-09-25 22:18:18 +08:00
<input ng-if="selectedImporter" type="file" file-select
success="fileLoaded" error="fileLoadError"
progress="fileSelectProgress"><br/>
<button class="button" ng-click="startImport()"
ng-if="selectedImporter">Import
</button>
<div ng-if="current_import_length">
{{ current_import_index }} / {{ current_import_length - 1}}
</div>
</div>
<div class="col-xs-6">
<div ng-if="log" class="import_log">
<textarea id="import_log" auto-scroll="log">{{log.join('\n')}}</textarea>
</div>
2016-09-25 06:01:23 +08:00
</div>
</div>
</div>