<%@include file="/WEB-INF/common/layouts/common.jsp" %>
<%@ page language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <title>${entity.id}</title>
    <link href="${static_common}/script/select2-3.5.2/select2.css" type="text/css" rel="stylesheet"/>
    <script type="text/javascript" src="${static_common}/script/select2-3.5.2/select2.js"></script>
</head>
<style>

    .span12 .control-label {
        padding-top: 0px;
    }
</style>
<body>
<form id="input_form" class="form-horizontal valid"
      action="${ctx}/appversion"
      method="post">

    <!-- 面包屑 begin -->
    <div class="row-fluid">
        <div class="span12">
            <ul class="breadcrumb">

                <li class="active">
                    <span class="divider" style="color:#26a0da;font-weight:bold;">/</span>
                    <c:choose>
                        <c:when test="${action=='create'}">
                            <span class="inline">新增</span>
                        </c:when>
                        <c:when test="${action=='edit'}">
                            <span class="inline"> ${entity.id} </span>
                        </c:when>
                        <c:otherwise>
                            <span class="inline"> ${entity.id}</span>
                        </c:otherwise>
                    </c:choose>
                </li>
            </ul>
        </div>
    </div>
    <!-- 面包屑 end -->
    <house365:flushMessage/>
    <div class="row${fluid}">
        <div class="span12">
            <div class="portlet-header">
                <div class="operation-btn pull-right">
                    <c:choose>
                        <c:when test="${action=='create'}">
                            <button class="btn blue"><i class="icon-save"></i>&nbsp;保存</button>
                            <a href="${ctx}/appversion" class="btn gray"><i class="icon-mail-reply"></i>&nbsp;返回</a>
                        </c:when>
                    </c:choose>
                </div>
            </div>
        </div>
        <div class="form-horizontal house365Page">
            <div class="house365Border">
                <!-- 片段头 begin -->
                <div class="sectionTitle">
                    <c:choose>
                        <c:when test="${action=='create'}">
                            <h5>新增</h5>
                        </c:when>
                        <c:when test="${action=='edit'}">
                            <h5>编辑</h5>
                        </c:when>
                        <c:otherwise>
                            <h5>详情</h5>
                        </c:otherwise>
                    </c:choose>
                </div>
                <div class="row-fluid">
                    <div class="span6 control-group">
                        <label class="control-label">版本名<font style="color: red;">*</font>:</label>
                        <div class="controls">
                            <c:choose>
                                <c:when test="${action=='create'}">
                                    <input type="text" id="entity.name"
                                           name="entity.name" class="required"
                                           value=""/>
                                    <font color="red"><form:errors path="entity.name"/></font>
                                </c:when>
                                <%--<c:otherwise>--%>
                                    <%--<span class="inline">${entity.contractCode}&nbsp;</span>--%>
                                <%--</c:otherwise>--%>
                            </c:choose>
                        </div>
                    </div>
                    <div class="span6 control-group">
                        <label class="control-label">版本号<font style="color: red;">*</font>:</label>
                        <div class="controls">
                            <c:choose>
                                <c:when test="${action=='create' || action=='edit'}">
                                    <input type="text" id="entity.version"
                                           name="entity.version" class="required"
                                           value=""/>
                                    <font color="red"><form:errors path="entity.version"/></font>
                                </c:when>
                                <%--<c:otherwise>--%>
                                    <%--<span class="inline">${entity.contractCode}&nbsp;</span>--%>
                                <%--</c:otherwise>--%>
                            </c:choose>
                        </div>
                    </div>
                </div>

                <div class="row-fluid">
                    <div class="span6 control-group">
                        <label class="control-label">升级包链接<font style="color: red;">*</font>:</label>
                        <div class="controls">
                            <c:choose>
                                <c:when test="${action=='create' || action=='edit'}">
                                    <input type="text" id="entity.updateUrl"
                                           name="entity.updateUrl" class="required"
                                           value=""/>
                                    <font color="red"><form:errors path="entity.updateUrl"/></font>
                                </c:when>
                                <%--<c:otherwise>--%>
                                    <%--<span class="inline">${entity.updateUrl}&nbsp;</span>--%>
                                <%--</c:otherwise>--%>
                            </c:choose>
                        </div>
                    </div>
                    <div class="span6 control-group">
                        <label class="control-label">提示语<font style="color: red;">*</font>:</label>
                        <div class="controls">
                            <c:choose>
                                <c:when test="${action=='create'}">
                                    <input type="text" id="entity.description"
                                           name="entity.description" class="required"
                                           value=""/>
                                    <font color="red"><form:errors path="entity.description"/></font>
                                </c:when>
                                <c:otherwise>
                                    <span class="inline">${entity.description}&nbsp;</span>
                                </c:otherwise>
                            </c:choose>
                        </div>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6 control-group">
                        <label class="control-label">前端类别<font style="color: red;">*</font>:</label>
                        <div class="controls">
                            <c:choose>
                                <c:when test="${action=='create' || action=='edit'}">
                                    <select class="chosen required" id="entity.channel" name="entity.channel"
                                            data-placeholder="前端类别">
                                        <option value="1">安卓</option>
                                        <option value="2">IOS</option>
                                    </select>
                                </c:when>
                            </c:choose>
                        </div>
                    </div>
                    <div class="span6 control-group">
                        <label class="control-label">是否强制更新<font style="color: red;">*</font>:</label>
                        <div class="controls">
                            <c:choose>
                                <c:when test="${action=='create' || action=='edit'}">
                                    <select class="chosen required" id="entity.forceUpdate" name="entity.forceUpdate"
                                            data-placeholder="是否强制更新">
                                        <option value="1">是</option>
                                        <option value="0">否</option>
                                    </select>
                                </c:when>
                                <c:otherwise>
                                    <span class="inline">${entity.forceUpdate}&nbsp;</span>
                                </c:otherwise>
                            </c:choose>
                        </div>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6 control-group">
                        <label class="control-label">版本编码<font style="color: red;">*</font>:</label>
                        <div class="controls">
                            <c:choose>
                                <c:when test="${action=='create' || action=='edit'}">
                                    <input type="number" id="entity.versionCode"
                                           name="entity.versionCode" class="required"
                                           value=""/>
                                    <font color="red"><form:errors path="entity.versionCode"/></font>
                                </c:when>
                            </c:choose>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

</form>
<script>

</script>
</body>

</html>
