|
246 | 246 | </a-form-item> |
247 | 247 | </div> |
248 | 248 | <div class="form__item" v-if="!basicGuestNetwork && form.iptype != 'ip6'"> |
249 | | - <div style="color: black;">{{ $t('label.set.reservation') }}</div> |
| 249 | + <tooltip-label :title="$t('label.set.reservation')" :tooltip="$t('label.set.reservation.desc')" class="tooltip-label-wrapper"/> |
| 250 | + <br/> |
250 | 251 | <a-switch v-model:checked="showAccountFields" @change="handleShowAccountFields" /> |
251 | 252 | </div> |
252 | 253 | <div v-if="showAccountFields && !basicGuestNetwork" style="margin-top: 20px;"> |
253 | | - <div v-html="$t('label.set.reservation.desc')"></div> |
254 | | - <a-form-item name="forsystemvms" ref="forsystemvms" :label="$t('label.system.vms')" class="form__item"> |
| 254 | + <a-form-item name="forsystemvms" ref="forsystemvms" class="form__item"> |
| 255 | + <tooltip-label :title="$t('label.system.vms')" :tooltip="$t('label.set.reservation.systemvm.desc')" class="tooltip-label-wrapper"/> |
| 256 | + <br/> |
255 | 257 | <a-switch v-model:checked="form.forsystemvms" /> |
256 | 258 | </a-form-item> |
257 | | - <a-spin :spinning="domainsLoading"> |
258 | | - <a-form-item name="account" ref="account" :label="$t('label.account')" class="form__item"> |
259 | | - <a-input v-model:value="form.account"></a-input> |
260 | | - </a-form-item> |
261 | | - <a-form-item name="domain" ref="domain" :label="$t('label.domain')" class="form__item"> |
262 | | - <a-select |
263 | | - v-model:value="form.domain" |
264 | | - showSearch |
265 | | - optionFilterProp="label" |
266 | | - :filterOption="(input, option) => { |
267 | | - return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 |
268 | | - }" > |
269 | | - <a-select-option |
270 | | - v-for="domain in domains" |
271 | | - :key="domain.id" |
272 | | - :value="domain.id" |
273 | | - :label="domain.path || domain.name || domain.description">{{ domain.path || domain.name || domain.description }} |
274 | | - </a-select-option> |
275 | | - </a-select> |
276 | | - </a-form-item> |
277 | | - </a-spin> |
| 259 | + <br/> |
| 260 | + <span v-if="!form.forsystemvms"> |
| 261 | + <a-spin :spinning="domainsLoading"> |
| 262 | + <a-form-item name="account" ref="account" class="form__item"> |
| 263 | + <tooltip-label :title="$t('label.account')" :tooltip="$t('label.set.reservation.account.desc')" class="tooltip-label-wrapper"/> |
| 264 | + <br/> |
| 265 | + <a-input v-model:value="form.account"></a-input> |
| 266 | + </a-form-item> |
| 267 | + <a-form-item name="domain" ref="domain" :label="$t('label.domain')" class="form__item"> |
| 268 | + <a-select |
| 269 | + v-model:value="form.domain" |
| 270 | + showSearch |
| 271 | + optionFilterProp="label" |
| 272 | + :filterOption="(input, option) => { |
| 273 | + return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 |
| 274 | + }" > |
| 275 | + <a-select-option |
| 276 | + v-for="domain in domains" |
| 277 | + :key="domain.id" |
| 278 | + :value="domain.id" |
| 279 | + :label="domain.path || domain.name || domain.description">{{ domain.path || domain.name || domain.description }} |
| 280 | + </a-select-option> |
| 281 | + </a-select> |
| 282 | + </a-form-item> |
| 283 | + </a-spin> |
| 284 | + </span> |
278 | 285 | </div> |
279 | 286 |
|
280 | 287 | <div :span="24" class="action-button"> |
|
340 | 347 | import { ref, reactive, toRaw } from 'vue' |
341 | 348 | import { api } from '@/api' |
342 | 349 | import TooltipButton from '@/components/widgets/TooltipButton' |
| 350 | +import TooltipLabel from '@/components/widgets/TooltipLabel' |
343 | 351 |
|
344 | 352 | export default { |
345 | 353 | name: 'IpRangesTabPublic', |
346 | 354 | components: { |
347 | | - TooltipButton |
| 355 | + TooltipButton, |
| 356 | + TooltipLabel |
348 | 357 | }, |
349 | 358 | props: { |
350 | 359 | resource: { |
@@ -712,6 +721,10 @@ export default { |
712 | 721 | } |
713 | 722 | } |
714 | 723 |
|
| 724 | + .tooltip-label-wrapper { |
| 725 | + color: rgba(0, 0, 0, 0.85); |
| 726 | + } |
| 727 | +
|
715 | 728 | .ant-list-item { |
716 | 729 | padding-top: 0; |
717 | 730 | padding-bottom: 0; |
|
0 commit comments