OLD | NEW |
(Empty) | |
| 1 [# Even though this field definition says it is single-valued, the issue might h
ave |
| 2 multiple values if the field definition was previously multi-valued. In such
a situation |
| 3 values other than the first value are shown read-only and must be explicitly
removed |
| 4 before the comment can be submitted. ] |
| 5 |
| 6 [# If the field has no explicit values, then show an empty form element.] |
| 7 [if-any fields.values][else] |
| 8 <input type="number" name="custom_[fields.field_id]" id="custom_[fields.fiel
d_id]" value="" |
| 9 [if-any fields.field_def.is_required_bool] required="required"[end] |
| 10 [if-any fields.field_def.min_value]min="[fields.field_def.min_value]"
[end] |
| 11 [if-any fields.field_def.max_value]max="[fields.field_def.max_value]"
[end] |
| 12 style="text-align:right; width:12em" class="multivalued customfield"> |
| 13 [end] |
| 14 |
| 15 |
| 16 [for fields.values] |
| 17 [if-index fields.values first] |
| 18 <input type="number" name="custom_[fields.field_id]" value="[fields.values.v
al]" |
| 19 [if-any fields.field_def.is_required_bool]required="required"[end] |
| 20 [if-any fields.field_def.min_value]min="[fields.field_def.min_value]"
[end] |
| 21 [if-any fields.field_def.max_value]max="[fields.field_def.max_value]"
[end] |
| 22 style="text-align:right; width:12em" class="multivalued customfield"> |
| 23 [else] |
| 24 <span> |
| 25 <input type="number" disabled="disabled" value="[fields.values.val]" |
| 26 style="text-align:right; width: 12em" class="multivalued customfiel
d"> |
| 27 <u class="removeMultiFieldValueWidget">X</u> |
| 28 </span> |
| 29 [end] |
| 30 [end] |
| 31 |
| 32 [for fields.derived_values] |
| 33 <input type="number" disabled="disabled" value="[fields.derived_values.val]" |
| 34 style="font-style:italic; text-align:right; width:12em" class="multival
ued"> |
| 35 [end] |
OLD | NEW |