|
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 |
|
119 | 132 | </div> |
120 | 133 | <a-row :gutter="12"> |
121 | 134 | <a-col :md="24" :lg="12"> |
122 | | - <a-form-item ref="hypervisor" name="hypervisor" :label="$t('label.hypervisor')"> |
| 135 | + <a-form-item ref="hypervisor" name="hypervisor"> |
| 136 | + <template #label> |
| 137 | + <tooltip-label :title="$t('label.hypervisor')" :tooltip="apiParams.hypervisor.description"/> |
| 138 | + </template> |
123 | 139 | <a-select |
124 | 140 | v-model:value="form.hypervisor" |
125 | 141 | :loading="hyperVisor.loading" |
|
137 | 153 | </a-form-item> |
138 | 154 | </a-col> |
139 | 155 | <a-col :md="24" :lg="12"> |
140 | | - <a-form-item ref="format" name="format" :label="$t('label.format')"> |
| 156 | + <a-form-item ref="format" name="format"> |
| 157 | + <template #label> |
| 158 | + <tooltip-label :title="$t('label.format')" :tooltip="apiParams.format.description"/> |
| 159 | + </template> |
141 | 160 | <a-select |
142 | 161 | v-model:value="form.format" |
143 | 162 | :placeholder="apiParams.format.description" |
|
156 | 175 | </a-row> |
157 | 176 | <a-row :gutter="12" v-if="allowed && hyperKVMShow && currentForm !== 'Upload'"> |
158 | 177 | <a-col :md="24" :lg="12"> |
159 | | - <a-form-item ref="directdownload" name="directdownload" :label="$t('label.directdownload')"> |
| 178 | + <a-form-item ref="directdownload" name="directdownload"> |
| 179 | + <template #label> |
| 180 | + <tooltip-label :title="$t('label.directdownload')" :tooltip="apiParams.directdownload.description"/> |
| 181 | + </template> |
160 | 182 | <a-switch v-model:checked="form.directdownload" @change="handleChangeDirect" /> |
161 | 183 | </a-form-item> |
162 | 184 | </a-col> |
163 | 185 | <a-col :md="24" :lg="12" v-if="allowDirectDownload"> |
164 | | - <a-form-item ref="checksum" name="checksum" :label="$t('label.checksum')"> |
| 186 | + <a-form-item ref="checksum" name="checksum"> |
| 187 | + <template #label> |
| 188 | + <tooltip-label :title="$t('label.checksum')" :tooltip="apiParams.checksum.description"/> |
| 189 | + </template> |
165 | 190 | <a-input |
166 | 191 | v-model:value="form.checksum" |
167 | 192 | :placeholder="apiParams.checksum.description" /> |
|
174 | 199 | </a-form-item> |
175 | 200 | </a-row> |
176 | 201 |
|
177 | | - <a-form-item ref="deployasis" name="deployasis" :label="$t('label.deployasis')" v-if="selectedFormat === 'OVA'"> |
| 202 | + <a-form-item ref="deployasis" name="deployasis" v-if="selectedFormat === 'OVA'"> |
| 203 | + <template #label> |
| 204 | + <tooltip-label :title="$t('label.deployasis')" :tooltip="apiParams.deployasis.description"/> |
| 205 | + </template> |
178 | 206 | <a-switch |
179 | 207 | v-model:checked="form.deployasis" |
180 | 208 | :checked="deployasis" |
|
237 | 265 | <a-form-item |
238 | 266 | name="ostypeid" |
239 | 267 | ref="ostypeid" |
240 | | - :label="$t('label.ostypeid')" |
241 | 268 | v-if="!hyperVMWShow || (hyperVMWShow && !deployasis)"> |
| 269 | + <template #label> |
| 270 | + <tooltip-label :title="$t('label.ostypeid')" :tooltip="apiParams.ostypeid.description"/> |
| 271 | + </template> |
242 | 272 | <a-select |
243 | 273 | showSearch |
244 | 274 | optionFilterProp="label" |
|
257 | 287 | <a-col :md="24" :lg="12"> |
258 | 288 | <a-form-item |
259 | 289 | name="userdataid" |
260 | | - ref="userdataid" |
261 | | - :label="$t('label.userdata')"> |
| 290 | + ref="userdataid"> |
| 291 | + <template #label> |
| 292 | + <tooltip-label :title="$t('label.userdata')" :tooltip="linkUserDataParams.userdataid.description"/> |
| 293 | + </template> |
262 | 294 | <a-select |
263 | 295 | showSearch |
264 | 296 | optionFilterProp="label" |
|
277 | 309 | <a-col :md="24" :lg="12"> |
278 | 310 | <a-form-item ref="userdatapolicy" name="userdatapolicy"> |
279 | 311 | <template #label> |
280 | | - <tooltip-label :title="$t('label.userdatapolicy')" :tooltip="$t('label.userdatapolicy.tooltip')"/> |
| 312 | + <tooltip-label :title="$t('label.userdatapolicy')" :tooltip="linkUserDataParams.userdatapolicy.description"/> |
281 | 313 | </template> |
282 | 314 | <a-select |
283 | 315 | v-model:value="userdatapolicy" |
|
0 commit comments