{% extends "base.html" %} {% block title %}{{ _('Edit Client') }} - {{ app_name }}{% endblock %} {% block content %}

{{ _('Edit Client') }}

{{ client.name }}

{{ _('Back to Client') }}

{{ _('This rate will be automatically filled when creating projects for this client') }}

{{ _('Leave empty if this client has no prepaid allocation.') }}

{{ _('Day of the month when prepaid hours reset (1-28).') }}

{% if custom_field_definitions %}

{{ _('Custom Fields') }}

{{ _('These custom fields are defined globally and available for all clients.') }}

{% for definition in custom_field_definitions %}
{% if definition.description %}

{{ definition.description }}

{% endif %}
{% endfor %}
{% endif %}

{{ _('Client Portal Access') }}

{{ _('Enable portal access for this client. Clients can log in with their own credentials to view projects, invoices, and time entries.') }}

{{ _('Allow clients to report bugs and issues through the portal') }}

{{ _('Unique username for portal login') }}

{{ _('Set a new password or leave empty to keep current') }}

{% if client.portal_enabled and client.portal_username %}
{{ _('Current portal username') }}: {{ client.portal_username }}
{% endif %}
{{ _('Cancel') }}
{% if client.portal_enabled and client.portal_username and client.email %}

{{ _('Send an email to %(email)s with a link to set their portal password.', email=client.email) }}

{% elif client.portal_enabled and client.portal_username and not client.email %}

{{ _('Email address is required to send password setup email. Please set the client email address above.') }}

{% endif %}

{{ _('Client Statistics') }}

  • {{ client.total_projects }}
    {{ _('Total Projects') }}
  • {{ client.active_projects }}
    {{ _('Active Projects') }}
  • {{ "%.1f"|format(client.total_hours) }}
    {{ _('Total Hours') }}
  • {{ "%.2f"|format(client.estimated_total_cost) }}
    {{ _('Est. Total Cost') }}
{% endblock %}