{% 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 "_modals.html" import confirmModal, qrModal %} {% 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('Office', 'en', [defLang]) }} : {{ offices.filter_by(id=o_id).first().name }}

{{ translate('Prefix', 'en', [defLang]) }} : {{ offices.filter_by(id=o_id).first().prefix }}
{{ translate('Created', 'en', [defLang]) }} : {{ moment(offices.filter_by(id=o_id).first().timestamp).format('L') }}
{% if current_user.role_id != 3 %} {{ translate('Update', 'en', [defLang]) }} {% endif %} {{ translate('Reset', 'en', [defLang]) }} {% if current_user.role_id != 3 %} {{ translate('Delete', 'en', [defLang]) }} {% endif %}
{% 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(office_id=o_id, number=100).count()]) }}
{{ confirmModal([ ['rall', translate('Warning : Rest all tasks', 'en', [defLang]), translate("You are attempting to reset an office to zero, with its all tickets been deleted and will not be retrievable , Are you sure of that ?", 'en', [defLang]), url_for('core.serial_r', o_id=o_id)], ['dall', translate('Warning : Delete office', 'en', [defLang]), translate("You are attempting to delete an office with its all tickets which will not be retrievable , Are you sure of that ?", 'en', [defLang]), url_for('manage_app.office_d', o_id=o_id)] ], yes=translate('Yes', 'en', [defLang]), no=translate('No', 'en', [defLang])) }} {{ qrModal([['branch_qr', translate('QR code - Office', 'en', [defLang]) + ' ' + str(offices.filter_by(id=o_id).first().name), qrcode(url_for('manage_app.offices', o_id=o_id, _external=True))]], close=translate('Exit', 'en', [defLang]))}} {% endblock %}