mirror of https://github.com/jumpserver/jumpserver
29 lines
1.0 KiB
HTML
29 lines
1.0 KiB
HTML
{% extends '_modal.html' %}
|
|
{% load i18n %}
|
|
|
|
{% block modal_id %}import_modal{% endblock %}
|
|
|
|
{% block modal_confirm_id %}btn_import_confirm{% endblock %}
|
|
|
|
{% block modal_body %}
|
|
<form method="post" id="fm_import">
|
|
{% csrf_token %}
|
|
<div class="form-group">
|
|
<label class="control-label">{% trans "Download the imported template or use the exported CSV file format" %}</label>
|
|
<a href="{% block import_modal_download_template_url %}{% endblock %}?format=csv&template=import" style="display: block">{% trans 'Download the import template' %}</a>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="control-label" for="id_file">{% trans "Select the CSV file to import" %}</label>
|
|
<input id="id_file" type="file" name="file" />
|
|
</div>
|
|
</form>
|
|
|
|
<div>
|
|
<p class="text-success" id="success_created"></p>
|
|
<p id="success_created_detail"></p>
|
|
<p class="text-danger" id="created_failed"></p>
|
|
<p id="created_failed_detail"></p>
|
|
</div>
|
|
{% endblock %}
|