<!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" th: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"><a th:href="@{http://localhost:8080/limited/top}">TOPへ戻る</a></div>
                
                <div class="sidebar_title"><a id="shoe_button" type="button" th:href="@{http://localhost:8080/limited/admin/management}">管理画面へ戻る</a></div>
            </div>
            <div id="mainbody">

                <!-- 商品管理 -->
                <div id="shoe_management">
                    <!-- ヘッダー -->
                    <div class="ma_header">
                        <p>商品管理</p>
                    </div>
                    <!-- 在庫一覧  eachで繰り返し -->
                    <div id="shoesListTitle">商品情報編集</div>
                    <form id="ShoesEditForm" th:action="@{/limited/admin/management/{id}/edit(id=${shoes.id})}" th:object="${shoesForm}" method="post"> 
                        <span>ID:<div name="id" th:field="${shoes.id}"></div></span>
                        <span>商品名：<input type="text" name="name" th:field="${shoes.name}"/></span>
                        <span>価格：<input type="text" name="price" th:field="${shoes.price}"/></span>
                        <span>在庫数：
	                        <select id="stock" name="stock" th:field="${shoes.stock}" th:errorclass="error-input"> 
	                            <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>サイズ：
	                        <select id="size" name="size" th:field="${shoes.size}" th:errorclass="error-input">
	                            <option value="23">23</option>
	                            <option value="24">24</option>
	                            <option value="25">25</option>
	                            <option value="26">26</option>
	                            <option value="27">27</option>
	                            <option value="28">28</option>
	                            <option value="29">29</option>
	                            <option value="30">30</option>
	                        </select>
                        </span>
              
                        <span>公開範囲:
                        	<select id="product_status" name="product_status" th:field="${shoes.productStatus}">
                        		<option value="0">通常公開</option>
                        		<option value="1">限定公開</option>
                        	</select>
                        </span>
                        <div>商品画像<input type="file" name="photo" /></div>
                        <button type="submit" id="ShoesEditBtn">変更確定</button>
                    </form>
                </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> -->
        
    </body>
</html>
