{% import 'bootstrap_accordion.macros.html' as accordion %} {% import 'helper.macros.html' as helper %} {{ helper.locale_font(rel_font_size) }} LittleBrother-{{_('Administration')}} {{ helper.fontawesome_script() }} {% include 'navbar.include.html' %}
{{_('User')}}
{% for admin_info in admin_infos %} {% call accordion.begin() %}{{admin_info.html_key}}{% endcall %}
{% call accordion.toggle_begin(tooltip="Show configurations of upcoming days") %}{{admin_info.html_key}}{% endcall %} {{ admin_info.full_name }} {{ helper.check_or_cross(admin_info.user_info.activity_permitted) }} {{ accordion.toggle_end() }}
{% if admin_info.user_info.active_stat_info is defined %} {{_("Today's Activity")}}: {{ admin_info.user_info.active_stat_info.todays_activity_duration|seconds_to_string }} / {% if admin_info.day_infos[0].effective_rule_set.free_play %} {{ _("unlimited") }} {% else %} {{ admin_info.day_infos[0].effective_rule_set.max_time_per_day|seconds_to_string }} {% endif %} {% endif %}
    {% for rule_template in admin_info.user_info.active_rule_result_info.applying_rule_text_templates %}
  • {{ _(rule_template[0])|format(rule_template[1])|safe }}
  • {% endfor %}
{% call accordion.details() %}{{admin_info.html_key}}{% endcall %} {% if admin_info.time_extension_periods|length > 0 %}
{{ _("Manage Time Extension") }}
{% for period in admin_info.time_extension_periods %} {% if period == 0 %} {% set period_string = - period %} {% elif period < 0 %} {% set period_string = - period %} {% else %} {% endif %} {% endfor %}
{% endif %}
{{_('Day')}}
{{_('Min Time of Day')}}
{{_('Max Time of Day')}}
{{_('Time per Day')}}
{{_('Minimum Break')}}
{{_('Max Duration')}}
{{_('Free Play')}}
{% for day_info in admin_info.day_infos %} {% call accordion.begin() %}{{day_info.html_key}}{% endcall %}
{{ day_info.effective_rule_set.min_time_of_day|time_to_string }}
{{ day_info.effective_rule_set.max_time_of_day|time_to_string }}
{{ day_info.effective_rule_set.max_time_per_day|seconds_to_string }}
{{ day_info.effective_rule_set.min_break|seconds_to_string }}
{{ _(day_info.effective_rule_set.max_activity_duration|seconds_to_string) }}
{{ day_info.effective_rule_set.free_play|boolean_to_string|_base }}
{% call accordion.details() %}{{day_info.html_key}}{% endcall %}
{{ day_info.rule_set.min_time_of_day|time_to_string }}
{{ day_info.rule_set.max_time_of_day|time_to_string }}
{{ day_info.rule_set.max_time_per_day|seconds_to_string }}
{{ day_info.rule_set.min_break|seconds_to_string }}
{{ _(day_info.rule_set.max_activity_duration|seconds_to_string) }}
{{ day_info.rule_set.free_play|boolean_to_string|_base }}
{{_('override')}}
{{ helper.render_field(forms[day_info.html_key].min_time_of_day) }}
{{ helper.render_field(forms[day_info.html_key].max_time_of_day) }}
{{ helper.render_field(forms[day_info.html_key].max_time_per_day) }}
{{ helper.render_field(forms[day_info.html_key].min_break) }}
{{ helper.render_field(forms[day_info.html_key].max_activity_duration) }}
{{ helper.render_field(forms[day_info.html_key].free_play) }}
{{ accordion.end() }} {% endfor %} {{ accordion.end() }} {% endfor %}
{% for admin_info in admin_infos %} {% call accordion.script() %}{{admin_info.html_key}}{% endcall %} {% for day_info in admin_info.day_infos %} {% call accordion.script() %}{{day_info.html_key}}{% endcall %} {% endfor %} {% endfor %}