start activity from task view

This commit is contained in:
2026-02-10 19:24:11 +01:00
parent 6344975f7e
commit b2f26b66bb
2 changed files with 36 additions and 10 deletions

View File

@@ -10,6 +10,17 @@
<span style="background: #f39c12; color: white; padding: 3px 8px; border-radius: 5px;">Template (Auto-Add)</span>
{% endif %}
</p>
{% if task.activity_id %}
<form action="{{ url_for('toggle_timer', activity_id=task.activity_id) }}" method="POST" style="margin-top: 10px;">
<input type="hidden" name="note" value="{{ task.name }}">
<button type="submit" class="btn" style="background: #27ae60;">
▶ Start Timer for this Task
</button>
</form>
{% else %}
<small style="color: #999;">No activity linked. Edit task to assign one.</small>
{% endif %}
</div>
<a href="{{ url_for('tasks') }}" class="btn" style="background: #95a5a6;">Back to Tasks</a>
</div>