{% 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 "auto_reload.html" import auto_reloader with context %} {% from "_footers.html" import panelFooter, spacer %}
{{ auto_reloader(True, 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('All tickets', 'en', [defLang]) }}

{% for o in officesp %} {% 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 been issued yet to display', 'en', [defLang]), len(officesp) - serial.filter_by(number=100).count()]) }}
{% from '_modals.html' import confirmModal, qrModal %} {{ confirmModal( [['rall', translate('Warning : Resetting all', 'en', [defLang]), translate("You are attempting to reset every office and task to zero, with all tickets erased, that won't be retrievable , Are you sure of that ?", 'en', [defLang]), url_for('core.serial_ra') ], ['dall', translate('Warning : Deleting all', 'en', [defLang]), translate("You are attempting to delete every office and task under it with all tickets, which won't be retrievable , Are you sure of that ?", 'en', [defLang]), url_for('manage_app.office_da')]] , yes=translate('Yes', 'en', [defLang]), no=translate('No', 'en', [defLang]))}} {{ qrModal([['branch_qr', translate('QR code : All tickets', 'en', [defLang]), qrcode(url_for('manage_app.all_offices', _external=True))]], close=translate('Exit', 'en', [defLang])) }} {% endblock %}