{% extends "tasks/base.html" %} {% load tasks_tags %} {% block title %}{{ client.name }} โ€” Staff Panel{% endblock %} {% block topbar_title %}{{ client.name }}{% endblock %} {% block topbar_actions %} {% if request.user|has_perm:"edit_client" %} Edit {% endif %} {% if request.user|has_perm:"create_project" %} + Project {% endif %} {% endblock %} {% block content %}
Company
{{ client.company_name }}
Contact Email
{{ client.email }}
Phone
{{ client.phone|default:"โ€”" }}
Status
{{ client.get_status_display }}
{% if client.address %}
Address
{{ client.address }}
{% endif %}
{% if client.notes %}
Notes
{{ client.notes }}
{% endif %}
Client Portal Access
Manage this client's login to the client-facing portal
{% if client.portal_profile %} {% with portal_user=client.portal_profile.user %}
Portal Account Active
Linked to {{ portal_user.get_full_name }}
{% if portal_user.is_active %} Active {% else %} Disabled {% endif %}
Login Email
{{ portal_user.email }}
Full Name
{{ portal_user.get_full_name }}
Last Login
{{ portal_user.last_login|date:"d M Y, H:i"|default:"Never" }}
Account Created
{{ portal_user.date_joined|date:"d M Y" }}
{% if request.user|has_perm:"edit_client" %}
{% csrf_token %} {% if portal_user.is_active %} {% else %} {% endif %}
{% endif %}
{% endwith %} {% else %}
No Portal Account
This client does not have access to the client portal yet.
{% if request.user|has_perm:"edit_client" %} Create Portal Account {% endif %}
{% endif %}
Projects ({{ projects|length }})
{% if request.user|has_perm:"create_project" %} + Add Project {% endif %}
{% for project in projects %}
{{ project.name }}
{{ project.get_status_display }} {{ project.progress_percentage }}%
{{ project.completed_tasks_count }}/{{ project.total_tasks_count }} tasks ยท {{ project.days_remaining }} days left
{% empty %}

No projects for this client yet.

{% endfor %}
{% endblock %}