diff --git a/dev/app.vue b/dev/app.vue index 5445bbb8..83883086 100644 --- a/dev/app.vue +++ b/dev/app.vue @@ -1,85 +1,154 @@ - .row - .col-md-6 - vue-form-generator(:schema='schema', :model='model', :options='formOptions') - .col-md-6 - pre(v-if='model') {{{ model | prettyJSON }}} + .row + .col-md-10.col-md-offset-1 + data-table(:rows="rows", :selected="selected", :select="selectRow") + + .row(v-if="model") + .col-md-6 + .buttons.text-center + button.btn.btn-default.new(@click="newModel") New + button.btn.btn-primary.save(@click="saveModel") Save + button.btn.btn-danger.delete(@click="deleteModel") Delete + + vue-form-generator(:schema='schema', :model='model', :options='formOptions', :multiple="selected.length > 1", v-ref:form, :is-new-model="isNewModel") + + + .col-md-6 + pre(v-if='model') {{{ model | prettyJSON }}} + + \ No newline at end of file diff --git a/dev/index.html b/dev/index.html index 2c164995..99e99857 100644 --- a/dev/index.html +++ b/dev/index.html @@ -15,7 +15,8 @@
-