http.html 845 B

12345678910111213141516171819
  1. {{define "form/http"}}
  2. <a-form layout="inline">
  3. <a-form-item>
  4. <a-row>
  5. <a-button type="primary" size="small" @click="inbound.settings.addAccount(new Inbound.SocksSettings.SocksAccount())">+</a-button>
  6. </a-row>
  7. <a-input-group v-for="(account, index) in inbound.settings.accounts">
  8. <a-input style="width: 45%" v-model.trim="account.user"
  9. addon-before='{{ i18n "username" }}'></a-input>
  10. <a-input style="width: 55%" v-model.trim="account.pass"
  11. addon-before='{{ i18n "password" }}'>
  12. <template slot="addonAfter">
  13. <a-button type="primary" size="small" @click="inbound.settings.delAccount(index)">-</a-button>
  14. </template>
  15. </a-input>
  16. </a-input-group>
  17. </a-form-item>
  18. </a-form>
  19. {{end}}