30 lines
778 B
HTML
30 lines
778 B
HTML
{% extends "base.html" %}
|
|
{% block title %}New Workout{% endblock %}
|
|
{% block content %}
|
|
<h1>New Workout</h1>
|
|
<form method="post" action="/workouts/new">
|
|
<label>
|
|
Name
|
|
<input type="text" name="name" required placeholder="e.g., Upper Body A">
|
|
</label>
|
|
<label>
|
|
Date
|
|
<input type="date" name="date" required>
|
|
</label>
|
|
<label>
|
|
Phase
|
|
<select name="phase_id">
|
|
<option value="">None</option>
|
|
{% for p in phases %}
|
|
<option value="{{ p.id }}">{{ p.name }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</label>
|
|
<label>
|
|
Notes
|
|
<textarea name="notes" rows="3"></textarea>
|
|
</label>
|
|
<button type="submit">Create Workout</button>
|
|
</form>
|
|
{% endblock %}
|