{% extends "base.html" %} {% block title %} FQM - {{ ptitle }} {% endblock %} {% block head %} {{ super() }} {{ pagedown.include_pagedown() }} {% endblock %} {% import "bootstrap/wtf.html" as wtf %} {% import "_macros.html" as macros %} {%- from "sb_manage.html" import sb_manage with context %} {% block sidebar %} {{ sb_manage() }} {% endblock %} {% block page_content %} {% from "_helpers.html" import render_field %} {%- from "auto_reload.html" import auto_reloader with context %} {% from '_footers.html' import spacer, panelFooter %} {% from '_modals.html' import confirmModal %} {% if form.errors %} {% endif %}
{{ auto_reloader(duration=translate('Duration', 'en', [defLang]), refresh=translate('Auto reload', 'en', [defLang]), durMsg=translate('Enter a duration in seconds to auto-reload the page in :', 'en', [defLang])) }}

{{ translate('Task', 'en', [defLang]) }} : {{ task.name }}

{{ translate('Prefix', 'en', [defLang]) }} : {{ offices.filter_by(id=task.office_id).first().prefix }}
{{ translate('Created', 'en', [defLang]) }} : {{ moment(task.timestamp).format('L') }}
{% for o in tasksp %} {% if o.number != 100 %}
{{ offices.filter_by(id=o.office_id).first().prefix }}{{ o.number }}.
{{ moment(o.timestamp).format('L') }}
{% if o.p %} {{ users.filter_by(id=o.pulledBy).first().name }} / {{ moment(o.pdt).fromNow() }} {% else %} {{ translate('Waiting', 'en', [defLang]) }} {% endif %}
{% if o.n %} {{ o.name }} {% else %} {{ translate('None', 'en', [defLang]) }} {% endif %}
{% if o.n %} {{ translate('Registered', 'en', [defLang]) }} {% else %} {{ translate('Printed', 'en', [defLang]) }} {% endif %}
{% endif %} {% endfor %} {{ spacer([translate('No tickets exist to be displayed', 'en', [defLang]), len(tasksp) - serial.filter_by(task_id=o_id, number=100).count()]) }}
{{ confirmModal( [ ['rall', translate('Warning : Rest task', 'en', [defLang]), translate("You are attempting to reset a task to zero, with its all tickets been deleted and will not be retrievable , Are you sure of that ?", 'en', [defLang]), url_for('core.serial_rt', t_id=o_id)], ['dall', translate('Warning : Delete task', 'en', [defLang]), translate("You are attempting to delete a task whit its all tickets which will not be retrievable , Are you sure of that ?", 'en', [defLang]), url_for('manage_app.task_d', t_id=o_id)] ], yes=translate('Yes', 'en', [defLang]), no=translate('No', 'en', [defLang]) ) }} {% endblock %}