51 lines
1.5 KiB
HTML
51 lines
1.5 KiB
HTML
{% extends "base.html" %} {% block title %}Process Parameters · CalMiner{%
|
|
endblock %} {% block content %}
|
|
<section class="panel">
|
|
<h2>Scenario Parameters</h2>
|
|
{% if scenarios %}
|
|
<form id="parameter-form" class="form-grid">
|
|
<label>
|
|
<span>Scenario</span>
|
|
<select name="scenario_id" id="scenario_id">
|
|
{% for scenario in scenarios %}
|
|
<option value="{{ scenario.id }}">{{ scenario.name }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</label>
|
|
<label>
|
|
<span>Name</span>
|
|
<input type="text" name="name" id="name" required />
|
|
</label>
|
|
<label>
|
|
<span>Value</span>
|
|
<input type="number" name="value" id="value" step="any" required />
|
|
</label>
|
|
<button type="submit" class="btn primary">Add Parameter</button>
|
|
</form>
|
|
<p id="parameter-feedback" class="feedback" role="status"></p>
|
|
<div class="table-container">
|
|
<table id="parameter-table">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Parameter</th>
|
|
<th scope="col">Value</th>
|
|
<th scope="col">Distribution</th>
|
|
<th scope="col">Details</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="parameter-table-body"></tbody>
|
|
</table>
|
|
</div>
|
|
{% else %}
|
|
<p class="empty-state">
|
|
No scenarios available. Create a scenario before adding parameters.
|
|
</p>
|
|
{% endif %}
|
|
</section>
|
|
{% endblock %} {% block scripts %} {{ super() }}
|
|
<script id="parameters-data" type="application/json">
|
|
{{ parameters_by_scenario | tojson }}
|
|
</script>
|
|
<script src="/static/js/parameters.js"></script>
|
|
{% endblock %}
|