<template>
  <div>
    <page-title
      :heading="heading" 
      :icon="icon"
      :add="true"
    ></page-title>
    <breadcrumb  
      :menu_item_list="menu_item_list"
    ></breadcrumb>
    <contract-template-form
      :mode="'edit'"
    ></contract-template-form>
  </div>
</template>
<script>
  import PageTitle from "../../components/titles/PageTitle";
  import Breadcrumb from "../../layouts/parts/Breadcrumb";
  import ContractTemplateForm from "./Form";

  export default {
    metaInfo() {
        let vm = this;
        return {
            title: Constants.site.title,
            titleTemplate: '%s | ' + vm.$router.currentRoute.name
        }
    },
    components: {
      PageTitle,
      Breadcrumb,
      ContractTemplateForm
    },
    data() {
      let vm = this;
      return {
        heading: 'Edit Contract Template',
        icon: 'fa fa-edit',
        menu_item_list: [
          {
            title: 'Dashboard',
            active: false,
            path: '/'
          },
          {
            title: 'Contract Template List',
            active: false,
            path: '/contract-template/list'
          },
          {
            title: 'Edit Contract Template',
            active: true,
            path: '/contract-template/edit/' + vm.$route.params.hash_id
          },
        ]
      }
    }
  }
</script>
