{% from "_fourier_help.html" import fourier_help %} {% macro render_field(spec, values) %} {% set value = values.get(spec.name) %} {% if spec.kind == "material" %} {% set pair = value if value is iterable and value is not string else ["", ""] %} {% elif spec.kind == "select" %} {% elif spec.kind == "checkbox" %} {# The hidden "0" always submits, so an unchecked box reads as False rather than as "field absent" -- which on an edit would keep the old value. #} {% else %} {% endif %} {% endmacro %} {% macro material_datalist(materials, density_map) %} {% endmacro %} {% macro stage_monitor(study_id, stage) %} {% set initial_status = {"state": "queued", "completed_points": 0, "total_points": 0, "remaining_points": 0, "worker_mode": "auto"} %} {% set status_url = url_for('multilayer_design_stage_status', study_id=study_id, stage=stage) %} {% set memory_url = url_for('system_memory') %} {% include "_run_monitor.html" %}
{% endmacro %}