<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>
