span(class="wrapper")
v-dialog(v-model="loading" persistent)
v-card(id="edit-loading")
v-card-title(primary-title) Updating
v-card-text
v-subheader.error--text(
v-if='error'
id="edit-error"
) {{error}}
v-subheader.success--text(
v-if='success'
id="edit-success"
) {{success}}
v-progress-linear(v-if='!error && !success' indeterminate)
v-card-actions
v-spacer
v-btn(v-if="error" @click='cancel' flat id="edit-close") close
v-btn(v-if="success" @click='close' flat id="edit-close") close
v-dialog(v-model='dialog' max-width="80%")
v-btn(v-if="!label" slot="activator" block icon="icon" @click="refresh")
v-icon edit
v-btn(v-if="label" slot="activator" @click="refresh") {{label}}
v-card(id="edit-form")
v-card-title(primary-title)
.headline Update: {{data.qid}}
v-card-text
v-form
schema-input(
v-if="dialog"
v-model="tmp"
:valid.sync="valid"
:schema="schema"
:pick="required"
path="edit"
)
v-expansion-panel.elevation-0
v-expansion-panel-content( style="display:block")
div( slot="header") Advanced
schema-input(
v-model="tmp"
:valid.sync="valid"
:schema="schema"
:omit="required"
path="add"
)
small *indicates required field
v-subheader.error--text(v-if='error') {{error}}
v-card-actions
v-spacer
v-btn(@click='cancel' id="edit-cancel") Cancel
v-btn(@click='update' :disabled="!valid" id="edit-submit") Update