mirror of https://github.com/jumpserver/jumpserver
parent
7193d7fc1b
commit
b3114a1f3d
@ -1,4 +0,0 @@
|
||||
{% extends '_update_modal.html' %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block modal_title%}{% trans "Update assets" %}{% endblock %}
|
@ -1,28 +0,0 @@
|
||||
{% 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&limit=1" 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 %}
|
@ -1,28 +0,0 @@
|
||||
{% extends '_modal.html' %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block modal_id %}update_modal{% endblock %}
|
||||
|
||||
{% block modal_confirm_id %}btn_update_confirm{% endblock %}
|
||||
|
||||
{% block modal_body %}
|
||||
<form method="post" id="fm_import">
|
||||
{% csrf_token %}
|
||||
<div class="form-group">
|
||||
<label class="control-label">{% trans "Download the update template or use the exported CSV file format" %}</label>
|
||||
<a id="download_update_template" style="display: block">{% trans 'Download the update template' %}</a>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="update_file">{% trans "Select the CSV file to import" %}</label>
|
||||
<input id="update_file" type="file" name="file" />
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<p class="text-warning" id="success_updated"></p>
|
||||
<p id="success_updated_detail"></p>
|
||||
<p class="text-danger" id="updated_failed"></p>
|
||||
<p id="updated_failed_detail"></p>
|
||||
</div>
|
||||
{% endblock %}
|
Loading…
Reference in new issue