|
87 | 87 | <section class="pantry-recurrence__section"> |
88 | 88 | <label class="pantry-recurrence__label">{{ strings.endsLabel }}</label> |
89 | 89 | <div class="pantry-recurrence__ends"> |
90 | | - <label class="pantry-recurrence__radio"> |
91 | | - <input v-model="endKind" type="radio" value="never" /> |
92 | | - <span>{{ strings.endNever }}</span> |
93 | | - </label> |
94 | | - <label class="pantry-recurrence__radio"> |
95 | | - <input v-model="endKind" type="radio" value="count" /> |
96 | | - <span>{{ strings.endAfter }}</span> |
| 90 | + <NcCheckboxRadioSwitch |
| 91 | + :model-value="endKind" |
| 92 | + value="never" |
| 93 | + name="pantry-end-kind" |
| 94 | + type="radio" |
| 95 | + @update:model-value="endKind = $event" |
| 96 | + > |
| 97 | + {{ strings.endNever }} |
| 98 | + </NcCheckboxRadioSwitch> |
| 99 | + <div class="pantry-recurrence__radio-row"> |
| 100 | + <NcCheckboxRadioSwitch |
| 101 | + :model-value="endKind" |
| 102 | + value="count" |
| 103 | + name="pantry-end-kind" |
| 104 | + type="radio" |
| 105 | + @update:model-value="endKind = $event" |
| 106 | + > |
| 107 | + {{ strings.endAfter }} |
| 108 | + </NcCheckboxRadioSwitch> |
97 | 109 | <input |
98 | 110 | v-model.number="endCount" |
99 | 111 | type="number" |
|
103 | 115 | :disabled="endKind !== 'count'" |
104 | 116 | /> |
105 | 117 | <span>{{ strings.endAfterSuffix }}</span> |
106 | | - </label> |
107 | | - <label class="pantry-recurrence__radio"> |
108 | | - <input v-model="endKind" type="radio" value="until" /> |
109 | | - <span>{{ strings.endOn }}</span> |
| 118 | + </div> |
| 119 | + <div class="pantry-recurrence__radio-row"> |
| 120 | + <NcCheckboxRadioSwitch |
| 121 | + :model-value="endKind" |
| 122 | + value="until" |
| 123 | + name="pantry-end-kind" |
| 124 | + type="radio" |
| 125 | + @update:model-value="endKind = $event" |
| 126 | + > |
| 127 | + {{ strings.endOn }} |
| 128 | + </NcCheckboxRadioSwitch> |
110 | 129 | <input |
111 | 130 | v-model="endUntil" |
112 | 131 | type="date" |
113 | 132 | class="pantry-recurrence__date" |
114 | 133 | :disabled="endKind !== 'until'" |
115 | 134 | /> |
116 | | - </label> |
| 135 | + </div> |
117 | 136 | </div> |
118 | 137 | </section> |
119 | 138 |
|
@@ -610,11 +629,10 @@ const strings = { |
610 | 629 | gap: 0.5rem; |
611 | 630 | } |
612 | 631 |
|
613 | | - &__radio { |
| 632 | + &__radio-row { |
614 | 633 | display: flex; |
615 | 634 | align-items: center; |
616 | 635 | gap: 0.5rem; |
617 | | - cursor: pointer; |
618 | 636 | } |
619 | 637 |
|
620 | 638 | &__divider { |
|
0 commit comments