morozovka-portal/app/templates/project_form.html

55 lines
2.6 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">
<title>Новый проект — Morozovka Portal</title>
<style>
body { background: #0d1117; color: #e6edf3; font-family: sans-serif; padding: 40px; }
.container { max-width: 600px; margin: 0 auto; }
h2 { color: #58a6ff; }
.form-group { margin-bottom: 15px; display: flex; flex-direction: column; }
label { margin-bottom: 5px; color: #8b949e; font-size: 0.9rem; }
input, select, textarea { padding: 10px; background: #0d1117; color: white; border: 1px solid #30363d; border-radius: 5px; font-family: inherit; }
textarea { resize: vertical; min-height: 100px; }
button { padding: 10px 20px; background: #238636; color: white; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; margin-top: 10px; }
button:hover { background: #2ea043; }
.checkbox-group { flex-direction: row; align-items: center; gap: 10px; }
.back-link { display: block; margin-bottom: 20px; color: #8b949e; text-decoration: none; }
</style>
</head>
<body>
<div class="container">
<a href="/projects" class="back-link">← К проектам</a>
<h2>Создание нового проекта</h2>
<form method="POST">
<div class="form-group">
<label>Название проекта *</label>
<input type="text" name="title" required>
</div>
<div class="form-group">
<label>Описание</label>
<textarea name="description"></textarea>
</div>
<div class="form-group">
<label>Статус</label>
<select name="status">
<option value="idea">Идея</option>
<option value="in_progress">В работе</option>
<option value="completed">Завершён</option>
<option value="frozen">Заморожен</option>
</select>
</div>
<div class="form-group">
<label>Ссылка на репозиторий Gitea</label>
<input type="url" name="gitea_url" placeholder="https://git.morozovka.space/user/repo">
</div>
<div class="form-group checkbox-group">
<input type="checkbox" name="is_public" id="is_public" checked>
<label for="is_public" style="margin: 0;">Показывать публично</label>
</div>
<button type="submit">Создать проект</button>
</form>
</div>
</body>
</html>