{% extends "base.html" %} {% set active_page = "accounts" %} {% block title %} {{ account.name }} account {% endblock %} {% block divs %} {% block breadcrumbs %} {{ super() }} {% endblock %}
{% if user_can_update_account %} {% from "_macros.html" import json_attributes_editor_button %}
Edit account

Edit {{ account.name }}

{% if user_is_admin %}
{% if plans %}
{% endif %} {% endif %}
{{ json_attributes_editor_button(label="Open editor", field_label=attributes_label, field_description=attributes_description) }}
{% endif %}

Account

{% if can_add_client_account %} Add client account {% endif %}
Account: {{ account.name }}
{% if account.consultancy_account %} {% endif %} {% if account.primary_color or account.secondary_color %} {% endif %} {% if account.logo_url %} {% endif %}
ID {{ account.id }}
Consultancy {{ account.consultancy_account.name }}
Client accounts {% if account.consultancy_client_accounts %} {% for client_account in account.consultancy_client_accounts %} {{ client_account.name }} {% if not loop.last %}, {% endif %} {% endfor %} {% else %} None {% endif %}
Plan {% if account.plan %} {{ account.plan.name }}{% if account.plan.legacy %} (legacy){% endif %} {% else %} No plan (server defaults apply) {% endif %}
Roles {{ account.account_roles | map(attribute='name') | join(", ") }}
Colors {% if account.primary_color %} Primary {% endif %} {% if account.secondary_color %} Secondary {% endif %}
Logo URL Logo
{% from "_macros.html" import render_attributes, render_stored_secrets %} {{ render_attributes(account.attributes) }} {{ render_stored_secrets(stored_secrets) }}

All users

{% if user_can_create_children %} Create user {% endif %}

Assets {% if user_can_create_children %} Create asset {% endif %}

{% if can_view_account_auditlog %} {% endif %}
{% block paginate_tables_script %} {{ super() }} {% endblock %} {% if user_can_update_account %} {% from "_macros.html" import json_attributes_editor_modal %} {{ json_attributes_editor_modal( api_url="/api/v3_0/accounts/" ~ account.id, initial_attributes=account.attributes, entity_name=account.name ) }} {% endif %} {% endblock %}