{% extends "base.html" %} {% block title %}{{ _('Edit Time Entry') }} - {{ app_name }}{% endblock %} {% block extra_css %} {# Toast UI Editor CSS loaded dynamically on desktop only (Issue #557 mobile freeze fix) #} {% endblock %} {% block extra_js %} {% if can_edit_schedule %} {% 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 can_edit_schedule %} {% if current_user.is_admin %}

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

{% else %}

{{ _("You can edit this entry's project, task, start and end times, and break.") }}

{% endif %}

{{ _('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') }}

{{ _('Break duration (HH:MM). Subtracted from total to get worked duration.') }}

{% if show_source_dropdown %}

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

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

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

{{ _('Reference to internal invoice number') }}

{{ _('Explain why you are making these changes') }}

{% 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') }}

{{ _('Reference to internal invoice number') }}

{{ _('Explain why you are making these changes') }}

{% 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 %}