Newer
Older
task-bldg / src / main / resources / templates / tasks.html
@haya4 haya4 on 6 Aug 2022 4 KB fix : remove iquery.js
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
  xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  layout:decorate="~{layout/layout}">
<head>
  <meta charset="UTF-8" th:remove="tag">
  <script th:src="@{/custom/tasks.js}"></script>
</head>
<body onload='loadMap()'>

  <!-- サイドバーの表示 -->
  <div layout:fragment="sidebar" th:replace="~{fragments/sidebar :: sidebar}">
  </div>

  <!-- コンテンツの表示 -->
  <div layout:fragment="content">
    <main class="offcanvas-outside bg-light">
      <div class="container-fluid">
        <!-- トグルボタン -->
        <div th:replace="~{fragments/sidebar :: toggler}">
        </div>

        <div class="row">
          <div class="col">

            <div class="card shadow">
              <div class="card-header">
                <h6 class="text-navy my-2">Plateau 3D都市データ</h6>
              </div>
              <div class="card-body">

                <!-- マップ -->
                <div id="wrap">
                  <div class="header">
                    <div id='title'></div>
                    <div id='map'></div>
                  </div>
                    
                  <!-- ポップアップ -->
                  <div id='popup' class='ol-popup'>
                    <a href='#' id='popup-closer' class='ol-popup-closer'></a>
                    <div id='popup-content'></div>
                  </div>
                </div>
                
                <table class="table table-bordered">
                  <thead>
                    <tr>
                      <th th:text="${citycode}"></th>
                      <th th:text="${cityname}"></th>
                      <th th:text="${meshcode}"></th>
                      <th th:text="${username}"></th>
                      <th th:text="${changeSet}"></th>
                      <th th:text="${validator}"></th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr>
                      <td th:object="${mesh}" colspan='4'>
                        <a th:text="#{return}" th:href="@{/mesh/{citycode}(citycode=*{citycode})}" class="btn btn-navy">
                        </a>
                                              
                        <a th:href="@{/task/reserve?citycode={citycode}&meshcode={meshcode}(citycode=*{citycode},meshcode=*{meshcode})}" class="btn btn-navy">
                          <i class="bi bi-pencil-square" th:text="#{reserve}" ></i>
                        </a>
                        
                        <a th:href="@{/task/cancel?citycode={citycode}&meshcode={meshcode}(citycode=*{citycode},meshcode=*{meshcode})}" class="btn btn-navy">
                          <i class="bi bi-pencil-square" th:text="#{cancel}"></i>
                        </a>
                        
                        <a th:href="@{/task/done?citycode={citycode}&meshcode={meshcode}(citycode=*{citycode},meshcode=*{meshcode})}" class="btn btn-navy">
                          <i class="bi bi-pencil-square" th:text="#{done}"></i>
                        </a>
                      </td>
                    </tr>
                  </tbody>
                </table>
                
            
                <table class="table table-bordered">
                  <thead>
                    <tr>
                      <th th:text="#{status}"></th>
                      <th th:text="#{citycode}"></th>
                      <th th:text="#{username}"></th>
                      <th th:text="#{changeSet}"></th>
                      <th th:text="#{validator}"></th>
                      <th th:text="#{operation}"></th>
                      <th th:text="#{updateTime}"></th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr th:each="task : ${tasks}" th:object="${task}">
                      <td th:text="*{status}"></td>
                      <td th:text="*{citycode}"></td>
                      <td th:text="*{username}"></td>
                      <td th:text="*{changeSet}"></td>
                      <td th:text="*{validator}"></td>
                      <td th:text="*{operation}"></td>
                      <td th:text="*{updateTime}"></td>
                    </tr>
                  </tbody>
                </table>
                
              </div>
            </div>
          </div>
        </div>
      </div>
    </main>
  </div>
  

</body>
</html>