sozday-predlozhenie-dlya-pla/index.html
2026-08-28 05:23:29 +00:00

89 lines
3.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!doctype html>
<html lang="ru">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Планировщик отпуска</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<header class="header">
<h1>🌴 Планировщик отпуска</h1>
<p class="subtitle">Сохрани все варианты поездок в одном месте</p>
</header>
<section class="form-section">
<h2>Добавить вариант</h2>
<form id="vacationForm" class="vacation-form">
<div class="form-row">
<div class="form-group">
<label for="country">Страна</label>
<input type="text" id="country" name="country" placeholder="Например: Турция" required>
</div>
<div class="form-group">
<label for="city">Город</label>
<input type="text" id="city" name="city" placeholder="Например: Анталья" required>
</div>
</div>
<div class="form-row">
<div class="form-group">
<label for="dateFrom">Дата вылета</label>
<input type="date" id="dateFrom" name="dateFrom" required>
</div>
<div class="form-group">
<label for="dateTo">Дата возвращения</label>
<input type="date" id="dateTo" name="dateTo" required>
</div>
</div>
<div class="form-row">
<div class="form-group">
<label for="budget">Бюджет ($)</label>
<input type="number" id="budget" name="budget" placeholder="Например: 1500" required>
</div>
<div class="form-group">
<label for="hotel">Отель</label>
<input type="text" id="hotel" name="hotel" placeholder="Название отеля">
</div>
</div>
<div class="form-group full-width">
<label for="tickets">Билеты (ссылка или заметки)</label>
<input type="text" id="tickets" name="tickets" placeholder="Ссылка на билеты или номер рейса">
</div>
<button type="submit" class="btn-add">Добавить вариант</button>
</form>
</section>
<section class="table-section">
<div class="table-header">
<h2>Все варианты</h2>
<div class="table-actions">
<span id="totalCount" class="count-badge">0</span>
<button onclick="exportToExcel()" class="btn-export">📥 Excel</button>
</div>
</div>
<div class="table-wrapper">
<table id="vacationsTable">
<thead>
<tr>
<th>Страна</th>
<th>Город</th>
<th>Даты</th>
<th>Бюджет</th>
<th>Отель</th>
<th>Билеты</th>
<th>Действия</th>
</tr>
</thead>
<tbody id="tableBody">
</tbody>
</table>
</div>
<p id="emptyMessage" class="empty-message">Пока нет сохранённых вариантов. Добавьте первый!</p>
</section>
</div>
<script src="script.js"></script>
</body>
</html>