|
22 | 22 | :form="form" |
23 | 23 | @submit="handleSubmit" |
24 | 24 | layout="vertical"> |
25 | | - <a-form-item :label="$t('label.name')"> |
| 25 | + <a-form-item> |
| 26 | + <span slot="label"> |
| 27 | + {{ $t('label.name') }} |
| 28 | + <a-tooltip :title="apiParams.name.description"> |
| 29 | + <a-icon type="info-circle" style="color: rgba(0,0,0,.45)" /> |
| 30 | + </a-tooltip> |
| 31 | + </span> |
26 | 32 | <a-input |
27 | 33 | v-decorator="['name', { |
28 | 34 | rules: [{ required: true, message: 'Please enter Kubernetes cluster name' }] |
29 | 35 | }]" |
30 | 36 | :placeholder="apiParams.name.description"/> |
31 | 37 | </a-form-item> |
32 | | - <a-form-item :label="$t('label.description')"> |
| 38 | + <a-form-item> |
| 39 | + <span slot="label"> |
| 40 | + {{ $t('label.description') }} |
| 41 | + <a-tooltip :title="apiParams.description.description"> |
| 42 | + <a-icon type="info-circle" style="color: rgba(0,0,0,.45)" /> |
| 43 | + </a-tooltip> |
| 44 | + </span> |
33 | 45 | <a-input |
34 | 46 | v-decorator="['description', { |
35 | 47 | rules: [{ required: true, message: 'Please enter Kubernetes cluster description' }] |
36 | 48 | }]" |
37 | 49 | :placeholder="apiParams.description.description"/> |
38 | 50 | </a-form-item> |
39 | | - <a-form-item :label="$t('label.zoneid')"> |
| 51 | + <a-form-item> |
| 52 | + <span slot="label"> |
| 53 | + {{ $t('label.zoneid') }} |
| 54 | + <a-tooltip :title="apiParams.zoneid.description"> |
| 55 | + <a-icon type="info-circle" style="color: rgba(0,0,0,.45)" /> |
| 56 | + </a-tooltip> |
| 57 | + </span> |
40 | 58 | <a-select |
41 | 59 | id="zone-selection" |
42 | 60 | v-decorator="['zoneid', { |
|
55 | 73 | </a-select-option> |
56 | 74 | </a-select> |
57 | 75 | </a-form-item> |
58 | | - <a-form-item :label="$t('label.kubernetesversionid')"> |
| 76 | + <a-form-item> |
| 77 | + <span slot="label"> |
| 78 | + {{ $t('label.kubernetesversionid') }} |
| 79 | + <a-tooltip :title="apiParams.kubernetesversionid.description"> |
| 80 | + <a-icon type="info-circle" style="color: rgba(0,0,0,.45)" /> |
| 81 | + </a-tooltip> |
| 82 | + </span> |
59 | 83 | <a-select |
60 | 84 | id="version-selection" |
61 | 85 | v-decorator="['kubernetesversionid', { |
|
74 | 98 | </a-select-option> |
75 | 99 | </a-select> |
76 | 100 | </a-form-item> |
77 | | - <a-form-item :label="$t('label.serviceofferingid')"> |
| 101 | + <a-form-item> |
| 102 | + <span slot="label"> |
| 103 | + {{ $t('label.serviceofferingid') }} |
| 104 | + <a-tooltip :title="apiParams.serviceofferingid.description"> |
| 105 | + <a-icon type="info-circle" style="color: rgba(0,0,0,.45)" /> |
| 106 | + </a-tooltip> |
| 107 | + </span> |
78 | 108 | <a-select |
79 | 109 | id="offering-selection" |
80 | 110 | v-decorator="['serviceofferingid', { |
|
92 | 122 | </a-select-option> |
93 | 123 | </a-select> |
94 | 124 | </a-form-item> |
95 | | - <a-form-item :label="$t('label.noderootdisksize')"> |
| 125 | + <a-form-item> |
| 126 | + <span slot="label"> |
| 127 | + {{ $t('label.noderootdisksize') }} |
| 128 | + <a-tooltip :title="apiParams.noderootdisksize.description"> |
| 129 | + <a-icon type="info-circle" style="color: rgba(0,0,0,.45)" /> |
| 130 | + </a-tooltip> |
| 131 | + </span> |
96 | 132 | <a-input |
97 | 133 | v-decorator="['noderootdisksize', { |
98 | 134 | rules: [{ |
|
106 | 142 | }]" |
107 | 143 | :placeholder="apiParams.noderootdisksize.description"/> |
108 | 144 | </a-form-item> |
109 | | - <a-form-item :label="$t('label.networkid')"> |
| 145 | + <a-form-item> |
| 146 | + <span slot="label"> |
| 147 | + {{ $t('label.networkid') }} |
| 148 | + <a-tooltip :title="apiParams.networkid.description"> |
| 149 | + <a-icon type="info-circle" style="color: rgba(0,0,0,.45)" /> |
| 150 | + </a-tooltip> |
| 151 | + </span> |
110 | 152 | <a-select |
111 | 153 | id="network-selection" |
112 | 154 | v-decorator="['networkid', {}]" |
|
125 | 167 | <a-form-item :label="$t('label.haenable')" v-if="this.selectedKubernetesVersion != null && this.selectedKubernetesVersion != undefined && this.selectedKubernetesVersion.supportsha === true"> |
126 | 168 | <a-switch v-decorator="['haenable', {initialValue: this.haEnabled}]" :checked="this.haEnabled" @change="val => { this.haEnabled = val }" /> |
127 | 169 | </a-form-item> |
128 | | - <a-form-item :label="$t('label.masternodes')" v-if="this.haEnabled"> |
| 170 | + <a-form-item v-if="this.haEnabled"> |
| 171 | + <span slot="label"> |
| 172 | + {{ $t('label.masternodes') }} |
| 173 | + <a-tooltip :title="apiParams.masternodes.description"> |
| 174 | + <a-icon type="info-circle" style="color: rgba(0,0,0,.45)" /> |
| 175 | + </a-tooltip> |
| 176 | + </span> |
129 | 177 | <a-input |
130 | 178 | v-decorator="['masternodes', { |
131 | 179 | initialValue: '1', |
|
142 | 190 | }]" |
143 | 191 | :placeholder="apiParams.masternodes.description"/> |
144 | 192 | </a-form-item> |
145 | | - <a-form-item :label="$t('label.externalloadbalanceripaddress')" v-if="this.haEnabled"> |
| 193 | + <a-form-item v-if="this.haEnabled"> |
| 194 | + <span slot="label"> |
| 195 | + {{ $t('label.externalloadbalanceripaddress') }} |
| 196 | + <a-tooltip :title="apiParams.externalloadbalanceripaddress.description"> |
| 197 | + <a-icon type="info-circle" style="color: rgba(0,0,0,.45)" /> |
| 198 | + </a-tooltip> |
| 199 | + </span> |
146 | 200 | <a-input |
147 | 201 | v-decorator="['externalloadbalanceripaddress', {}]" |
148 | 202 | :placeholder="apiParams.externalloadbalanceripaddress.description"/> |
149 | 203 | </a-form-item> |
150 | | - <a-form-item :label="$t('label.cks.cluster.size')"> |
| 204 | + <a-form-item> |
| 205 | + <span slot="label"> |
| 206 | + {{ $t('label.cks.cluster.size') }} |
| 207 | + <a-tooltip :title="apiParams.size.description"> |
| 208 | + <a-icon type="info-circle" style="color: rgba(0,0,0,.45)" /> |
| 209 | + </a-tooltip> |
| 210 | + </span> |
151 | 211 | <a-input |
152 | 212 | v-decorator="['size', { |
153 | 213 | initialValue: '1', |
|
164 | 224 | }]" |
165 | 225 | :placeholder="apiParams.size.description"/> |
166 | 226 | </a-form-item> |
167 | | - <a-form-item :label="$t('label.keypair')"> |
| 227 | + <a-form-item> |
| 228 | + <span slot="label"> |
| 229 | + {{ $t('label.keypair') }} |
| 230 | + <a-tooltip :title="apiParams.keypair.description"> |
| 231 | + <a-icon type="info-circle" style="color: rgba(0,0,0,.45)" /> |
| 232 | + </a-tooltip> |
| 233 | + </span> |
168 | 234 | <a-select |
169 | 235 | id="keypair-selection" |
170 | 236 | v-decorator="['keypair', {}]" |
|
0 commit comments