Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame^] | 1 | [if-any fields.values] |
| 2 | [for fields.values] |
| 3 | <input type="date" name="custom_[fields.field_id][is arg2 ""][else]_[arg2][end]" value="[fields.values.val]" |
| 4 | [if-any fields.field_def.min_value]min="[fields.field_def.min_value]"[end] |
| 5 | [if-any fields.field_def.max_value]max="[fields.field_def.max_value]"[end] |
| 6 | [if-index fields.values first] |
| 7 | [is arg0 "hidden"][else] |
| 8 | [if-any arg1]required="required"[end] |
| 9 | [end] |
| 10 | [end] |
| 11 | style="text-align:right; width:12em" class="multivalued customfield" |
| 12 | aria-labelledby="[fields.field_id]_label"> |
| 13 | [if-index fields.values first][else] |
| 14 | <u class="removeMultiFieldValueWidget">X</u> |
| 15 | [end] |
| 16 | [if-index fields.values last] |
| 17 | <u class="addMultiFieldValueWidget" data-field-id="[fields.field_id]" data-field-type="date" |
| 18 | data-validate-1="[fields.field_def.min_value]" data-validate-2="[fields.field_def.max_value]" |
| 19 | data-phase-name="[arg2]" |
| 20 | >Add a value</u> |
| 21 | [end] |
| 22 | [end] |
| 23 | [else] |
| 24 | <input type="date" name="custom_[fields.field_id][is arg2 ""][else]_[arg2][end]" value="" |
| 25 | [if-any fields.field_def.min_value]min="[fields.field_def.min_value]"[end] |
| 26 | [if-any fields.field_def.max_value]max="[fields.field_def.max_value]"[end] |
| 27 | [is arg0 "hidden"][else] |
| 28 | [if-any arg1]required="required"[end] |
| 29 | [end] |
| 30 | style="text-align:right; width:12em" class="multivalued customfield" |
| 31 | aria-labelledby="[fields.field_id]_label"> |
| 32 | <u class="addMultiFieldValueWidget" data-field-id="[fields.field_id]" data-field-type="date" |
| 33 | data-validate-1="[fields.field_def.min_value]" data-validate-2="[fields.field_def.max_value]" |
| 34 | data-phase-name="[arg2]">Add a value</u> |
| 35 | [end] |
| 36 | |
| 37 | [for fields.derived_values] |
| 38 | <input type="date" disabled="disabled" value="[fields.derived_values.val]" |
| 39 | style="font-style:italic; text-align:right; width:12em" class="multivalued" |
| 40 | aria-labelledby="[fields.field_id]_label"> |
| 41 | [end] |