|
271 | 271 | </a-form-item> |
272 | 272 | </div> |
273 | 273 | <div v-if="form.provider === 'ONTAP'"> |
274 | | - <a-form-item name="ontapIP" ref="ontapIP"> |
275 | | - <template #label> |
| 274 | + <div class="form-row"> |
| 275 | + <div class="form-label"> |
276 | 276 | <tooltip-label :title="$t('label.ontap.ip')" :tooltip="$t('label.ontap.ip.tooltip')"/> |
277 | | - </template> |
278 | | - <a-input v-model:value="form.ontapIP" :placeholder="$t('label.ontap.ip.tooltip')"/> |
279 | | - </a-form-item> |
280 | | - <a-form-item name="ontapUsername" ref="ontapUsername"> |
281 | | - <template #label> |
| 277 | + </div> |
| 278 | + <div class="form-input"> |
| 279 | + <a-input v-model:value="form.ontapIP" :placeholder="$t('label.ontap.ip.tooltip')"/> |
| 280 | + </div> |
| 281 | + </div> |
| 282 | + <div class="form-row"> |
| 283 | + <div class="form-label"> |
282 | 284 | <tooltip-label :title="$t('label.username')" :tooltip="$t('label.ontap.username.tooltip')"/> |
283 | | - </template> |
284 | | - <a-input v-model:value="form.ontapUsername" :placeholder="$t('label.ontap.username.tooltip')"/> |
285 | | - </a-form-item> |
286 | | - <a-form-item name="ontapPassword" ref="ontapPassword"> |
287 | | - <template #label> |
| 285 | + </div> |
| 286 | + <div class="form-input"> |
| 287 | + <a-input v-model:value="form.ontapUsername" :placeholder="$t('label.ontap.username.tooltip')"/> |
| 288 | + </div> |
| 289 | + </div> |
| 290 | + <div class="form-row"> |
| 291 | + <div class="form-label"> |
288 | 292 | <tooltip-label :title="$t('label.password')" :tooltip="$t('label.ontap.password')"/> |
289 | | - </template> |
290 | | - <a-input-password v-model:value="form.ontapPassword" :placeholder="$t('label.ontap.password')"/> |
291 | | - </a-form-item> |
292 | | - <a-form-item name="ontapSvmName" ref="ontapSvmName"> |
293 | | - <template #label> |
| 293 | + </div> |
| 294 | + <div class="form-input"> |
| 295 | + <a-input-password v-model:value="form.ontapPassword" :placeholder="$t('label.ontap.password')"/> |
| 296 | + </div> |
| 297 | + </div> |
| 298 | + <div class="form-row"> |
| 299 | + <div class="form-label"> |
294 | 300 | <tooltip-label :title="$t('label.ontap.svm.name')" :tooltip="$t('label.ontap.svm.name')"/> |
295 | | - </template> |
296 | | - <a-input v-model:value="form.ontapSvmName" :placeholder="$t('label.ontap.svm.name')"/> |
297 | | - </a-form-item> |
298 | | - <a-form-item name="capacityBytes" ref="capacityBytes"> |
299 | | - <template #label> |
| 301 | + </div> |
| 302 | + <div class="form-input"> |
| 303 | + <a-input v-model:value="form.ontapSvmName" :placeholder="$t('label.ontap.svm.name')"/> |
| 304 | + </div> |
| 305 | + </div> |
| 306 | + <div class="form-row"> |
| 307 | + <div class="form-label"> |
300 | 308 | <tooltip-label :title="$t('label.capacitybytes')" :tooltip="apiParams.capacitybytes.description"/> |
301 | | - </template> |
302 | | - <a-input v-model:value="form.capacityBytes" :placeholder="apiParams.capacitybytes.description" /> |
303 | | - </a-form-item> |
| 309 | + </div> |
| 310 | + <div class="form-input"> |
| 311 | + <a-input v-model:value="form.capacityBytes" :placeholder="apiParams.capacitybytes.description" /> |
| 312 | + </div> |
| 313 | + </div> |
304 | 314 | </div> |
305 | 315 | <div v-if="form.provider === 'PowerFlex'"> |
306 | 316 | <a-form-item name="powerflexGateway" ref="powerflexGateway"> |
@@ -932,7 +942,7 @@ export default { |
932 | 942 | params['details[0].api_password'] = values.flashArrayPassword |
933 | 943 | url = values.flashArrayURL |
934 | 944 | } else if (values.provider === 'ONTAP') { |
935 | | - params['details[0].ontap_IP'] = values.ontapIP |
| 945 | + params['details[0].ontap_ip'] = values.ontapIP |
936 | 946 | params['details[0].ontap_username'] = values.ontapUsername |
937 | 947 | params['details[0].ontap_password'] = values.ontapPassword |
938 | 948 | params['details[0].ontap_svmName'] = values.ontapSvmName |
@@ -1002,5 +1012,21 @@ export default { |
1002 | 1012 | @media (min-width: 1000px) { |
1003 | 1013 | width: 500px; |
1004 | 1014 | } |
| 1015 | + .form-row { |
| 1016 | + display: flex; |
| 1017 | + justify-content: space-between; |
| 1018 | + align-items: center; |
| 1019 | + margin-bottom: 16px; |
| 1020 | + } |
| 1021 | +
|
| 1022 | + .form-label { |
| 1023 | + flex: 1; |
| 1024 | + margin-right: 16px; |
| 1025 | + } |
| 1026 | +
|
| 1027 | + .form-input { |
| 1028 | + flex: 2; |
| 1029 | + } |
| 1030 | +
|
1005 | 1031 | } |
1006 | 1032 | </style> |
0 commit comments