56 lines
1.4 KiB
HTML
56 lines
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>{{ title }}</title>
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
|
</head>
|
|
<body>
|
|
|
|
<main class="page admin-page">
|
|
<h1>{{ title }}</h1>
|
|
|
|
{% if error %}
|
|
<p class="error">{{ error }}</p>
|
|
{% endif %}
|
|
|
|
<form class="admin-form" method="POST">
|
|
<label for="date">Date</label>
|
|
<input
|
|
id="date"
|
|
name="date"
|
|
type="date"
|
|
value="{{ question.date if question else '' }}"
|
|
required
|
|
>
|
|
|
|
<label for="question">Question</label>
|
|
<textarea id="question" name="question" rows="4" required>{{ question.question if question else '' }}</textarea>
|
|
|
|
<label for="option_a">Option A</label>
|
|
<input
|
|
id="option_a"
|
|
name="option_a"
|
|
type="text"
|
|
value="{{ question.option_a if question else '' }}"
|
|
required
|
|
>
|
|
|
|
<label for="option_b">Option B</label>
|
|
<input
|
|
id="option_b"
|
|
name="option_b"
|
|
type="text"
|
|
value="{{ question.option_b if question else '' }}"
|
|
required
|
|
>
|
|
|
|
<div class="form-actions">
|
|
<button class="button-compact" type="submit">Save</button>
|
|
<a href="{{ url_for('admin.dashboard') }}">Cancel</a>
|
|
</div>
|
|
</form>
|
|
</main>
|
|
|
|
</body>
|
|
</html>
|