{% extends "base.html" %} {% from "components/ui.html" import page_header, breadcrumb_nav, button, filter_badge %} {% block content %} {% set breadcrumbs = [ {'text': _('Time Tracking')}, {'text': _('Log Time') if not is_duplicate else _('Duplicate Entry')} ] %} {{ page_header( icon_class='fas fa-clock', title_text=_('Duplicate Time Entry') if is_duplicate else _('Log Time Manually'), subtitle_text=_('Create a copy of a previous entry with new times') if is_duplicate else _('Create a new time entry'), breadcrumbs=breadcrumbs, actions_html=None ) }} {% if is_duplicate and original_entry %}

{{ _('Duplicating entry:') }} {% if original_entry.project %} {{ original_entry.project.name }}{% if original_entry.task %} - {{ original_entry.task.name }}{% endif %} {% elif original_entry.client %} {{ original_entry.client.name }} ({{ _('Direct') }}) {% endif %}

{{ _('Original:') }} {{ original_entry.start_time|user_datetime('%Y-%m-%d %H:%M') }} {{ _('to') }} {{ original_entry.end_time|user_datetime('%Y-%m-%d %H:%M') if original_entry.end_time else _('N/A') }} ({{ original_entry.duration_formatted }})

{% endif %}

{{ _('Select either a project or a client') }}

{{ _('Tasks load after selecting a project') }}

{% endblock %}