blob: f17c2cf8735aa2a30817158f0177c02627b60ad8 [file] [log] [blame]
Copybara854996b2021-09-07 19:36:02 +00001[if-any fields.values]
2 [for fields.values]
3 <input type="number" name="custom_[fields.field_id][is arg2 ""][else]_[arg2][end]" value="[fields.values.val]"
4 [if-any fields.field_def.min_value]min="[fields.field_def.min_value]"[end]
5 [if-any fields.field_def.max_value]max="[fields.field_def.max_value]"[end]
6 [if-index fields.values first]
7 [is arg0 "hidden"][else]
8 [if-any arg1]required="required"[end]
9 [end]
10 [end]
11 style="text-align:right; width:12em" class="multivalued customfield"
12 aria-labelledby="[fields.field_id]_label">
13 [if-index fields.values first][else]
14 <u class="removeMultiFieldValueWidget">X</u>
15 [end]
16 [if-index fields.values last]
17 <u class="addMultiFieldValueWidget" data-field-id="[fields.field_id]" data-field-type="int"
18 data-validate-1="[fields.field_def.min_value]" data-validate-2="[fields.field_def.max_value]"
19 data-phase-name="[arg2]"
20 >Add a value</u>
21 [end]
22 [end]
23[else]
24 <input type="number" name="custom_[fields.field_id][is arg2 ""][else]_[arg2][end]" value=""
25 [if-any fields.field_def.min_value]min="[fields.field_def.min_value]"[end]
26 [if-any fields.field_def.max_value]max="[fields.field_def.max_value]"[end]
27 [is arg0 "hidden"][else]
28 [if-any arg1]required="required"[end]
29 [end]
30 style="text-align:right; width:12em" class="multivalued customfield"
31 aria-labelledby="[fields.field_id]_label">
32 <u class="addMultiFieldValueWidget" data-field-id="[fields.field_id]" data-field-type="int"
33 data-validate-1="[fields.field_def.min_value]" data-validate-2="[fields.field_def.max_value]"
34 data-phase-name="[arg2]">Add a value</u>
35[end]
36
37[for fields.derived_values]
38 <input type="number" disabled="disabled" value="[fields.derived_values.val]"
39 style="font-style:italic; text-align:right; width:12em" class="multivalued"
40 aria-labelledby="[fields.field_id]_label">
41[end]