{% from "components/ui.html" import card, fields, reference %} {% from "components/flow_profile.html" import profile_selector %} {% macro resource_card(resource) -%} {% call card(resource.reference, "Resource") %} {{ fields(resource.fields) }} {% if resource.wells %}

Wells used in this protocol

{% endif %} {% endcall %} {%- endmacro %} {% macro location_card(well) -%} {% call card(well.reference, "Location") %}

Initial contents

{{ well.fill.material if well.fill else "Initially empty" }}

Initial loads {{ well.fill.volume|number if well.fill else "0" }} µL {{ fields(well.fields) }} {% if well.sample %}

{{ well.sample_heading }}

{{ well.sample.label }}

{{ fields(well.sample_fields) }} {% endif %} {% if well.incoming %}

Planned incoming transfers

Across the full procedure; not a measurement of current contents.

{% endif %} {% endcall %} {%- endmacro %} {% macro liquid_class_card(liquid_class) -%} {% call card(liquid_class.reference, "Liquid class") %} {{ fields(liquid_class.fields) }} {% for note in liquid_class.notes %}

{{ note }}

{% endfor %} {% if liquid_class.profiles %}{{ profile_selector(liquid_class.profiles) }}{% endif %} {% endcall %} {%- endmacro %}