{% extends 'wgcomm/base.html' %}

{% block title %}
    Elevator Floor
{% endblock %}
{% block tail %}
    <script src="static/wgcomm/js/table-extern-elevator.js"></script>
{% endblock %}
{% block tail_min %}
    <script src="static/wgcomm/js/table-extern-elevator.min.js"></script>
{% endblock %}
{% block main_content %}
    <!--app-content open-->
    <div class="app-content main-content mt-0">
        <div class="side-app">
            <!-- CONTAINER -->
            <div class="main-container container-fluid">
                <!-- PAGE-HEADER -->
                <div class="page-header">
                    <div>
                        <h1 class="page-title">Elevator Floor</h1>
                    </div>
                    <div class="ms-auto pageheader-btn">
                        <ol class="breadcrumb">
                            <li class="breadcrumb-item">Configuration</li>
                            <li class="breadcrumb-item"><a href="javascript:void(0);">Floor</a></li>
                            <li class="breadcrumb-item active" aria-current="page">List</li>
                        </ol>
                    </div>
                </div>
                <!-- PAGE-HEADER END -->
                {% with messages = get_flashed_messages() %}
                    {% if messages %}
                        <div class="form-group">
                            <ul>
                                {% for message in messages %}
                                    <li class="text-danger">{{ message }}</li>
                                {% endfor %}
                            </ul>
                        </div>
                    {% endif %}
                {% endwith %}
                <!--ROW OPENED-->
                <div class="row">
                    <div class="col-md-12 mb-3">
                        <div class="btn-list">
                            <a href="{{ url_for("wgcomm_extern_elevator.web_extern_elevator_add") }}"
                               class="btn btn-primary">
                                <i class="fe fe-plus-square"></i>Add
                            </a>
                        </div>
                    </div>
                    <p class="card-text text-warning" id="opSelectedResultInfo" hidden>
                    </p>
                    <div class="col-md-12">
                        <div class="card">
                            <div class="card-body tasks-table-container">
                                <div class="table-responsive">
                                    <table id="table-extern-elevator-list"
                                           class="table table-nowrap table-bordered  wp-100 active-tb">
                                        <thead class="table-head">
                                        <tr>
                                            <th class="bg-transparent border-bottom-0 w-5">Door Full Name</th>
                                            <th class="bg-transparent border-bottom-0">Controller Name</th>
                                            <th class="bg-transparent border-bottom-0">Door Relay Number</th>
                                            <th class="bg-transparent border-bottom-0 no-btn">Operation</th>
                                        </tr>
                                        </thead>
                                        <tbody class="table-body">

                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!--ROW CLOSED-->

            </div>
        </div>
    </div>
    <!-- CONTAINER CLOSED -->
{% endblock %}
