{% extends 'custom_admin_base.html' %}
{% block content %}
    {% include 'custom_admin_user_sub.html' %}
    <div class="change_list">
        <form action="{% url 'kindergarten:custom_admin_search_list' %}" method="get" class="search-form">
            <input type="text" name="search_word" placeholder="이름으로검색"><input type="submit" value="검색">
        </form>
        <table cellpadding="0" cellspacing="0">
            <colgroup>
                <col width="5%" />
                <col width="10%" />
                <col width="17%" />
                <col width="43%" />
                <col width="15%" />
                <col width="5%" />
                <col width="5%" />
            </colgroup>
            <thead>
                <tr>
                    <th>No.</th>
                    <th>상권</th>
                    <th>이름</th>
                    <th>주소</th>
                    <th>전화번호</th>
                    <th></th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
            {% for object in object_list %}
                <tr>
                    <td>{{ object.pk }}</td>
                    <td>{{ object.area }}</td>
                    <td>{{ object.name }}</td>
                    <td>{{ object.address }}</td>
                    <td>{{ object.tel }}</td>
                    <td><a href="{% url 'kindergarten:custom_admin_update' object.id %}">수정</a></td>
                    <td><a href="{% url 'kindergarten:custom_admin_delete' object.id %}">삭제</a></td>
                </tr>
            {% endfor %}
            </tbody>
        </table>
        <div class="button-block">
            <a href="{% url 'kindergarten:custom_admin_create' %}" class="admin-add-button">신규등록</a>
            <a href="{% url 'kindergarten:custom_admin_change_list' %}" class="admin-add-button">전체목록</a>
        </div>
        {% include 'pagination/pagination.html' %}
    </div>
{% endblock content %}