puzzle.unturf.com/templates/upload.html.j2
Russell Ballestrini e13b5ef5fa refactor nfg
modified:   app.py
	new file:   templates/admin_dashboard.html.j2
	new file:   templates/base.html.j2
	new file:   templates/daily_leaderboard.html.j2
	new file:   templates/daily_puzzle.html.j2
	new file:   templates/home.html.j2
	new file:   templates/invite_admin.html.j2
	new file:   templates/king_of_the_mountain.html.j2
	new file:   templates/leaderboard_index.html.j2
	new file:   templates/login.html.j2
	new file:   templates/manage_admins.html.j2
	new file:   templates/profile.html.j2
	new file:   templates/puzzle_menu.html.j2
	new file:   templates/upload.html.j2
	new file:   templates/verify.html.j2
2024-12-27 12:17:52 -05:00

16 lines
691 B
Django/Jinja

{% extends 'base.html.j2' %}
{% block content %}
<h1>Upload Puzzles</h1>
<form method="POST" enctype="multipart/form-data">
<label for="puzzle_date">Puzzle Date (YYYY-MM-DD):</label>
<input type="text" name="puzzle_date" required><br><br>
{% for size in [3, 4, 5] %}
<h3>{{ size }}x{{ size }} Puzzle</h3>
<label for="title_{{ size }}">Puzzle Title:</label>
<input type="text" name="title_{{ size }}" value="Puzzle {{ size }}x{{ size }}"><br><br>
<label for="image_file_{{ size }}">Choose Image:</label>
<input type="file" name="image_file_{{ size }}" accept="image/*"><br><br>
{% endfor %}
<button type="submit">Upload</button>
</form>
{% endblock %}