salvi/templates/importpages.jinja2

35 lines
978 B
Text
Raw Normal View History

2023-03-16 14:24:29 +01:00
{% extends "base.jinja2" %}
{% block title %}Import pages - {{ app_name }}{% endblock %}
{% block content %}
<h1>Import pages</h1>
2023-05-18 08:47:06 +02:00
<div class="inner-content">
{% if current_user.is_admin %}
2023-05-18 08:47:06 +02:00
<p>
You can import files produced by the <a href="/manage/export">exporter tool</a>, in JSON format.
Importing pages can be done by users with Admin permissions only.
</p>
2023-05-18 08:47:06 +02:00
<form enctype="multipart/form-data" method="POST">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
<div>
<input type="file" accept="application/json" name="import" />
</div>
<div>
<input type="checkbox" name="ovwurls" value="1" checked="" />
<label for="ovwurls">Overwrite URLs</label>
</div>
<div>
<input type="submit" value="Import" />
</div>
</form>
</div>
2023-05-18 08:47:06 +02:00
{% else %}
<p>Importing pages can be done by users with Admin permissions only.</p>
{% endif %}
</div>
{% endblock %}