{% from "_pagination.html" import render_pagination %} {% macro list_orders(orders, controller, can_delete, can_fulfill, can_receive, get_order_last_restore, url_for_storage) %} {{ render_pagination(orders, controller) }} {% if controller=="admin_orders" and can_delete() %} {% endif %} {% if controller=="admin_orders" %} {% endif %} {% for order in orders.items %} {% if controller=="admin_orders" and can_delete() %} {% endif %} {% if controller=="admin_orders" %} {% endif %} {% endfor %}
ID Project PO Institution Name Received Expected Fulfillment Date Last Restore Date Shipping Label {% if controller=="admin_orders" %}Fulfilled{% else %}Duplicate{% endif %} EditDeleteReturn Label
{{ order.id }} {{ order.project_id }} {{ order.po_number }} {{ order.owner.company }} {{ order.owner.last_name }}, {{ order.owner.first_name }} {% if controller=="admin_orders" %} {% if can_receive() %} {% if order.received_date %} Received {% else %} Received Order {% endif %} {% else %} {% if order.received_date %} Received {% else %} Not yet received {% endif %} {% endif %} {% else %} {% if order.received_date %} {{ order.received_date.strftime("%Y-%m-%d %H:%M") }} {% else %}   {% endif %} {% endif %} {{ order.expected_fulfillment_date() }} {{ get_order_last_restore(order)}} {% if order.shipping_label_url %} View Shipping Label {% endif %} {% if controller=="admin_orders" %} {% if can_fulfill() %} {% if order.fulfilled %} Fulfilled {% else %} {% if order.received_date %} Fulfill Order {% endif %} {% endif %} {% else %} {% if order.fulfilled %} Fulfilled {% else %} {% if order.received_date %} Not yet fulfilled {% endif %} {% endif %} {% endif %} {% else %} Duplicate {% endif %} {% if controller=="admin_orders" %} Edit Order {% else %} {% if not order.received_date %} Edit Order {% endif %} {% endif %} Delete Order {%if order.return_shipping_label_url %} View {% endif %} Generate
{{ render_pagination(orders, controller) }} {% endmacro %} {% macro order_details(order) %}
Order id: {{ order.id }}
Order Fulfilled: {% if not order.fulfilled %}{{ order.fulfilled }} {% else %} {{ order.fulfilled_datetime.strftime("%Y-%m-%d %H:%M") }} {% endif %}
Project Id: {{ order.project_id }}
PO Number: {{ order.po_number }}
Order Contact: {{ order.owner.first_name }} {{ order.owner.last_name }} {{ order.owner.email }}
{% endmacro %} {% macro specimen_details(order) %}
Sample Id: {{ order.sample_id }}
# of samples: {{ order.no_samples }}
Tissue Type: {{ order.tissue_type }}
Strain: {{ order.strain }}
Published: {{ order.published }}
Promoter: {{ order.promoter }}
Alleles: {{ order.alleles }}
Tumor Type: {{ order.tumor_type }}
Gene Expression: {{ expressions.get(order.gene_expression) }}
Gender: {{ order.gender }}
Age: {{ order.age }}
Additional Info: {{ order.additional_info }}
{% endmacro %} {% macro histology_service_request(order) %}
Necropsy: {{ order.necropsy }}
Decalcification: {{ order.decalcification }}
Process Slide: {{ order.process_slide }}
Stain Type: {{ stain_types.get(order.stain_type) }}
IHC Antibody: {{ order.ihc_antibody_histology }}
# of Stained Slides: {{ order.no_stained_slides }}
# of Unstained Slides: {{ order.no_unstained_slides }}
# of Sections per Slide {{ order.no_sections_per_slide }}
Thickness (microns): {{ order.thickness }}
Special Instructions: {{ order.special_instructions }}
Digitize: {{ order.digitize }}
{% endmacro %} {% macro pathology_service_request(order) %}
Pathologist: {{ pathologists.get(order.pathologist) }}
{% endmacro %} {% macro digitalization_service_request(order) %}
Stain Type: {{ stain_types.get(order.digital_stain_type) }}
IHC Antibody: {{ order.ihc_antibody }}
Whole Slide Impaging Brightfield: {{ order.whole_slide_imaging }}
Number of Slides to be Scanned: {{ order.no_slides_scanned }}
Magnification: {{ order.magnification }}x
Free Trial: {{ order.free_trial }}
Delivery Method: {{ order.delivery_method }}
ImagePro Morphometry: {{ order.image_analysis }}
Other Software: {{ order.other_software }}
{% endmacro %}