start activity from task view
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user