Skip to content

Commit 6f52e12

Browse files
committed
Fix VpcTiersTab
1 parent a140210 commit 6f52e12

File tree

1 file changed

+49
-11
lines changed

1 file changed

+49
-11
lines changed

ui/src/views/network/VpcTiersTab.vue

Lines changed: 49 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
icon="plus"
2323
style="width: 100%;margin-bottom: 20px;"
2424
:disabled="!('createNetwork' in $store.getters.apis)"
25-
@click="handleOpenModal">{{ $t('label.add.network') }}</a-button>
25+
@click="handleOpenModal">{{ $t('label.add.new.tier') }}</a-button>
2626
<a-list class="list">
2727
<a-list-item v-for="(network, idx) in networks" :key="idx" class="list__item">
2828
<div class="list__item-outer-container">
@@ -164,13 +164,25 @@
164164
v-ctrl-enter="handleAddNetworkSubmit">
165165
<a-spin :spinning="modalLoading">
166166
<a-form @submit.prevent="handleAddNetworkSubmit" :form="form">
167-
<a-form-item :label="$t('label.name')">
167+
<a-form-item>
168+
<span slot="label">
169+
{{ $t('label.name') }}
170+
<a-tooltip placement="right" :title="$t('label.create.tier.name.description')">
171+
<a-icon type="info-circle" style="color: rgba(0,0,0,.45)" />
172+
</a-tooltip>
173+
</span>
168174
<a-input
169-
:placeholder="$t('label.unique.name.tier')"
175+
:placeholder="$t('label.create.tier.name.description')"
170176
v-decorator="['name',{rules: [{ required: true, message: `${$t('label.required')}` }]}]"
171-
autoFocus></a-input>
177+
autoFocus />
172178
</a-form-item>
173-
<a-form-item :label="$t('label.networkofferingid')">
179+
<a-form-item>
180+
<span slot="label">
181+
{{ $t('label.networkofferingid') }}
182+
<a-tooltip placement="right" :title="$t('label.create.tier.networkofferingid.description')">
183+
<a-icon type="info-circle" style="color: rgba(0,0,0,.45)" />
184+
</a-tooltip>
185+
</span>
174186
<a-select
175187
v-decorator="['networkOffering',{rules: [{ required: true, message: `${$t('label.required')}` }]}]"
176188
@change="val => { this.handleNetworkOfferingChange(val) }">
@@ -187,22 +199,48 @@
187199
}]"
188200
:placeholder="this.$t('label.vlan')"/>
189201
</a-form-item>
190-
<a-form-item :label="$t('label.gateway')">
202+
<a-form-item>
203+
<span slot="label">
204+
{{ $t('label.gateway') }}
205+
<a-tooltip placement="right" :title="$t('label.create.tier.gateway.description')">
206+
<a-icon type="info-circle" style="color: rgba(0,0,0,.45)" />
207+
</a-tooltip>
208+
</span>
191209
<a-input
192-
:placeholder="$t('label.create.network.gateway.description')"
210+
:placeholder="$t('label.create.tier.gateway.description')"
193211
v-decorator="['gateway',{rules: [{ required: true, message: `${$t('label.required')}` }]}]"></a-input>
194212
</a-form-item>
195-
<a-form-item :label="$t('label.netmask')">
213+
<a-form-item>
214+
<span slot="label">
215+
{{ $t('label.netmask') }}
216+
<a-tooltip placement="right" :title="$t('label.create.tier.netmask.description')">
217+
<a-icon type="info-circle" style="color: rgba(0,0,0,.45)" />
218+
</a-tooltip>
219+
</span>
196220
<a-input
197-
:placeholder="$t('label.create.network.netmask.description')"
221+
:placeholder="$t('label.create.tier.netmask.description')"
198222
v-decorator="['netmask',{rules: [{ required: true, message: `${$t('label.required')}` }]}]"></a-input>
199223
</a-form-item>
200-
<a-form-item :label="$t('label.externalid')">
224+
<a-form-item>
225+
<span slot="label">
226+
{{ $t('label.externalid') }}
227+
<a-tooltip placement="right" :title="$t('label.create.tier.externalid.description')">
228+
<a-icon type="info-circle" style="color: rgba(0,0,0,.45)" />
229+
</a-tooltip>
230+
</span>
201231
<a-input
232+
:placeholder=" $t('label.create.tier.externalid.description')"
202233
v-decorator="['externalId']"></a-input>
203234
</a-form-item>
204-
<a-form-item :label="$t('label.aclid')">
235+
<a-form-item>
236+
<span slot="label">
237+
{{ $t('label.aclid') }}
238+
<a-tooltip placement="right" :title="$t('label.create.tier.aclid.description')">
239+
<a-icon type="info-circle" style="color: rgba(0,0,0,.45)" />
240+
</a-tooltip>
241+
</span>
205242
<a-select
243+
:placeholder="$t('label.create.tier.aclid.description')"
206244
v-decorator="['acl',{rules: [{ required: true, message: `${$t('label.required')}` }]}]"
207245
@change="val => { this.handleNetworkAclChange(val) }">
208246
<a-select-option v-for="item in networkAclList" :key="item.id" :value="item.id">

0 commit comments

Comments
 (0)