add.vm
3.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#set($page_title="编辑")
#set($crumbs="首页:/home,编辑")
#set($url_save = "/role/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">
<span class="pull-right">
<a href="javascript:history.back()" class="btn btn-white btn-default">返回</a>
</span>
<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="roleAdd" 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="roleName"
value="$!{model.roleName}" autocomplete="off"
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">
<input type="text" id="form-field-2"
placeholder="角色描述" name="description"
value="$!{model.description}" autocomplete="off"
class="width-100">
</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>
<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>