Update Python tools
This commit is contained in:
@@ -9,9 +9,11 @@
|
||||
<section class="group">
|
||||
<div class="group-heading">
|
||||
<h2>{{ group.display_name }}</h2>
|
||||
{% if group.can_run_as_group %}
|
||||
<form method="post" action="{{ url_for('run_group', group_id=group.id) }}">
|
||||
<button type="submit">Run group</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if group_run %}
|
||||
<p class="run-summary">
|
||||
@@ -35,7 +37,7 @@
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
<form method="post" action="{{ url_for('run_task', task_id=task.id) }}">
|
||||
<form method="post" action="{{ url_for('run_task', task_id=task.id) }}"{% if task.wait_for_result %} data-wait-for-result{% endif %}>
|
||||
{% set values = form_values.get(task.id, {}) %}
|
||||
{% set errors = input_errors.get(task.id, {}) %}
|
||||
{% for field in task.inputs %}
|
||||
@@ -79,7 +81,11 @@
|
||||
{% if errors.get(field.name) %}<p class="input-error">{{ errors[field.name] }}</p>{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
<button type="submit">Run</button>
|
||||
<button type="submit">
|
||||
<span class="button-label">Run</span>
|
||||
{% if task.wait_for_result %}<span class="spinner" aria-hidden="true"></span>{% endif %}
|
||||
</button>
|
||||
{% if task.wait_for_result %}<p class="task-result" aria-live="polite"></p>{% endif %}
|
||||
</form>
|
||||
</li>
|
||||
{% else %}
|
||||
|
||||
Reference in New Issue
Block a user