Update job edit template to increment key value for variables

The code changes in this commit update the job edit template. Specifically, it adds a line of code to increment the key value for variables. This change allows for proper indexing and handling of variables in the template.
This commit is contained in:
Jeroen De Meerleer 2023-07-11 16:37:49 +02:00
parent 08d35ad70a
commit 0d0b3b2e94
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
1 changed files with 1 additions and 0 deletions

View File

@ -267,6 +267,7 @@
<input type="text" name="var-id[{{ key }}]" class="form-control var-id" placeholder="{{ "job.addedit.variables.name.placeholder" | trans }}" value="{{ id }}">
<input type="{% if var.issecret %}password{% else %}text{% endif %}" name="var-value[{{ key }}]" class="form-control var-value" placeholder="{{ "job.addedit.variables.value.placeholder" | trans }}" value="{% if var.issecret %}{{ var.value | decryptsecret }}{% else %}{{ var.value }}{% endif %}">
</div>
{% set key = key + 1 %}
{% endfor %}
{% endif %}
</div>