blob: 678cd79f10e94946fa14788881c9513eeb6fb235 [file] [log] [blame]
[if-any fields.values]
[for fields.values]
<input type="text" name="custom_[fields.field_id][is arg2 ""][else]_[arg2][end]" value="[fields.values.val]"
[# TODO(jrobbins): include fields.min_value and fields.max_value attrs]
[if-index fields.values first]
[is arg0 "hidden"][else]
[if-any arg1]required="required"[end]
[end]
[end]
style="width:12em" class="multivalued userautocomplete customfield" autocomplete="off"
data-ac-type="owner" aria-labelledby="[fields.field_id]_label">
[if-index fields.values first][else]
<u class="removeMultiFieldValueWidget">X</u>
[end]
[if-index fields.values last]
<u class="addMultiFieldValueWidget" data-field-id="[fields.field_id]" data-field-type="user" data-phase-name="[arg2]">Add a value</u>
[end]
[end]
[else]
<input type="text" name="custom_[fields.field_id][is arg2 ""][else]_[arg2][end]" value=""
[is arg0 "hidden"][else]
[if-any arg1]required="required"[end]
[end]
style="width:12em" class="multivalued userautocomplete customfield" autocomplete="off"
data-ac-type="owner" aria-labelledby="[fields.field_id]_label">
<u class="addMultiFieldValueWidget" data-field-id="[fields.field_id]" data-field-type="user" data-phase-name="[arg2]">Add a value</u>
[end]
[for fields.derived_values]
<input type="text" disabled="disabled" value="[fields.derived_values.val]"
style="width:12em" class="multivalued" aria-labelledby="[fields.field_id]_label">
[end]