add.vm 3.4 KB

#set($page_title="编辑第三方系统")
#set($crumbs="首页:/home,第三方系统管理:/navbar/list.do")

#set($url_save = "/navbar/save.do")

<link href="$!{webUtils.getAssetsPath("/css/i-layout.css")}" rel="stylesheet" type="text/css" />
<style type="text/css">
    .width-100{width:344px !important}
</style>

<div class="page-content">
    <div class="page-header">
        <h1>

            <small>
                <i class="icon-double-angle-right"></i>
            编辑第三方系统
            </small>
        </h1>
    </div>
    <!-- /.page-header -->

    <div class="row">
        <div class="col-xs-12">
            <!-- PAGE CONTENT BEGINS -->

            <form id="navbarAdd" class="form-horizontal" role="form" method="post" action="$url_save">
                #if($model.id)
                <input type="hidden" value="$model.id" name="id">
                #end


                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right"
                               for="form-field-1"> 项目名字: </label>

                        <div class="col-xs-12 col-sm-4">
                            <input required="true" type="text" id="form-field-1"
                                   placeholder="项目名字" name="projectName"
                                   value="$!{model.projectName}"
                                   class="width-100">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right"
                               for="form-field-1"> 项目编码: </label>

                        <div class="col-xs-12 col-sm-4">
                            <input required="true" type="text" id="form-field-1"
                                   placeholder="项目编码" name="code"
                                   value="$!{model.code}"
                                   class="width-100">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right"
                               for="form-field-2"> 项目描述: </label>

                        <div class="col-xs-12 col-sm-4">
                            <textarea required="true" name="description" class="width-100" rows="3" id="form-field-2" placeholder="项目描述">$!{model.description}</textarea>
                        </div>
                    </div>



                <div class="clearfix form-actions">
                    <div class="col-md-offset-3 col-md-9">
                        <button class="btn btn-info" type="submit">
                            <i class="icon-ok bigger-110"></i>
                            提交
                        </button>

                        &nbsp; &nbsp; &nbsp;
                        <a class="btn btn-info" href="javascript:history.back()">
                            <i class="icon-undo bigger-110"></i>
                            返回
                        </a>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

<script type="text/javascript" src="/static/module/ztree/js/lab2.js"></script>
<script src="$!{webUtils.getAssetsPath("/js/jquery.validate.min.js")}"></script>
<script src="$!{webUtils.getAssetsPath("/js/jquery.validate.extend.js")}"></script>