{% extends "layouts/default.html" %}
{% block title %}New Inventory Item{% endblock %}
{% block content %}
<form name="new-form" action="/inventory/new" method="POST">
  {{ token | safe }}
</form>

<div class="content" id="results">
  <div class="buttons">
    <button class="button is-primary"
            form="new-form"
            type="submit">Create</button>
    <a class="button is-danger"
       form="new-form"
       href="/inventory">
      Return
    </a>
  </div>

  <table class="table w3-card-4">
    <thead>
      <tr>
        <th>Field</th>
        <th>Value</th>
    </thead>
    <tbody>
      <tr>
        <th>Card Image</th>
        <td>
          card image
        </td>
      </tr>
      {% include "inventory/_edit_row.html" :form "edit-form" :name "name" :title "Product Name" %}
      {% include "inventory/_edit_row.html" :form "edit-form" :name "category" :title "Category" %}
      {% include "inventory/_edit_row.html" :form "edit-form" :name "name" :title "Name" %}
      {% include "inventory/_edit_row.html" :form "edit-form" :name "code" :title "Code" %}
      {% include "inventory/_edit_row.html" :form "edit-form" :name "edition" :title "Edition" %}
      {% include "inventory/_edit_row.html" :form "edit-form" :name "passcode" :title "Passcode" %}
      {% include "inventory/_edit_row.html" :form "edit-form" :name "buy-price" :title "Buy Price" %}
      {% include "inventory/_edit_row.html" :form "edit-form" :name "sell-price" :title "Sell Price" %}
      {% include "inventory/_edit_row.html" :form "edit-form" :name "total-qty" :title "Total Qty" %}
      {% include "inventory/_edit_row.html" :form "edit-form" :name "uri" :title "URI" %}
      {% include "inventory/_edit_row.html" :form "edit-form" :name "description" :title "Description" %}
    </tbody>
  </table>
</form>
</div>
{% endblock %}
