<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<div th:replace="header :: header"></div>

<body>

<div id="wrapper">

    <div th:replace="header :: top"></div>

    <form id="filterForm" class="form-horizontal" role="form" th:action="@{company}" method="get">
        <div id="page-wrapper">

            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-lg-12">
                                    <div class="form-group">
                                        <label for="inputPassword3" class="col-sm-2 control-label">企业名称</label>
                                        <div class="col-sm-3">
                                            <input type="text" name="search_LIKE_companyName" class="form-control"
                                                   id="companyName" placeholder="请输入企业名称">
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-offset-3 col-md-9">
                                            <button type="submit" class="btn btn-primary">搜索</button>
                                            <button type="reset" class="btn btn-default">清空</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <!-- /.row (nested) -->
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->

            <!-- /.row -->
            <div class="row">
                <div class="col-lg-12">
                    <div class="table-responsive">
                        <table class="table table-striped table-bordered table-hover">
                            <thead>
                            <tr>
                                <th>#</th>
                                <th>企业名称</th>
                                <th>企业corpID</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>

                            <tr th:each="area,iterStat : ${list}" th:class="${iterStat.odd}? 'active'">
                                <td th:text="${area.id}">ID</td>
                                <td th:text="${area.companyName}"></td>
                                <td th:text="${area.corpid}">corpID</td>
                                <td>
                                    <a href="javascript:;" class="btn btn-outline btn-circle btn-sm purple">
                                        <i class="fa fa-edit">修改</i>
                                    </a>
                                    <a href="javascript:;" class="btn btn-outline btn-circle dark btn-sm black">
                                        <i class="fa fa-trash-o"></i> 删除 </a>
                                </td>
                            </tr>

                            <tr th:remove="all">
                                <td>1</td>
                                <td>house365</td>
                                <td>house365</td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <!-- /.table-responsive -->

                    <div th:if="${list}">
                        <div th:if="${pager.records > 30}">
                            <div th:replace="fragments/pagination :: [id='paginator']" th:remove="tag">
                                Pagination Control
                            </div>
                        </div>
                    </div>

                </div>
            </div>

        </div>
        <!-- /#page-wrapper -->
    </form>
</div>
<!-- /#wrapper -->

<div th:replace="footer :: js"></div>

<script>
    $(document).ready(function () {


    });
</script>

</body>

</html>
