forked from enviPath/enviPy
Fixes #149 Co-authored-by: Tim Lorsbach <tim@lorsba.ch> Reviewed-on: enviPath/enviPy#151
43 lines
2.0 KiB
HTML
43 lines
2.0 KiB
HTML
<div class="modal fade" tabindex="-1" id="import_legacy_package_modal" role="dialog"
|
|
aria-labelledby="import_legacy_package_modal" aria-hidden="true">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal">
|
|
<span aria-hidden="true">×</span>
|
|
<span class="sr-only">Close</span>
|
|
</button>
|
|
<h4 class="modal-title">Import Package from legacy System</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<p>Create a Package based on the JSON Export of the legacy system.</p>
|
|
<form id="import-legacy-package-modal-form" accept-charset="UTF-8" data-remote="true" method="post"
|
|
enctype="multipart/form-data">
|
|
{% csrf_token %}
|
|
<p>
|
|
<label class="btn btn-primary" for="legacyJsonFile">
|
|
<input id="legacyJsonFile" name="file" type="file" style="display:none;"
|
|
onchange="$('#upload-legacy-file-info').html(this.files[0].name)">
|
|
Choose JSON File
|
|
</label>
|
|
<span class="label label-info" id="upload-legacy-file-info"></span>
|
|
<input type="hidden" value="import-legacy-package-json" name="hidden" readonly="">
|
|
</p>
|
|
</form>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<a id="import-legacy-package-modal-form-submit" class="btn btn-primary" href="#">Submit</a>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
$(function () {
|
|
$('#import-legacy-package-modal-form-submit').on('click', function (e) {
|
|
e.preventDefault();
|
|
$('#import-legacy-package-modal-form').submit();
|
|
});
|
|
});
|
|
</script>
|