File size: 935 Bytes
d665fdc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{% extends "base.html" %}
{% block title %}PSYCHE · Analysis{% endblock %}
{% block body %}
  <h2>Analysis playground</h2>
  <p class="muted">
    Proof-of-concept: preset summaries run in <strong>DuckDB</strong> over bundled demo trial data
    (not the full Hub catalog yet). No SQL required—you pick a view below.
  </p>

  <form class="preset" method="get" action="{{ url_for('analysis') }}">
    <label for="preset">Preset</label>
    <select id="preset" name="preset">
      {% for p in presets %}
        <option value="{{ p.id }}" {% if p.id == current_preset %}selected{% endif %}>{{ p.label }}</option>
      {% endfor %}
    </select>
    <button type="submit">Run</button>
  </form>

  {% if error %}
    <p role="alert"><strong>Error:</strong> {{ error }}</p>
  {% endif %}

  {% if table_html %}
    <h3 style="font-size: 1rem; margin-top: 1.25rem">Result</h3>
    {{ table_html | safe }}
  {% endif %}
{% endblock %}