Добавил первые файлы приложения
This commit is contained in:
60
templates/add.html
Normal file
60
templates/add.html
Normal file
@@ -0,0 +1,60 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Добавить операцию</title>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container form-container">
|
||||
<header>
|
||||
<h1><i class="fas fa-plus-circle"></i> Добавить операцию</h1>
|
||||
<a href="{{ url_for('index') }}" class="btn back-btn">
|
||||
<i class="fas fa-arrow-left"></i> Назад
|
||||
</a>
|
||||
</header>
|
||||
|
||||
<form method="POST">
|
||||
<div class="form-group">
|
||||
<label for="type">Тип операции:</label>
|
||||
<div class="radio-group">
|
||||
<label class="radio-label">
|
||||
<input type="radio" name="type" value="income" checked>
|
||||
<span class="radio-custom income">Доход</span>
|
||||
</label>
|
||||
<label class="radio-label">
|
||||
<input type="radio" name="type" value="expense">
|
||||
<span class="radio-custom expense">Расход</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="amount">Сумма (₽):</label>
|
||||
<input type="number" step="0.01" min="0.01" name="amount" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="category">Категория:</label>
|
||||
<input type="text" name="category" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="date">Дата:</label>
|
||||
<input type="date" name="date" value="{{ current_date }}" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="description">Описание:</label>
|
||||
<textarea name="description" rows="3"></textarea>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn save-btn">
|
||||
<i class="fas fa-save"></i> Сохранить
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user