<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE>
<html>
<head>
<title>款型尺码</title>
<%@include file="/common/taglibs.jspf"%>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<section class="panel panel-default">
		<input type="hidden" id="prodId" value="${prodId}">
		<div class="panel-body" >
			<table style="width: 100%; font-size: 14px;">
				<tr>
					<td>尺码名称</td>
					<td align="center">管理</td>
				</tr>
				<tbody id="sizeTb">
				</tbody>
			</table>
		</div>
		<footer class="panel-footer text-right bg-light lter">
			<table>
				<tr>
					<td><input type="text" id="sizeName" class="form-control input-medium" style="width:220px;" placeholder="填写尺码标签"></td>
					<td><button class="btn btn-primary btn-s-xs" id="sizeBtn">保存</button></td>
				</tr>
			</table>
			
		</footer>
	</section>

	<script src="${ctx}/static/plugins/artTemplate/js/template.js"></script>
	<script src="${ctx}/static/resource/ebus/productSize.js"></script>
	<script type="text/html" id="sizeHtml">
	{{each content as size}}
		<tr id="size_{{size.sizeId}}">
			<td>{{size.zname}}</td>
			<td align="center">
				<button class="btn btn-danger" onclick="deleteSize({{size.sizeId}},'{{size.zname}}')">删除</button>
			</td>
		</tr>
	{{/each}}
	</script>
</body>
</html>