{% extends 'admin/master.html' %} {% import 'admin/lib.html' as lib with context %} {% import 'macros.html' as m %} {% block head %} {{ m.app_head() }} {% endblock %} {% macro print_regions(region_ids) %} {% for region_id in region_ids %} {{ admin_view.get_region_name(region_id) }} ({{ region_id }}){{ "," if not loop.last }} {% endfor %} {% endmacro %} {% macro print_datetime(dt) %} {% if dt %} {{ dt.strftime('%d-%m-%Y %X') }} {% endif %} {% endmacro %} {% block body %}
{{ lib.render_form_fields(form) }}

{% if profile %}
{{ profile._id.hex }}
{% if profile.android_info.ad_id %} {% set gaid = profile.android_info.ad_id.hex %}
{{ gaid }}
{% endif %} {% if profile.passport_uid %}
{{ profile.passport_uid }}
{% endif %} {% if phone %}
{% endif %}
{{ print_datetime(profile.updated_at) }}
{{ print_datetime(profile.lbs_info.updated_at) }}
{{ print_datetime(profile.packages_info_updated_at) }}
{{ profile.lbs_info.country_init }}
{{ profile.lbs_info.country }}
{% set locale = profile.android_info.user_settings.locale %} {{ locale.language }}_{{ locale.territory }}
{{ profile.lbs_info.fix_country_init }}
{% if profile.lbs_info.location %} {% set lat = profile.lbs_info.location.latitude %} {% set lon = profile.lbs_info.location.longitude %} {{ lat | round(3, 'floor') }} {{ lon | round(3, 'floor') }} {% endif %}
{{ print_regions(profile.lbs_info.region_ids) }}
{{ print_regions(profile.lbs_info.region_ids_init) }}
{{ profile.lbs_info.time_zone.name }}, UTC Offset: {{ profile.lbs_info.time_zone.utc_offset / 3600 }} hours
{{ m.extract_profile_field(profile, 'MANUFACTURER') }} {{ m.extract_profile_field(profile, 'MODEL') }}
{{ m.extract_profile_field(profile, 'VERSION.RELEASE') }}, SDK {{ m.extract_profile_field(profile, 'VERSION.SDK_INT') }}
{{ m.extract_profile_field(profile, 'DISPLAY') }}
{% if clients %}
{% for client in clients %} {% endfor %}
UUID User-Agent Updated at
{{ client._id.hex }} {% if client.user_agent %}{{ client.user_agent.raw }}{% endif %} {{ print_datetime(client.updated_at) }}
{% endif %}
{% for app in profile.installed_apps_info %} {% if not app.is_system and not app.is_disabled %}
{{ m.render_app(app.package_name) }}
{% endif %} {% endfor %}
{% endif %} {% endblock %} {% block tail %} {{ super() }} {% endblock %}