blob: 678cd79f10e94946fa14788881c9513eeb6fb235 [file] [log] [blame]
Copybara854996b2021-09-07 19:36:02 +00001[if-any fields.values]
2 [for fields.values]
3 <input type="text" name="custom_[fields.field_id][is arg2 ""][else]_[arg2][end]" value="[fields.values.val]"
4 [# TODO(jrobbins): include fields.min_value and fields.max_value attrs]
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 userautocomplete customfield" autocomplete="off"
11 data-ac-type="owner" 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="user" data-phase-name="[arg2]">Add a value</u>
17 [end]
18 [end]
19[else]
20 <input type="text" name="custom_[fields.field_id][is arg2 ""][else]_[arg2][end]" value=""
21 [is arg0 "hidden"][else]
22 [if-any arg1]required="required"[end]
23 [end]
24 style="width:12em" class="multivalued userautocomplete customfield" autocomplete="off"
25 data-ac-type="owner" aria-labelledby="[fields.field_id]_label">
26 <u class="addMultiFieldValueWidget" data-field-id="[fields.field_id]" data-field-type="user" data-phase-name="[arg2]">Add a value</u>
27[end]
28
29[for fields.derived_values]
30 <input type="text" disabled="disabled" value="[fields.derived_values.val]"
31 style="width:12em" class="multivalued" aria-labelledby="[fields.field_id]_label">
32[end]