3x-ui/web/html/xui/form/protocol/http.html

19 lines
845 B
HTML
Raw Normal View History

2023-02-09 22:18:06 +03:00
{{define "form/http"}}
<a-form layout="inline">
<a-form-item>
<a-row>
<a-button type="primary" size="small" @click="inbound.settings.addAccount(new Inbound.SocksSettings.SocksAccount())">+</a-button>
</a-row>
<a-input-group v-for="(account, index) in inbound.settings.accounts">
<a-input style="width: 45%" v-model.trim="account.user"
addon-before='{{ i18n "username" }}'></a-input>
<a-input style="width: 55%" v-model.trim="account.pass"
addon-before='{{ i18n "password" }}'>
<template slot="addonAfter">
<a-button type="primary" size="small" @click="inbound.settings.delAccount(index)">-</a-button>
</template>
</a-input>
</a-input-group>
2023-02-09 22:18:06 +03:00
</a-form-item>
</a-form>
{{end}}