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:
parent
08d35ad70a
commit
0d0b3b2e94
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user