Skip to content
Snippets Groups Projects
Commit a6b2e093 authored by RomanSteinberg's avatar RomanSteinberg
Browse files

subjects upload partial fix

parent 050883bf
Branches
Tags
No related merge requests found
......@@ -22,21 +22,6 @@
<h2 class="Margin5 Bottom">Пакетная загрузка предметов</h2>
{% if UploadingResult is not empty %}
<p>Обработано: {{ UploadingResult.RecordsCount }}, в том числе с ошибками: {{ UploadingResult.ErrorsCount }},
найдены в базе: {{ UploadingResult.RecordsExistsCount }}.</p>
{% if UploadingResult.Errors is not empty %}
{% set res %}
{% for item in UploadingResult.Errors %}
<li>Строка #{{ item.Row }}: {{ item.Info }}</li>
{% endfor %}
{% endset %}
{{ admin.message(warning, 'Возникли проблемы!', res) }}
{% endif %}
{% endif %}
<p>Инструмент пакетной загрузки предметов предоставляет возможность добавлять в систему множество наименований предметов.</p>
<p>Файл со списком предметов представляет собой <code>.txt</code>-файл, который должен иметь следующий формат:</p>
<p><pre>Название;Аббревиатура</pre></p>
......@@ -52,8 +37,25 @@
</select>
</div>
<div class="ClearFix">
<input name="students" class="defaultForm FullWidth P1Width FLeft" type="file">
<input name="subjects" class="defaultForm FullWidth P1Width FLeft" type="file">
<input type="submit" class="defaultForm GreenButton P2Width noMargin FRight" value="Загрузить">
</div>
</form>
{% if UploadingResult is not empty %}
<h2 class="Margin5 Bottom">Результат добавления</h2>
<p>Обработано: {{ UploadingResult.RecordsCount }}, в том числе с ошибками: {{ UploadingResult.ErrorsCount }},
найдены в базе: {{ UploadingResult.RecordsExistsCount }}.</p>
{% if UploadingResult.Errors is not empty %}
{% set res %}
{% for item in UploadingResult.Errors %}
<li>Строка #{{ item.Row }}: {{ item.Info }}</li>
{% endfor %}
{% endset %}
{{ admin.message(warning, 'Возникли проблемы!', res) }}
{% endif %}
{% endif %}
{% endblock %}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment