{% extends "base.html" %} {% block title %}{{ _('Edit Time Entry') }} - {{ app_name }}{% endblock %} {% block extra_js %} {% if current_user.is_admin %} {% endif %} {% endblock %} {% block content %}

{{ _('Edit Time Entry') }}

{{ timer.project.name }}{% if timer.task %} - {{ timer.task.name }}{% endif %}

{% if current_user.is_admin %} {{ _('Admin Mode') }} {% endif %}
{% if current_user.is_admin %}

{{ _('Admin Mode:') }} {{ _('You can edit all fields of this time entry, including project, task, start/end times, and source.') }}

{{ _('Select the project this time entry belongs to') }}

{{ _('Select a specific task within the project') }}

{{ _('When the work started') }}

{{ _('Time the work started') }}

{{ _('When the work ended (leave empty if still running)') }}

{{ _('Time the work ended') }}

{{ _('How this entry was created') }}

{{ _('Duration:') }} {{ timer.duration_formatted }}

{{ _('Separate tags with commas') }}

{% else %}
{{ _('Project:') }} {{ timer.project.name }}
{% if timer.task %}
{{ _('Task:') }} {{ timer.task.name }}
{% endif %}
{{ _('Start:') }} {{ timer.start_time.strftime('%Y-%m-%d %H:%M') }}
{{ _('End:') }} {% if timer.end_time %} {{ timer.end_time.strftime('%Y-%m-%d %H:%M') }} {% else %} {{ _('Running') }} {% endif %}
{{ _('Duration:') }} {{ timer.duration_formatted }} {% if timer.source == 'manual' %} {{ _('Manual') }} {% else %} {{ _('Automatic') }} {% endif %}

{{ _('Separate tags with commas') }}

{% endif %}

{{ _('Entry Details') }}

{{ _('Created') }} {{ timer.created_at.strftime('%Y-%m-%d %H:%M') if timer.created_at else 'N/A' }}
{% if timer.user and (current_user.is_admin or timer.user_id == current_user.id) %}
{{ _('User') }} {{ timer.user.full_name or timer.user.username }}
{% endif %}
{{ _('Entry ID') }} #{{ timer.id }}
{% if current_user.is_admin %}

{{ _('Admin Notice') }}

{{ _('As an admin, you have full editing privileges for this time entry. Changes will be logged for audit purposes.') }}

{% endif %}
{% endblock %}