34 lines
1.8 KiB
HTML
34 lines
1.8 KiB
HTML
{% extends 'mainapp/base.html' %}
|
|
|
|
{% block title %}Загрузка данных из Excel{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="container">
|
|
<div class="row justify-content-center">
|
|
<div class="col-lg-8">
|
|
<div class="card shadow-sm">
|
|
<div class="card-header bg-primary text-white">
|
|
<h2 class="mb-0">Загрузка данных из Excel</h2>
|
|
</div>
|
|
<div class="card-body">
|
|
<p class="card-text">Загрузите Excel-файл и выберите спутник для загрузки данных в базу.</p>
|
|
|
|
<form method="post" enctype="multipart/form-data">
|
|
{% csrf_token %}
|
|
|
|
<!-- Form fields with Bootstrap styling -->
|
|
{% include 'mainapp/components/_form_field.html' with field=form.file %}
|
|
{% include 'mainapp/components/_form_field.html' with field=form.sat_choice %}
|
|
{% include 'mainapp/components/_form_field.html' with field=form.number_input %}
|
|
|
|
<div class="d-grid gap-2 d-md-flex justify-content-md-end">
|
|
<a href="{% url 'mainapp:source_list' %}" class="btn btn-secondary me-md-2">Назад</a>
|
|
<button type="submit" class="btn btn-primary">Добавить в базу</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |