diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-12-09 18:18:06 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-12-09 18:18:06 +0300 |
| commit | 0f1f3d843907ee35b19bd5f0aadc37958cee09e1 (patch) | |
| tree | aef111aecb13794a4e50debf042191a4f5dacb9b /web/html/xui/form/inbound.html | |
| parent | 2088a4f815a6ddbb1d8a991614640797fa6ed598 (diff) | |
<tr> <td> instead of <a-form-item>
convert the form structure to use <tr> and <td> instead of <a-form-item>,
Diffstat (limited to 'web/html/xui/form/inbound.html')
| -rw-r--r-- | web/html/xui/form/inbound.html | 133 |
1 files changed, 82 insertions, 51 deletions
diff --git a/web/html/xui/form/inbound.html b/web/html/xui/form/inbound.html index b46ce951..5514472b 100644 --- a/web/html/xui/form/inbound.html +++ b/web/html/xui/form/inbound.html @@ -1,63 +1,94 @@ {{define "form/inbound"}} <!-- base --> <a-form layout="inline"> - <a-form-item label='{{ i18n "enable" }}'> - <a-switch v-model="dbInbound.enable"></a-switch> - </a-form-item> - <br> - <a-form-item label='{{ i18n "remark" }}'> - <a-input v-model.trim="dbInbound.remark"></a-input> - </a-form-item> - <a-form-item label='{{ i18n "protocol" }}'> - <a-select v-model="inbound.protocol" style="width: 160px;" :disabled="isEdit" :dropdown-class-name="themeSwitcher.currentTheme"> - <a-select-option v-for="p in Protocols" :key="p" :value="p">[[ p ]]</a-select-option> - </a-select> - </a-form-item> - <a-form-item> - <span slot="label"> - {{ i18n "monitor" }} - <a-tooltip> + <table width="100%" class="ant-table-tbody"> + <tr> + <td>{{ i18n "enable" }}</td> + <td> + <a-form-item> + <a-switch v-model="dbInbound.enable"></a-switch> + </a-form-item> + </td> + </tr> + <tr> + <td>{{ i18n "remark" }}</td> + <td> + <a-form-item> + <a-input v-model.trim="dbInbound.remark" style="width: 250px;"></a-input> + </a-form-item> + </td> + </tr> + <tr> + <td>{{ i18n "protocol" }}</td> + <td> + <a-form-item> + <a-select v-model="inbound.protocol" style="width: 250px;" :disabled="isEdit" :dropdown-class-name="themeSwitcher.currentTheme"> + <a-select-option v-for="p in Protocols" :key="p" :value="p">[[ p ]]</a-select-option> + </a-select> + </a-form-item> + </td> + </tr> + <tr> + <td>{{ i18n "monitor" }} + <a-tooltip> <template slot="title"> <span>{{ i18n "pages.inbounds.monitorDesc" }}</span> </template> <a-icon type="question-circle" theme="filled"></a-icon> - </a-tooltip> - </span> - <a-input v-model.trim="inbound.listen"></a-input> - </a-form-item> - <br> - <a-form-item label='{{ i18n "pages.inbounds.port" }}'> - <a-input-number v-model="inbound.port"></a-input-number> - </a-form-item> - <br> - <a-form-item> - <span slot="label"> - <span>{{ i18n "pages.inbounds.totalFlow" }}</span> (GB) - <a-tooltip> - <template slot="title"> - 0 <span>{{ i18n "pages.inbounds.meansNoLimit" }}</span> - </template> - <a-icon type="question-circle" theme="filled"></a-icon> - </a-tooltip> - </span> - <a-input-number v-model="dbInbound.totalGB" :min="0"></a-input-number> - </a-form-item> - <a-form-item> - <span slot="label"> - <span>{{ i18n "pages.inbounds.expireDate" }}</span> - <a-tooltip> - <template slot="title"> - <span>{{ i18n "pages.inbounds.leaveBlankToNeverExpire" }}</span> - </template> - <a-icon type="question-circle" theme="filled"></a-icon> - </a-tooltip> - </span> - <a-date-picker :show-time="{ format: 'HH:mm:ss' }" format="YYYY-MM-DD HH:mm:ss" - :dropdown-class-name="themeSwitcher.currentTheme" - v-model="dbInbound._expiryTime" style="width: 250px;"></a-date-picker> - </a-form-item> + </a-tooltip> + </td> + <td> + <a-form-item> + <a-input v-model.trim="inbound.listen" style="width: 250px;"></a-input> + </a-form-item> + </td> + </tr> + <tr> + <td>{{ i18n "pages.inbounds.port" }}</td> + <td> + <a-form-item> + <a-input-number v-model.number="inbound.port"></a-input-number> + </a-form-item> + </td> + </tr> + <tr> + <td> + <span>{{ i18n "pages.inbounds.totalFlow" }}</span>(GB) + <a-tooltip> + <template slot="title"> + 0 <span>{{ i18n "pages.inbounds.meansNoLimit" }}</span> + </template> + <a-icon type="question-circle" theme="filled"></a-icon> + </a-tooltip> + </td> + <td> + <a-form-item> + <a-input-number v-model="dbInbound.totalGB" :min="0"></a-input-number> + </a-form-item> + </td> + </tr> + <tr> + <td> + <span>{{ i18n "pages.inbounds.expireDate" }}</span> + <a-tooltip> + <template slot="title"> + <span>{{ i18n "pages.inbounds.leaveBlankToNeverExpire" }}</span> + </template> + <a-icon type="question-circle" theme="filled"></a-icon> + </a-tooltip> + </td> + <td> + <a-form-item> + <a-date-picker :show-time="{ format: 'HH:mm:ss' }" format="YYYY-MM-DD HH:mm:ss" + :dropdown-class-name="themeSwitcher.currentTheme" + v-model="dbInbound._expiryTime" style="width: 250px;"></a-date-picker> + </a-form-item> + </td> + </tr> + </table> </a-form> + <!-- vmess settings --> <template v-if="inbound.protocol === Protocols.VMESS"> {{template "form/vmess"}} |
