{% extends "left_sidebar_layout.html" %} {% import "macros/status.html" as status_macros %} {% import "macros/fields.html" as fields %} {% block title %}{{ account.name }}: {{ product.name }}{% endblock %} {% block subnav_header %} {% include "dna_accounts/components/account_details_subnav.html" %} {% endblock %} {% block subnav_items %}
Details
Products
{% endblock %} {% block left_sidebar %} {% include "components/products_menu.html" %} {% endblock %} {% block content %}

{{ product.name }}

{{ form.csrf_token }}
{% set ns = namespace(counter=0) %} {% for field in form.claim_fields %} {% if ns.counter == 2 or field.widget.multiple %} {% set ns.counter = 0 %}
{% endif %} {% if field.claim_name.parent or field.claim_name.claim_values_source.parent %} {{ fields.form_field(field, field.widget.multiple, "dropdown-tree") }} {% else %} {{ fields.form_field(field, field.widget.multiple, "ui search dropdown") }} {% endif %} {% if field.widget.multiple %} {% set ns.counter = 0 %}
{% else %} {% set ns.counter = ns.counter + 1 %} {% endif %} {% endfor %}
{% if not product.is_disabled %} {{ fields.local_date_form_readonly_field(product.created_at, "Enabled", "created_at") }} {{ fields.local_date_form_readonly_field(product.updated_at, "Last modified", "updated_at") }} {% else %} {{ fields.local_date_form_readonly_field(product.updated_at, "Disabled", "updated_at") }} {{ fields.local_date_form_readonly_field(product.created_at, "First enabled", "created_at") }} {% endif %}
{{ fields.local_date_form_readonly_field(product.last_login, "Last login", "last_login") }} {{ fields.local_date_form_readonly_field(product.last_activity, "Last activity", "last_activity") }}
{{ fields.local_date_form_readonly_field(product.first_login, "First login", "first_login") }}
{% if not product.is_disabled %} {% endif %}
Cancel
{% endblock %} {% include "components/confirmation-modal.html" %} {% block js %} {{ super() }} {% endblock %}