feat(tasks): show client name next to project in task forms

- Update app/templates/tasks/create.html and app/templates/tasks/edit.html
- Render project options as "Project (Client)" for clearer selection
- No backend changes required
This commit is contained in:
Dries Peeters
2025-09-03 14:41:54 +02:00
parent cce66832db
commit a1703d6846
2 changed files with 2 additions and 2 deletions

View File

@@ -63,7 +63,7 @@
<option value="">Select a project</option>
{% for project in projects %}
<option value="{{ project.id }}" {% if request.form.get('project_id')|int == project.id or request.args.get('project_id')|int == project.id %}selected{% endif %}>
{{ project.name }}
{{ project.name }} ({{ project.client }})
</option>
{% endfor %}
</select>

View File

@@ -63,7 +63,7 @@
<option value="">Select a project</option>
{% for project in projects %}
<option value="{{ project.id }}" {% if task.project_id == project.id %}selected{% endif %}>
{{ project.name }}
{{ project.name }} ({{ project.client }})
</option>
{% endfor %}
</select>