http.html 1.1 KB

123456789101112131415161718192021
  1. {{define "form/http"}}
  2. <a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }">
  3. <table style="width: 100%; text-align: center; margin-bottom: 10px;">
  4. <tr>
  5. <td width="45%">{{ i18n "username" }}</td>
  6. <td width="45%">{{ i18n "password" }}</td>
  7. <td><a-button size="small" @click="inbound.settings.addAccount(new Inbound.HttpSettings.HttpAccount())">+</a-button></td>
  8. </tr>
  9. </table>
  10. <a-input-group compact v-for="(account, index) in inbound.settings.accounts" style="margin-bottom: 10px;">
  11. <a-input style="width: 50%" v-model.trim="account.user" placeholder='{{ i18n "username" }}'>
  12. <template slot="addonBefore" style="margin: 0;">[[ index+1 ]]</template>
  13. </a-input>
  14. <a-input style="width: 50%" v-model.trim="account.pass" placeholder='{{ i18n "password" }}'>
  15. <template slot="addonAfter">
  16. <a-button size="small" @click="inbound.settings.delAccount(index)">-</a-button>
  17. </template>
  18. </a-input>
  19. </a-input-group>
  20. </a-form>
  21. {{end}}