OLD | NEW |
(Empty) | |
| 1 [if-any fields.values] |
| 2 [for fields.values] |
| 3 <input name="custom_[fields.field_id]" value="[fields.values.val]" |
| 4 [# TODO(jrobbins): string validation] |
| 5 [if-index fields.values first] |
| 6 [if-any fields.field_def.is_required_bool]required="required"[end] |
| 7 [end] |
| 8 size="90" class="multivalued customfield"> |
| 9 [if-index fields.values first][else] |
| 10 <u class="removeMultiFieldValueWidget">X</u> |
| 11 [end] |
| 12 [if-index fields.values last] |
| 13 <u class="addMultiFieldValueWidget" data-field-id="[fields.field_id]" data
-field-type="str">Add a value</u> |
| 14 [end] |
| 15 [end] |
| 16 [else] |
| 17 <input name="custom_[fields.field_id]" value="" |
| 18 [# TODO(jrobbins): string validation] |
| 19 [if-any fields.field_def.is_required_bool]required="required"[end] |
| 20 size="90" class="multivalued customfield"> |
| 21 <u class="addMultiFieldValueWidget" data-field-id="[fields.field_id]" dat
a-field-type="str">Add a value</u> |
| 22 [end] |
| 23 |
| 24 [for fields.derived_values] |
| 25 <input disabled="disabled" value="[fields.derived_values.val]" |
| 26 style="font-style:italic" size="90" class="multivalued"> |
| 27 [end] |
OLD | NEW |