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

{% block title %}
    FloorPrivilege
{% endblock %}
{% block tail %}
    <script src="{{ url_for('static',filename='wgcomm/js/delete-check.js') }}"></script>
    <script src="static/wgcomm/js/table-extern-elevator-prilist.js"></script>
{% endblock %}
{% block tail_min %}
    <script src="{{ url_for('static',filename='wgcomm/js/delete-check.min.js') }}"></script>
    <script src="static/wgcomm/js/table-extern-elevator-prilist.min.js"></script>
{% endblock %}
{% block main_content %}
    <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">View Floor Privileges</h1>
                    </div>
                    <div class="ms-auto pageheader-btn">
                        <ol class="breadcrumb">
                            <li class="breadcrumb-item">DoorControl</li>
                            <li class="breadcrumb-item"><a href="javascript:void(0);">FloorPrivilege</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">
                        <div class="card">
                            <div class="card-body tasks-table-container">
                                <div class="table-responsive">
                                    <table id="table-prilist"
                                           class="table editable-table table-nowrap table-bordered  wp-100 active-tb">
                                        <thead class="table-head">
                                        <tr>
                                            <th class="bg-transparent border-bottom-0">Floor</th>
                                            <th class="bg-transparent border-bottom-0">User ID</th>
                                            <th class="bg-transparent border-bottom-0">Name</th>
                                            <th class="bg-transparent border-bottom-0">Card NO</th>
                                            <th class="bg-transparent border-bottom-0">Department</th>
                                            {% if g.extfunc5678_timeprofile %}
                                                <th class="bg-transparent border-bottom-0">Time Profile</th>
                                            {% endif %}
                                        </tr>
                                        </thead>
                                        <tbody class="table-body">
                                        {#                                        {% for con in objlist %}#}
                                        {#                                            <tr id="con-{{ con.f_PrivilegeRecID }}">#}
                                        {#                                                <td class="text-muted fs-15 fw-semibold text-start">{{ con.f_DoorName }}.{{ con.f_FloorName }}</td>#}
                                        {#                                                <td class="text-muted fs-15 fw-semibold text-start">{{ con.f_ConsumerNO }}</td>#}
                                        {#                                                <td class="text-muted fs-15 fw-semibold text-start">{{ con.f_ConsumerName }}</td>#}
                                        {#                                                <td class="text-muted fs-15 fw-semibold text-start"#}
                                        {#                                                    id="cardno-{{ con.f_PrivilegeRecID }}">#}
                                        {#                                                    {% if con.f_CardNO==None %}#}
                                        {#                                                    {% else %}#}
                                        {#                                                        {{ con.f_CardNO }}#}
                                        {#                                                    {% endif %}#}
                                        {#                                                </td>#}
                                        {#                                                <td class="text-muted fs-15 fw-semibold text-start">#}
                                        {#                                                    {% if con.f_GroupName %}#}
                                        {#                                                        {{ con.f_GroupName }}#}
                                        {#                                                    {% endif %}#}
                                        {#                                                </td>#}
                                        {#                                                {% if g.extfunc5678_timeprofile %}#}
                                        {#                                                    <td class="text-muted fs-15 fw-semibold text-start">{{ con.f_ControlSegID }}</td>#}
                                        {#                                                {% endif %}#}
                                        {#                                            </tr>#}
                                        {#                                        {% endfor %}#}
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!--ROW CLOSED-->
            </div>
        </div>
    </div>
    <!-- CONTAINER CLOSED -->
{% endblock %}


