Update Python tools
This commit is contained in:
@@ -37,12 +37,16 @@
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
<form method="post" action="{{ url_for('run_task', task_id=task.id) }}"{% if task.wait_for_result %} data-wait-for-result{% endif %}>
|
||||
<form method="post" action="{{ url_for('run_task', task_id=task.id) }}" enctype="multipart/form-data"{% if task.wait_for_result %} data-wait-for-result{% endif %}{% if task.download_artifacts %} data-download-artifacts{% endif %}>
|
||||
{% set values = form_values.get(task.id, {}) %}
|
||||
{% set errors = input_errors.get(task.id, {}) %}
|
||||
{% for field in task.inputs %}
|
||||
<div class="task-input">
|
||||
{% if field.type == "multi_choice" %}
|
||||
{% if field.type == "file" %}
|
||||
<label>{{ field.label }}{% if field.required %} (required){% endif %}
|
||||
<input type="file" name="{{ field.name }}" {% if field.required %}required{% endif %}{% if field.accept %} accept="{{ field.accept|join(',') }}"{% endif %}>
|
||||
</label>
|
||||
{% elif field.type == "multi_choice" %}
|
||||
<fieldset>
|
||||
<legend>{{ field.label }}{% if field.required %} (required){% endif %}</legend>
|
||||
{% set selected = values.get(field.name, field.default or ()) %}
|
||||
|
||||
@@ -24,6 +24,10 @@
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
<section id="run-artifacts" data-artifacts-url="{{ url_for('run_artifacts', run_id=run.id) }}" hidden>
|
||||
<h2>Downloads</h2>
|
||||
<ul></ul>
|
||||
</section>
|
||||
<h2>Output</h2>
|
||||
<pre id="run-output" data-output-url="{{ url_for('run_output', run_id=run.id) }}"></pre>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user