Fixed W12
This commit is contained in:
parent
ee0715c3b2
commit
8680f03b91
19 changed files with 444 additions and 253 deletions
|
|
@ -1,26 +1,27 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
{% if message %}
|
||||
<div id="message" style="padding: 1rem; border: 2px solid black; background-color: green; color: white">{{message}}</div>
|
||||
{% endif %}
|
||||
{% if error %}
|
||||
<div id="error" style="padding: 1rem; border: 2px solid black; background-color: red; color: white">{{error}}</div>
|
||||
{% endif %}
|
||||
<h4>Import page</h4>
|
||||
<p>Drop XML file on page or enter content down here</p>
|
||||
<form action="/import" method="post">
|
||||
<textarea name="xml" cols="30" rows="10"></textarea>
|
||||
<br>
|
||||
<input type="submit" name="submit" value="submit">
|
||||
</form>
|
||||
</body>
|
||||
{% extends "template.twig" %}
|
||||
|
||||
{% block title %}Импорт пользователей{% endblock %}
|
||||
{% block head %}
|
||||
{{ parent() }}
|
||||
<style>
|
||||
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% if message %}
|
||||
<div id="message" style="padding: 1rem; border: 2px solid black; background-color: green; color: white">{{message}}</div>
|
||||
{% endif %}
|
||||
{% if error %}
|
||||
<div id="error" style="padding: 1rem; border: 2px solid black; background-color: red; color: white">{{error}}</div>
|
||||
{% endif %}
|
||||
<h4>Импорт</h4>
|
||||
<p>Перенесите XML файл дампа на форму или вставьте содерживое в поле</p>
|
||||
<form action="/import" method="post">
|
||||
<textarea name="xml" cols="30" rows="10"></textarea>
|
||||
<br>
|
||||
<input type="submit" name="submit" value="submit">
|
||||
</form>
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
let dropZone = document.body;
|
||||
|
|
@ -48,4 +49,4 @@ document.addEventListener("DOMContentLoaded", function() {
|
|||
}, false);
|
||||
});
|
||||
</script>
|
||||
</html>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue