{% extends 'adminapp/master.html' %}
{% load static %}
{% block content %}


    <div class="pagetitle">
      <h1>LIST </h1>
      <nav>
      </nav>
    </div><!-- End Page Title -->

    <section class="section">
      <div class="container-fluid w-100">
        <div class="card">
          <div class="card-body">
            <h5 class="card-title"></h5>

            <!-- Default Table -->
            <table class="table">
              <thead>
                <tr>
                  <th scope="col">#</th>
                  <th scope="col">Name</th>
                  <!-- <th scope="col">Email</th>
                  <th scope="col">Address</th>
                  <th scope="col">Phone</th> -->
                  <th scope="col">Action</th>
                </tr>
              </thead>
              <tbody>
                  {% for i in element %}
                <tr>
                  <td>{{forloop.counter}}</td>
                  <td>{{i.name}}</td>
                  <!-- <td>{{i.email}}</td>
                  <td>{{i.address}}</td>
                  <td>{{i.phone}}</td> -->
                  <td>
                    <a href="{% url 'category_delete' i.id %}"><button class="btn btn-danger">Delete</button></a>
                    <a href="{% url 'category_update' i.id %}"><button class="btn btn-primary">Update</button></a>
                  </td>
                </tr>
                {% endfor %}
              </tbody>
            </table>
            <!-- End Default Table Example -->
          </div>
        </div>

      </div>

    </section>




{% endblock %}