<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="utf-8" %>
<%@include file="/WEB-INF/ehr/commons/jsp/commonInclude.jsp" %>

<!--######应用管理页面 > 应用详情模板页######-->
<div id="div_info_form" class="m-form-inline" style="padding-top:10px;" data-role-form>

    <div class="m-form-group" >
        <label><span class="red">*&nbsp;</span>服务名称：</label>

        <div class="m-form-control ">
            <div class="l-text">
                <input type="text" class="l-text-field required" placeholder="请填写服务名称" name="name"/>
            </div>
        </div>
        <label style="width:110px;"><span class="red">*&nbsp;</span>版本：</label>

        <div class="m-form-control">
            <div class="l-text">
                <input type="text" style="width:180px;" class="l-text-field" placeholder="请填写版本" name="version"/>
            </div>
        </div>

        <label style="width:110px;">状态：</label>

        <div class="m-form-control">
            <div class="l-text">
                <input  type="text" id="txtValid" class="l-text-field required"  name="valid"/>
            </div>
        </div>
    </div>


    <div class="m-form-group" >
        <label><span class="red">*&nbsp;</span>端点：</label>

        <div class="m-form-control">
            <div class="l-text" style="width:800px;">
                <input type="text"  class="l-text-field" placeholder="请填写端点" name="endpoint"/>
            </div>
        </div>
    </div>

    <div class="m-form-group">
        <label>描述：</label>

        <div class="m-form-control">
            <div class="l-text" style="width:800px;">
                <input type="text" style="width:790px;" class="l-text-field" maxlength="255" placeholder="请填写描述内容" name="description"/>
            </div>
        </div>
    </div>

    <div class="m-form-group" >
        <label>健康监控：</label>

        <div class="m-form-control">
            <div class="l-text" >
                <input type="text" id="healthReportType"  class="l-text-field required" placeholder="请选择监控类型 " name="healthReportType"/>
            </div>
        </div>
        <label id="label_health" style="width:110px;display: none"><span class="red">*&nbsp;</span>地址：</label>

        <div class="m-form-control" id="healthEndpoint" >
            <div class="l-text" >
                <input type="text"  class="l-text-field required" placeholder="请输入健康监控端点地址 " name="healthEndpoint"/>
            </div>
        </div>
    </div>

    <div class="m-form-group" >
        <label>指标监控：</label>

        <div class="m-form-control">
            <div class="l-text" >
                <input type="text" id="metricsReportType" class="l-text-field required" placeholder="请选择监控类型 " name="metricsReportType"/>
            </div>
        </div>
        <label id="label_metrics" style="width:110px;display: none"><span class="red">*&nbsp;</span>地址：</label>

        <div class="m-form-control"  id="metricsEndpoint" >
            <div class="l-text" >
                <input type="text"  class="l-text-field required" placeholder="请输入指标监控端点地址 " name="metricsEndpoint"/>
            </div>
        </div>
    </div>

    <div class="m-form-group" >
        <label>输入格式：</label>

        <div class="m-form-control">
            <div class="l-text"  style="width:800px;height:100px;" >
                <textarea  style="width:800px;height:100px;" class="l-text-field required"    placeholder="请填写 输入格式 " name="requesModule"></textarea>
            </div>
        </div>
    </div>


    <div class="m-form-group" >
        <label><span class="red"></span></label>

        <div class="m-form-control" id="paramDiv">
        </div>
    </div>
    <div class="m-form-group" >
        <label><span class="red"></span></label>

        <div class="m-form-control">
            <div class="l-button">
                <div class="l-button l-button-green" style="clear:both;margin-left:0px;" id="menu_add_btn"><span>添加参数</span></div>
            </div>
        </div>
    </div>


    <%--<div class="m-form-group" >--%>
        <%--<label><span class="red">*&nbsp;</span></label>--%>

        <%--<div class="m-form-control">--%>
            <%--<div class="l-button">--%>
                <%--<div class="l-button l-button-green" style="clear:both;margin-left:0px;" id="menu_test"><span>测试参数获取问题</span></div>--%>
            <%--</div>--%>
        <%--</div>--%>
    <%--</div>--%>

    <%--<div class="m-form-group">--%>
        <%--<label>参数：</label>--%>

        <%--<div class="m-form-control">--%>
            <%--<input type="text" id="serviceCondition"/>--%>
        <%--</div>--%>
    <%--</div>--%>



    <div class="m-form-group" >
        <label>输出正确格式：</label>

        <div class="m-form-control">
            <div class="l-text"  style="width:800px;height:100px;">
                <textarea style="width:800px;height:100px;"   class="l-text-field required" placeholder="请填写 输出正确格式 " name="responeResult"></textarea>
            </div>
        </div>
    </div>

    <div class="m-form-group" >
        <label>输出错误格式：</label>

        <div class="m-form-control">
            <div class="l-text"  style="width:800px;height:100px;" >
                <textarea style="width:800px;height:100px;"  class="l-text-field required" placeholder="请填写 输出错误格式 " name="responeError"></textarea>
            </div>
        </div>
    </div>


    <!-- 隐藏字段 -->
    <div class="m-form-group" style="display: none;">
        <input name="id" hidden="hidden"/>
        <input name="appId" hidden="hidden"/>
        <input name="requestParameterList" id="requestParameterList" hidden="hidden"/>

    </div>
    <div class="m-form-bottom">
        <div id="btnCancel" class="l-button l-button-no">
            <span>关闭</span>
        </div>
        <div id="btnSave" class="l-button">
            <span>保存</span>
        </div>
    </div>
</div>
<style>
    .paramRequired{border: #FF7777 1px solid;}
</style>
