diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-12-13 18:57:36 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-12-13 19:03:11 +0300 |
| commit | 8d18c8e98f1b6531d1997feb6933419d71401968 (patch) | |
| tree | 1283d10c68f3a9b9b2cbeeec95fb34a84e9689e3 /web/html/xui/form/protocol/vmess.html | |
| parent | 82e2241bdd9552f57d24c8de4fce6c5320efba4c (diff) | |
[gui] redesign forms
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html/xui/form/protocol/vmess.html')
| -rw-r--r-- | web/html/xui/form/protocol/vmess.html | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/web/html/xui/form/protocol/vmess.html b/web/html/xui/form/protocol/vmess.html index 6d89c1b5..4e9fe749 100644 --- a/web/html/xui/form/protocol/vmess.html +++ b/web/html/xui/form/protocol/vmess.html @@ -1,23 +1,21 @@ {{define "form/vmess"}} -<a-form layout="inline" style="padding: 10px 0px;"> - <a-collapse activeKey="0" v-for="(client, index) in inbound.settings.vmesses.slice(0,1)" v-if="!isEdit"> - <a-collapse-panel header='{{ i18n "pages.inbounds.client" }}'> - {{template "form/client"}} - </a-collapse-panel> - </a-collapse> - <a-collapse v-else> - <a-collapse-panel :header="'{{ i18n "pages.client.clientCount" }}: ' + inbound.settings.vmesses.length"> - <table width="100%"> - <tr class="client-table-header"> - <th>{{ i18n "pages.inbounds.email" }}</th> - <th>ID</th> - </tr> - <tr v-for="(client, index) in inbound.settings.vmesses" :class="index % 2 == 1 ? 'client-table-odd-row' : ''"> - <td>[[ client.email ]]</td> - <td>[[ client.id ]]</td> - </tr> - </table> - </a-collapse-panel> - </a-collapse> -</a-form> +<a-collapse activeKey="0" v-for="(client, index) in inbound.settings.vmesses.slice(0,1)" v-if="!isEdit"> + <a-collapse-panel header='{{ i18n "pages.inbounds.client" }}'> + {{template "form/client"}} + </a-collapse-panel> +</a-collapse> +<a-collapse v-else> + <a-collapse-panel :header="'{{ i18n "pages.client.clientCount"}} : ' + inbound.settings.vmesses.length"> + <table width="100%"> + <tr class="client-table-header"> + <th>{{ i18n "pages.inbounds.email" }}</th> + <th>ID</th> + </tr> + <tr v-for="(client, index) in inbound.settings.vmesses" :class="index % 2 == 1 ? 'client-table-odd-row' : ''"> + <td>[[ client.email ]]</td> + <td>[[ client.id ]]</td> + </tr> + </table> + </a-collapse-panel> +</a-collapse> {{end}} |
