{% extends "base.html" %} {% block title %}My Software Work{% endblock %} {% block header %}My Software Work{% endblock %} {% block content %}
Software Execution Workspace

My Work

Track tasks, subtasks, deadlines and work hours from one place.
Showing
{{ rows|length }} assignment(s)
Total
{{ summary.total }}
Open
{{ summary.open }}
In Progress
{{ summary.in_progress }}
Overdue
{{ summary.overdue }}
Completed
{{ summary.completed }}
Filters
Find work by client, Jobcard, service, task or subtask status.
{% if filters.q or filters.status or filters.subtask_status or filters.priority or filters.due %}Clear{% endif %}
{% for a in rows %} {% set subtasks = a.subtasks.order_by(SoftwareSubtask.id.asc()).all() %} {% set done_count = subtasks|selectattr('status','equalto','DONE')|list|length %} {% set blocked_count = subtasks|selectattr('status','equalto','BLOCKED')|list|length %} {% set progress = ((done_count * 100 / subtasks|length)|round|int) if subtasks else (100 if a.status=='COMPLETED' else 0) %} {% set jc = a.jobcard_service.jobcard %} {% set client_name = jc.client.company_name if jc and jc.client else 'Client' %} {% set logs = a.time_entries.order_by(SoftwareTimeEntry.work_date.desc(), SoftwareTimeEntry.id.desc()).all() %} {% set total_hours = namespace(v=0) %}{% for t in logs %}{% set total_hours.v = total_hours.v + (t.hours or 0) %}{% endfor %}
{{ a.jobcard_service.service_name }}
{{ a.status|replace('_',' ')|title }}{% if blocked_count %}{{ blocked_count }} blocked{% endif %}
{{ client_name }} · {{ jc.jobcard_code }}{% if a.deadline %} · Deadline {{ a.deadline.strftime('%d %b %Y, %I:%M %p') }}{% endif %}
{% if a.instruction %}
{{ a.instruction }}
{% endif %}
Progress
{{ progress }}%
{{ done_count }}/{{ subtasks|length }} subtasks · {{ total_hours.v }}h logged
Subtasks
Status, priority and due date for each unit of work.
{{ subtasks|length }} total
{% if subtasks %}
{% for st in subtasks %} {% set overdue = st.due_date and st.due_date < today and st.status != 'DONE' %}
{{ st.title }}
{% if st.description %}
{{ st.description }}
{% endif %}
{{ st.priority|title }}{% if st.due_date %}{{ st.due_date.strftime('%d %b %Y') }}{% if overdue %} · overdue{% endif %}{% endif %}{{ st.status|replace('_',' ')|title }}
{% if a.status!='COMPLETED' %}
{% endif %}
{% endfor %}
{% else %}
No subtasks have been added to this assignment.
{% endif %}
Log Work Hours
{% if a.status!='COMPLETED' %}
{% else %}
This assignment is completed and locked for new time entries.
{% endif %}
Recent Work Logs
{{ total_hours.v }}h
{% for t in logs[:5] %}
{{ t.work_date.strftime('%d %b %Y') }}{{ t.hours }}h
{% if t.subtask %}
{{ t.subtask.title }}
{% endif %}
{{ t.description }}
{% else %}
No work hours logged yet.
{% endfor %}{% if logs|length > 5 %}
View {{ logs|length - 5 }} more log(s){% for t in logs[5:] %}
{{t.work_date.strftime('%d %b %Y')}} · {{t.hours}}h{% if t.subtask %}
{{t.subtask.title}}
{% endif %}
{{t.description}}
{% endfor %}
{% endif %}
{% if a.status!='COMPLETED' %}
Complete Assignment
{% if not total_hours.v or total_hours.v <= 0 %}
Log work hours before completion.
{% endif %}{% if done_count < subtasks|length %}
Complete all open subtasks first.
{% endif %}
{% elif a.completion_remark %}
Completion note: {{a.completion_remark}}
{% endif %}
{% else %}
No matching work found
Try clearing filters or adjusting the search criteria.
{% endfor %}
{% endblock %}