<!doctype html>
<html class="no-js" lang="en" xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title>Limited</title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="icon" href="images/favicon.png">
        <link rel="stylesheet" href="css/style.css">
        
        <!--[if lt IE 9]>
            <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
            <script>window.html5 || document.write('<script src="js/vendor/html5shiv.js"><\/script>')</script>
        <![endif]-->
        
    </head>
    <body>
        <div id="management_wrapper">
            <div id="sidebar">
                <div class="sidebar_title"><button th:href="http://localhost:8080/limited">TOPへ戻る</button></div>
                <div class="sidebar_title"><button id="user_button" type="button">ユーザー管理</button></div>
                <div class="sidebar_title"><button id="shoe_button" type="button">商品管理</button></div>
            </div>
            <div id="mainbody">


                <!-- ユーザー管理 -->
                <div id="user_management">
                    <!-- ヘッダー -->
                    <div class="ma_header">
                        <p>ユーザー管理</p>
                    </div>
                    <div id="user_list">
                        <table id="user_list_table" border="1">
                            <tr>
                                <th>ID</th>
                                <th>名前</th>
                                <th>権限</th>
                            </tr>
                            <tr>
                                <td>1</td>
                                <td>demo</td>
                                <td><input name="roles" th:text="admin"/><button id="roleBtn">権限変更</button></td>
                            </tr>
                        </table>
                    </div>
                </div>
                

                <!-- 商品管理 -->
                <div id="shoe_management">
                    <!-- ヘッダー -->
                    <div class="ma_header">
                        <p>商品管理</p>
                    </div>
                    <!-- 新規登録フォーム -->
                    <div id="newShoesFormTitle">商品新規登録</div>
                    <form id="newShoesForm"> 
                        <span>商品名：<input type="text" name="name" placeholder="name"/></span>
                        <span>価格：<input type="text" name="price" placeholder="price"/></span>
                        <!-- <span>在庫数：<select name="stock">
                            <option value="1">1</option>
                            <option value="2">2</option>
                            <option value="3">3</option>
                            <option value="4">4</option>
                            <option value="5">5</option>
                            <option value="6">6</option>
                            <option value="7">7</option>
                            <option value="8">8</option>
                            <option value="9">9</option>
                            <option value="10">10</option>
                        </select></span> -->
                        <span>在庫数：<input type="number" name="stock"/></span>
                        <span>サイズ：<select name="size_id">
                            <option value="1">24</option>
                            <option value="2">24.5</option>
                            <option value="3">25</option>
                            <option value="4">25.5</option>
                            <option value="5">26</option>
                            <option value="6">26.5</option>
                            <option value="7">27</option>
                            <option value="8">27.5</option>
                            <option value="9">28</option>
                            <option value="10">28.5</option>
                        </select></span>
                        <div>商品画像<input type="file" name="photo"></div>
                        <button type="button" id="newShoesFormBtn">登録確定</button>
                    </form>

                    <!-- 在庫一覧  eachで繰り返し -->
                    <div id="shoesListTitle">在庫一覧</div>
                    <div id="shoe_list">
                        <table id="show_list_table" border="1">
                            <tr>
                                <th>ID</th>
                                <th>商品名</th>
                                <th>価格</th>
                                <th>在庫数</th>
                                <th>商品画像</th>
                                <th>編集</th>
                                <th>削除</th>
                            </tr>
                            <tr th:each="">
                                <td th:text="">1</td>
                                <td th:text="">AirMax</td>
                                <td th:text="">¥10,000</td>
                                <td th:text="">10</td>
                                <td></td>
                                <td>
                                    <form th:action="@{/shoes/edit}" method="get">
                                        <input type="submit" name="form" value="編集"/>
                                        <input type="hidden" name="id" th:value=""/>
                                    </form>
                                </td>
                                <td>
                                    <form th:action="@{/shoes/delete}" method="post">
                                        <input type="button" name="form" value="削除" id="shoeDeleteBtn"/>
                                        <input type="hidden" name="id" th:value=""/>
                                    </form>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>

            </div>
        </div>
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>        
        <!-- <script src="js/vendor/bootstrap.min.js"></script>
        <script src="js/isotope.pkgd.min.js"></script>
        <script src="js/owl.carousel.min.js"></script>
        <script src="js/wow.min.js"></script>
        <script src="js/custom.js"></script> -->
        <script type="text/javascript" src="js/management.js"></script>
    </body>
</html>
