server-tx part : web UI, PDF generator & transfer to RX server
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
{% extends "general.html" %}
|
||||
|
||||
{% block title %}Загрузка кода на печать{% endblock %}
|
||||
{% block header %}Команда: {{ user.team }} | Локация: {{ user.loc }} | <a href="/auth/logout">Выйти</a>{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% block extra %}
|
||||
{% endblock %}
|
||||
<div class="card">
|
||||
<h2>Отправка кода на печать</h2>
|
||||
<p>Скопируйте код с IDE и вставьте его в поле "Код".</p>
|
||||
<form action="/printcode" method="POST">
|
||||
<div class="form-group">
|
||||
<label for="code">Код</label>
|
||||
<textarea id="code" name="code" rows="25"></textarea>
|
||||
</div>
|
||||
<button type="submit" class="button">Узреть свой код на бересте!</button>
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,4 @@
|
||||
{% extends "print/print_code_t.html" %}
|
||||
|
||||
{% block title %}Загрузка кода на печать{% endblock %}
|
||||
{% block header %}Админ: {{ user.username }} | <a href="/admin">Панель администратора</a> | <a href="/auth/logout">Выйти</a>{% endblock %}
|
||||
@@ -0,0 +1,18 @@
|
||||
{% extends "print/print_code.html" %}
|
||||
|
||||
{% block title %}Загрузка кода на печать{% endblock %}
|
||||
{% block header %}Преподаватель: {{ user.username }} | <a href="/auth/logout">Выйти</a>{% endblock %}
|
||||
|
||||
{% block extra %}
|
||||
<div class="card">
|
||||
<h2>Отправка файла на печать</h2>
|
||||
<p>У вас есть права на печать документов напрямую, загружая .pdf!</p>
|
||||
<form class="file-upload" action="/printpdf" method="POST" enctype="multipart/form-data">
|
||||
<label for="file">Загрузка файла .PDF</label>
|
||||
<input type="file" id="file" name="file" accept=".pdf">
|
||||
<label style="margin-top: 10px;" for="samples">Количество копий (допустимый максимум - 15, можно повторять запросы)</label>
|
||||
<input type="number" id="samples" name="samples" value="1">
|
||||
<button style="margin-top: 10px;" type="submit" class="button">Распечатать</button>
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user