blob: 9630d880c305b48df3e0b24c20ea2a22b03388c6 [file] [log] [blame]
[# Even though this field definition says it is single-valued, the issue might have
multiple values if the field definition was previously multi-valued. In such a situation
values other than the first value are shown read-only and must be explicitly removed
before the comment can be submitted. ]
[# If the field has no explicit values, then show an empty form element.]
[if-any fields.values][else]
<input type="text" name="custom_[fields.field_id]" id="custom_[fields.field_id]" value=""
[if-any fields.field_def.is_required_bool]required="required"[end]
style="width:12em" class="multivalued userautocomplete customfield" autocomplete="off">
[end]
[for fields.values]
[if-index fields.values first]
<input type="text" name="custom_[fields.field_id]" value="[fields.values.val]"
[if-any fields.field_def.is_required_bool]required="required"[end]
style="width:12em" class="multivalued userautocomplete customfield" autocomplete="off">
[else]
<span>
<input type="text" disabled="disabled" value="[fields.values.val]"
style="width:12em" class="multivalued userautocomplete customfield" autocomplete="off">
<a href="#" class="removeMultiFieldValueWidget">X</a>
</span>
[end]
[end]
[for fields.derived_values]
<input type="text" disabled="disabled" value="[fields.derived_values.val]"
style="font-style:italic; width:12em" class="multivalued">
[end]