Переделанная процедура для поставщиков + js для проверки месяца

This commit is contained in:
2024-11-22 17:15:06 +03:00
parent 3872d9035c
commit fed5af8638
4 changed files with 17 additions and 5 deletions

View File

@@ -5,6 +5,7 @@
<title>{{ title }}</title>
<link href="/static/css/main.css" type="text/css" rel="stylesheet">
<link href="/static/css/report.css" type="text/css" rel="stylesheet">
<script src="/static/js/check.js"></script>
</head>
<body>
<div class="logout">
@@ -12,7 +13,7 @@
</div>
<h1>{{ title }}</h1>
<div class="form">
<form action="" method="post">
<form action="" method="post" onsubmit="return check_month({{ date_today.month }})">
<label for="category">Выберите предмет формирования отчета</label>
<select name="category" id="category" required>
{% for item in items %}
@@ -36,7 +37,7 @@
<option value="11">Ноябрь</option>
<option value="12">Декабрь</option>
</select>
<input type="number" name="year" value="2024" min="2000" max="2100" required>
<input type="number" name="year" value={{ date_today.year }} min="2000" max={{ date_today.year }} required>
</div>
{% if is_write %}
@@ -51,3 +52,4 @@
</div>
</body>
</html>