modal(:show='show', @close='close')
.modal-header
h3(v-if="id > 0") Edit Client
h3(v-else) New Client
.modal-body.aligned-form
.alert.alert-danger(v-if='error') {{ error }}
.form-group
label(for="title") Title
input.form-control(type="text" id="title" name="title" v-model="title")
.form-group
label(for="description") Description
input.form-control(type="text" id="description" name="description" v-model="description")
.form-group
label(for="url") URL
input.form-control(type="text" id="url" name="url" v-model="url")
.form-group
label(for="scope") Scope
input.form-control(type="text" id="scope" name="scope" v-model="scope")
.form-group
label(for="redirect_url") Redirect
input.form-control(type="text" id="redirect_url" name="redirect_url" v-model="redirect_url")
.form-check
input.form-check-input(type="checkbox" id="verified" name="verified" v-model="verified")
label.form-check-label(for="verified") Verified
.modal-footer.text-right
button.btn.btn-primary(@click='submit') Done
button.btn.btn-danger(@click='newSecret' v-if="id > 0") New Secret
button.btn.btn-secondary(@click='close') Cancel