{% extends "base.html" %} {% block title %}{{ t('daily_log') }}{% if selected %} · {{ selected.machine_number }}{% endif %} · {{ fmt_date(log_date) }}{% endblock %} {% block content %}

{{ t('linked_help') }}

{{ t('daily_log') }}{% if active_company %} · {{ active_company.name }}{% endif %}{% if selected %} · {{ selected.machine_number }}{% endif %}

{% if not machines %}

{% if user.role == 'operator' %} {{ t('ask_admin_machines') }} {% else %} {{ t('need_machine') }} {{ t('add_machine') }} {% endif %}

{% else %}
{% if company_id %}{% endif %} {{ t('date') }} — {{ fmt_date(log_date) }}{% if selected %} · {{ selected.machine_number }}{% endif %}{% if active_company %} · {{ active_company.name }}{% endif %}
{% if company_id and user.role != 'operator' %} {% include "_plant_prod_form.html" %} {% endif %} {% include "_machine_switch.html" %} {% if log_day_changed %}
{{ t('amp_changed') }} {% if log_prev_date %} · {{ t('prev_log_day') }} {{ fmt_date(log_prev_date) }}{% endif %}
{% endif %}
{{ t('color_legend') }}: {{ t('legend_ok') }} {{ t('legend_high') }} {{ t('legend_too_high') }} {{ t('legend_low') }} {{ t('legend_too_low') }} {{ t('amp_changed') }} ({{ t('vs_prev_day') }})
{% if company_id %}{% endif %}
DEPL MOTOR AMPERE MAINTENANCE LOG
{{ selected.machine_number }} {{ t('date') }} — {{ fmt_date(log_date) }}
{% for block in sheet %} {% for item in block.motors %} {% set r = item.reading %} {% if loop.first %} {% endif %} {% endfor %} {% endfor %}
{{ t('machine_no') }}
{{ t('motor_hp') }}
{{ t('machine_on') }} {{ t('machine_off') }} {{ t('remarks') }}
{{ t('empty_amper') }} {{ t('loading_amper') }} {{ t('overload_amper') }} {{ t('empty_amper') }}
{% if loop.first %} {{ block.machine.machine_number }} {{ block.machine.company_name }} {% if block.machine.location %}{{ block.machine.location }}{% endif %} {% endif %}
{{ item.motor.hp|int if item.motor.hp == item.motor.hp|int else item.motor.hp }}HP Motor {% if item.motor.label and item.motor.label != '3HP Motor' %} · {{ item.motor.label }}{% endif %}
{{ t('std_hint') }} E {{ item.expected.empty }} · L {{ item.expected.loading }} · O {{ item.expected.overload }}
{% endif %} {% endblock %} {% block scripts %} {% if machines %} {% endif %} {% endblock %}