Improve task control panel layout
Build custom container images / build (map[base_image:php:8-fpm-alpine build_args:PHP_VERSION=8
context:php8-pgsql fingerprint_command:{ apk info -v | LC_ALL=C sort; find /usr/local/lib/php/extensions /usr/local/etc/php/conf.d -type f -exec sha256sum {} + | LC_ALL=C sort; }
name:ph… (push) Successful in 47s
Build custom container images / build (map[base_image:postgres:18 build_args:PG_VERSION=18
POSTGIS_VERSION=3
VCHORD_VERSION=0.5.3
context:postgres fingerprint_command:{ dpkg-query -W -f='${binary:Package}=${Version}\n' | LC_ALL=C sort; find /usr/lib/postgresql -type f -exec sha256su… (push) Successful in 1m40s
Build custom container images / build (map[base_image:python:3 build_args:PYTHON_VERSION=3
context:python-tools fingerprint_command:{ dpkg-query -W -f='${binary:Package}=${Version}\n' | LC_ALL=C sort; pip freeze | LC_ALL=C sort; }
name:python-tools oci_labels:org.opencontainers.ima… (push) Successful in 1m18s
Build custom container images / build (map[base_image:php:8-fpm-alpine build_args:PHP_VERSION=8
context:php8-pgsql fingerprint_command:{ apk info -v | LC_ALL=C sort; find /usr/local/lib/php/extensions /usr/local/etc/php/conf.d -type f -exec sha256sum {} + | LC_ALL=C sort; }
name:ph… (push) Successful in 47s
Build custom container images / build (map[base_image:postgres:18 build_args:PG_VERSION=18
POSTGIS_VERSION=3
VCHORD_VERSION=0.5.3
context:postgres fingerprint_command:{ dpkg-query -W -f='${binary:Package}=${Version}\n' | LC_ALL=C sort; find /usr/lib/postgresql -type f -exec sha256su… (push) Successful in 1m40s
Build custom container images / build (map[base_image:python:3 build_args:PYTHON_VERSION=3
context:python-tools fingerprint_command:{ dpkg-query -W -f='${binary:Package}=${Version}\n' | LC_ALL=C sort; pip freeze | LC_ALL=C sort; }
name:python-tools oci_labels:org.opencontainers.ima… (push) Successful in 1m18s
This commit is contained in:
@@ -24,8 +24,8 @@
|
||||
<ul class="tasks">
|
||||
{% for task in group.tasks %}
|
||||
{% set task_run = latest[("task", task.id)] %}
|
||||
<li>
|
||||
<div>
|
||||
<li class="task">
|
||||
<div class="task-details">
|
||||
<h3>{{ task.display_name }}</h3>
|
||||
{% if task.description %}<p>{{ task.description }}</p>{% endif %}
|
||||
{% if task_run %}
|
||||
@@ -37,10 +37,11 @@
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
<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 %}>
|
||||
<form class="task-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 %}
|
||||
{% if not task.execution or field.name != task.execution.field.name %}
|
||||
<div class="task-input">
|
||||
{% if field.type == "file" %}
|
||||
<label>{{ field.label }}{% if field.required %} (required){% endif %}
|
||||
@@ -58,7 +59,7 @@
|
||||
{% endfor %}
|
||||
</fieldset>
|
||||
{% elif field.type == "choice" %}
|
||||
<label>{{ field.label }}{% if field.required %} (required){% endif %}
|
||||
<label>{{ field.label }}
|
||||
<select name="{{ field.name }}" {% if field.required %}required{% endif %}>
|
||||
{% if not field.required %}<option value="">No selection</option>{% endif %}
|
||||
{% set selected = values.get(field.name, field.default or "") %}
|
||||
@@ -85,11 +86,24 @@
|
||||
{% endif %}
|
||||
{% if errors.get(field.name) %}<p class="input-error">{{ errors[field.name] }}</p>{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<button type="submit">
|
||||
<span class="button-label">Run</span>
|
||||
{% if task.wait_for_result %}<span class="spinner" aria-hidden="true"></span>{% endif %}
|
||||
</button>
|
||||
<div class="task-action">
|
||||
{% if task.execution %}
|
||||
{% set execution = task.execution.field %}
|
||||
{% set selected = values.get(execution.name, execution.default) %}
|
||||
<label class="visually-hidden" for="{{ task.id|replace('/', '-') }}-{{ execution.name }}">Run mode</label>
|
||||
<select id="{{ task.id|replace('/', '-') }}-{{ execution.name }}" name="{{ execution.name }}" data-execution-mode>
|
||||
{% for option in execution.options %}
|
||||
<option value="{{ option.value }}" {% if option.value == selected %}selected{% endif %}>{{ option.label }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
{% endif %}
|
||||
<button type="submit">
|
||||
<span class="button-label">{{ task.execution.field.options[0].label if task.execution else "Run" }}</span>
|
||||
{% if task.wait_for_result %}<span class="spinner" aria-hidden="true"></span>{% endif %}
|
||||
</button>
|
||||
</div>
|
||||
{% if task.wait_for_result %}<p class="task-result" aria-live="polite"></p>{% endif %}
|
||||
</form>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user