http.html 1.0 KB

1234567891011121314151617181920212223
  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: 1rem 0;">
  4. <tr>
  5. <td width="45%">{{ i18n "username" }}</td>
  6. <td width="45%">{{ i18n "password" }}</td>
  7. <td>
  8. <a-button icon="plus" size="small" @click="inbound.settings.addAccount(new Inbound.HttpSettings.HttpAccount())"></a-button>
  9. </td>
  10. </tr>
  11. </table>
  12. <a-input-group compact v-for="(account, index) in inbound.settings.accounts" style="margin-bottom: 10px;">
  13. <a-input style="width: 50%" v-model.trim="account.user" placeholder='{{ i18n "username" }}'>
  14. <template slot="addonBefore" style="margin: 0;">[[ index+1 ]]</template>
  15. </a-input>
  16. <a-input style="width: 50%" v-model.trim="account.pass" placeholder='{{ i18n "password" }}'>
  17. <template slot="addonAfter">
  18. <a-button icon="minus" size="small" @click="inbound.settings.delAccount(index)"></a-button>
  19. </template>
  20. </a-input>
  21. </a-input-group>
  22. </a-form>
  23. {{end}}