Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame^] | 1 | [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 | [if-index fields.values first] |
| 5 | [is arg0 "hidden"][else] |
| 6 | [if-any arg1]required="required"[end] |
| 7 | [end] |
| 8 | [end] |
| 9 | style="width: 12em" class="multivalued customfield" aria-labelledby="[fields.field_id]_label"> |
| 10 | [if-index fields.values first][else] |
| 11 | <u class="removeMultiFieldValueWidget">X</u> |
| 12 | [end] |
| 13 | [if-index fields.values last] |
| 14 | <u class="addMultiFieldValueWidget" data-field-id="[fields.field_id]" data-field-type="url" data-phase-name="[arg2]">Add a value</u> |
| 15 | [end] |
| 16 | [end] |
| 17 | [else] |
| 18 | <input name="custom_[fields.field_id][is arg2 ""][else]_[arg2][end]" value="" |
| 19 | [is arg0 "hidden"][else] |
| 20 | [if-any arg1]required="required"[end] |
| 21 | [end] |
| 22 | style="width: 12em" class="multivalued customfield" aria-labelledby="[fields.field_id]_label"> |
| 23 | <u class="addMultiFieldValueWidget" data-field-id="[fields.field_id]" data-field-type="url" data-phase-name="[arg2]">Add a value</u> |
| 24 | [end] |
| 25 | |
| 26 | [for fields.derived_values] |
| 27 | <input disabled="disabled" value="[fields.derived_values.val]" |
| 28 | style="font-style:italic" style="width: 12em" class="multivalued" aria-labelledby="[fields.field_id]_label"> |
| 29 | [end] |