{% extends shell('app') %} {% block title %}Generate random feature models{% endblock %} {% block head %} {# noUiSlider's own rules, from the copy the bundle imports (npm), and the generator's (the stepper, the sliders, the result list). #} {{ feature_style('generator') }} {% endblock %} {% block breadcrumb %} {% endblock %} {% from "generator/_macros.html" import summary_panel %} {% block content %} {% set steps = [ ('Batch', 'Models, seed, name'), ('Language levels', 'Pick the expressivity'), ('Feature tree', 'Shape and relation mix'), ('Constraints', 'Cross-tree constraints'), ('Attributes', 'Attribute catalog'), ('Output', 'Final options & download') ] %} {#- The whole wizard, the subtree wizard-spa.js swaps on every step. The steps are drawn here, by the server, from current_step: a step done shows a check, the current one is filled, the rest wait. -#}
    {% for step in steps %} {% set i = loop.index %} {% set state = 'current' if i == current_step else ('completed' if i < current_step else 'pending') %}
  1. Step {{ i }}{% if state == 'completed' %}, done{% endif %}: {{ step[0] }} {{ step[1] }}
  2. {% endfor %}
{{ summary_panel(session.get('params', {})) }}

{{ steps[current_step - 1][0] }}

{{ steps[current_step - 1][1] }}
{% block wizard_content %}{% endblock %}
{% if current_step > 1 %} {% endif %}
{% if current_step < 6 %} {% endif %}
{% endblock %} {% block scripts %} {# The generator's bundles (frontend/package.json), modules that run in this order once the page is parsed: icons and tooltips, which the generator draws and starts itself (ui.js); the wizard helpers (auto-clamp, probability groups); the in-place navigation that keeps Pyodide alive across steps; and the runtime itself, which boots once and serves every generation. #} {{ feature_script('generator', 'ui') }} {{ feature_script('generator', 'wizard') }} {{ feature_script('generator', 'wizard_spa') }} {{ feature_script('generator') }} {# CodeMirror + UVL mode — loaded once here (outside the wizard swap area) so SPA navigations between steps don't re-insert its /