|
32 | 32 | @finish="handleSubmit" |
33 | 33 | layout="vertical"> |
34 | 34 | <div v-if="currentForm === 'Create'"> |
35 | | - <a-form-item :label="$t('label.url')" name="url" ref="url"> |
| 35 | + <a-form-item name="url" ref="url"> |
| 36 | + <template #label> |
| 37 | + <tooltip-label :title="$t('label.url')" :tooltip="apiParams.url.description"/> |
| 38 | + </template> |
36 | 39 | <a-input |
37 | 40 | v-focus="currentForm === 'Create'" |
38 | 41 | v-model:value="form.url" |
|
56 | 59 | </a-upload-dragger> |
57 | 60 | </a-form-item> |
58 | 61 | </div> |
59 | | - <a-form-item :label="$t('label.name')" ref="name" name="name"> |
| 62 | + <a-form-item ref="name" name="name"> |
| 63 | + <template #label> |
| 64 | + <tooltip-label :title="$t('label.name')" :tooltip="apiParams.name.description"/> |
| 65 | + </template> |
60 | 66 | <a-input |
61 | 67 | v-model:value="form.name" |
62 | 68 | :placeholder="apiParams.name.description" |
63 | 69 | v-focus="currentForm !== 'Create'"/> |
64 | 70 | </a-form-item> |
65 | | - <a-form-item :label="$t('label.displaytext')" ref="displaytext" name="displaytext"> |
| 71 | + <a-form-item ref="displaytext" name="displaytext"> |
| 72 | + <template #label> |
| 73 | + <tooltip-label :title="$t('label.displaytext')" :tooltip="apiParams.displaytext.description"/> |
| 74 | + </template> |
66 | 75 | <a-input |
67 | 76 | v-model:value="form.displaytext" |
68 | 77 | :placeholder="apiParams.displaytext.description" /> |
69 | 78 | </a-form-item> |
70 | 79 | <div v-if="currentForm === 'Create'"> |
71 | 80 | <a-form-item |
72 | | - :label="$t('label.zone')" |
73 | 81 | name="zoneids" |
74 | 82 | ref="zoneids"> |
| 83 | + <template #label> |
| 84 | + <tooltip-label :title="$t('label.zone')" :tooltip="apiParams.zoneids.description"/> |
| 85 | + </template> |
75 | 86 | <a-select |
76 | 87 | v-model:value="form.zoneids" |
77 | 88 | :loading="zones.loading" |
|
94 | 105 | </div> |
95 | 106 | <div v-else> |
96 | 107 | <a-form-item |
97 | | - :label="$t('label.zoneid')" |
98 | 108 | ref="zoneid" |
99 | 109 | name="zoneid"> |
| 110 | + <template #label> |
| 111 | + <tooltip-label :title="$t('label.zoneid')" :tooltip="apiParams.zoneid.description"/> |
| 112 | + </template> |
100 | 113 | <a-select |
101 | 114 | v-model:value="form.zoneid" |
102 | 115 | showSearch |
|
160 | 173 | </a-form-item> |
161 | 174 | <a-row :gutter="12"> |
162 | 175 | <a-col :md="24" :lg="12"> |
163 | | - <a-form-item ref="hypervisor" name="hypervisor" :label="$t('label.hypervisor')"> |
| 176 | + <a-form-item ref="hypervisor" name="hypervisor"> |
| 177 | + <template #label> |
| 178 | + <tooltip-label :title="$t('label.hypervisor')" :tooltip="apiParams.hypervisor.description"/> |
| 179 | + </template> |
164 | 180 | <a-select |
165 | 181 | v-model:value="form.hypervisor" |
166 | 182 | :loading="hyperVisor.loading" |
|
178 | 194 | </a-form-item> |
179 | 195 | </a-col> |
180 | 196 | <a-col :md="24" :lg="12"> |
181 | | - <a-form-item ref="format" name="format" :label="$t('label.format')"> |
| 197 | + <a-form-item ref="format" name="format"> |
| 198 | + <template #label> |
| 199 | + <tooltip-label :title="$t('label.format')" :tooltip="apiParams.format.description"/> |
| 200 | + </template> |
182 | 201 | <a-select |
183 | 202 | v-model:value="form.format" |
184 | 203 | :placeholder="apiParams.format.description" |
|
197 | 216 | </a-row> |
198 | 217 | <a-row :gutter="12" v-if="allowed && (hyperKVMShow || hyperCustomShow) && currentForm !== 'Upload'"> |
199 | 218 | <a-col :md="24" :lg="12"> |
200 | | - <a-form-item ref="directdownload" name="directdownload" :label="$t('label.directdownload')"> |
| 219 | + <a-form-item ref="directdownload" name="directdownload"> |
| 220 | + <template #label> |
| 221 | + <tooltip-label :title="$t('label.directdownload')" :tooltip="apiParams.directdownload.description"/> |
| 222 | + </template> |
201 | 223 | <a-switch v-model:checked="form.directdownload" @change="handleChangeDirect" /> |
202 | 224 | </a-form-item> |
203 | 225 | </a-col> |
204 | 226 | <a-col :md="24" :lg="12" v-if="allowDirectDownload"> |
205 | | - <a-form-item ref="checksum" name="checksum" :label="$t('label.checksum')"> |
| 227 | + <a-form-item ref="checksum" name="checksum"> |
| 228 | + <template #label> |
| 229 | + <tooltip-label :title="$t('label.checksum')" :tooltip="apiParams.checksum.description"/> |
| 230 | + </template> |
206 | 231 | <a-input |
207 | 232 | v-model:value="form.checksum" |
208 | 233 | :placeholder="apiParams.checksum.description" /> |
|
215 | 240 | </a-form-item> |
216 | 241 | </a-row> |
217 | 242 |
|
218 | | - <a-form-item ref="deployasis" name="deployasis" :label="$t('label.deployasis')" v-if="selectedFormat === 'OVA'"> |
| 243 | + <a-form-item ref="deployasis" name="deployasis" v-if="selectedFormat === 'OVA'"> |
| 244 | + <template #label> |
| 245 | + <tooltip-label :title="$t('label.deployasis')" :tooltip="apiParams.deployasis.description"/> |
| 246 | + </template> |
219 | 247 | <a-switch |
220 | 248 | v-model:checked="form.deployasis" |
221 | 249 | :checked="deployasis" |
|
278 | 306 | <a-form-item |
279 | 307 | name="ostypeid" |
280 | 308 | ref="ostypeid" |
281 | | - :label="$t('label.ostypeid')" |
282 | 309 | v-if="!hyperVMWShow || (hyperVMWShow && !deployasis)"> |
| 310 | + <template #label> |
| 311 | + <tooltip-label :title="$t('label.ostypeid')" :tooltip="apiParams.ostypeid.description"/> |
| 312 | + </template> |
283 | 313 | <a-select |
284 | 314 | showSearch |
285 | 315 | optionFilterProp="label" |
|
298 | 328 | <a-col :md="24" :lg="12"> |
299 | 329 | <a-form-item |
300 | 330 | name="userdataid" |
301 | | - ref="userdataid" |
302 | | - :label="$t('label.userdata')"> |
| 331 | + ref="userdataid"> |
| 332 | + <template #label> |
| 333 | + <tooltip-label :title="$t('label.userdata')" :tooltip="linkUserDataParams.userdataid.description"/> |
| 334 | + </template> |
303 | 335 | <a-select |
304 | 336 | showSearch |
305 | 337 | optionFilterProp="label" |
|
318 | 350 | <a-col :md="24" :lg="12"> |
319 | 351 | <a-form-item ref="userdatapolicy" name="userdatapolicy"> |
320 | 352 | <template #label> |
321 | | - <tooltip-label :title="$t('label.userdatapolicy')" :tooltip="$t('label.userdatapolicy.tooltip')"/> |
| 353 | + <tooltip-label :title="$t('label.userdatapolicy')" :tooltip="linkUserDataParams.userdatapolicy.description"/> |
322 | 354 | </template> |
323 | 355 | <a-select |
324 | 356 | showSearch |
|
344 | 376 | > |
345 | 377 | <a-row> |
346 | 378 | <a-col :span="12"> |
| 379 | + <template #label> |
| 380 | + <tooltip-label :title="$t('label.isextractable')" :tooltip="apiParams.isextractable.description"/> |
| 381 | + </template> |
347 | 382 | <a-checkbox value="isextractable"> |
348 | 383 | {{ $t('label.isextractable') }} |
349 | 384 | </a-checkbox> |
|
0 commit comments