summaryrefslogtreecommitdiff
path: root/iridescence/src/components/admin/NewProductModal.vue
blob: 8df0faa7ef54cdd1c2611600757eb6e2652ae017 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<template>
  <div class="modal " id="newProductModal">
    <div class="modal-background"></div>
    <div class="modal-card">
      <header class="modal-card-head">
        <p class="modal-card-title"></p>
        <button class="delete" aria-label="close"></button>
      </header>
      <section class="modal-card-body">
        <ProductEditCard v-bind:current-product="product"></ProductEditCard>
      </section>
      <footer class="modal-card-foot">
        <label class="checkbox">
          <input type="checkbox" v-model="addAnother" />
          Add Another?
        </label>
      </footer>
    </div>
  </div>
</template>

<script>
import ProductEditCard from "@/components/admin/ProductEditCard.vue";
export default {
  name: "NewProductModal",
  components: {
    ProductEditCard
  },
  data: function() {
    return {
      product: {
        id: 0,
        name: "",
        quantity: 0,
        cents: 0,
        imgPath: "",
        description: "",
        featured: false,
        categories: []
      },
      addAnother: false
    };
  }
};
</script>