blob: 62c72d7d2066bf2238aff42cc74c3fae633a0dab [file] [log] [blame]
Copybara854996b2021-09-07 19:36:02 +00001[if-any fields.values]
2 [for fields.values]
3 <input name="custom_[fields.field_id][is arg2 ""][else]_[arg2][end]" value="[fields.values.val]"
4 [# TODO(jrobbins): string validation]
5 [if-index fields.values first]
6 [is arg0 "hidden"][else]
7 [if-any arg1]required="required"[end]
8 [end]
9 [end]
10 style="width: 12em" class="multivalued customfield"
11 aria-labelledby="[fields.field_id]_label">
12 [if-index fields.values first][else]
13 <u class="removeMultiFieldValueWidget">X</u>
14 [end]
15 [if-index fields.values last]
16 <u class="addMultiFieldValueWidget" data-field-id="[fields.field_id]" data-field-type="str" data-phase-name="[arg2]">Add a value</u>
17 [end]
18 [end]
19[else]
20 <input name="custom_[fields.field_id][is arg2 ""][else]_[arg2][end]" value=""
21 [# TODO(jrobbins): string validation]
22 [is arg0 "hidden"][else]
23 [if-any arg1]required="required"[end]
24 [end]
25 style="width: 12em" class="multivalued customfield" aria-labelledby="[fields.field_id]_label">
26 <u class="addMultiFieldValueWidget" data-field-id="[fields.field_id]" data-field-type="str" data-phase-name="[arg2]">Add a value</u>
27[end]
28
29[for fields.derived_values]
30 <input disabled="disabled" value="[fields.derived_values.val]"
31 style="font-style:italic" style="width: 12em" class="multivalued"
32 aria-labelledby="[fields.field_id]_label">
33[end]