Browse Source

若依 2.0

pull/13/head
RuoYi 6 years ago
parent
commit
5c9ac4e9c8
  1. 6
      src/main/resources/templates/vm/html/edit.html.vm

6
src/main/resources/templates/vm/html/edit.html.vm

@ -4,14 +4,14 @@
<head th:include="include :: header"></head> <head th:include="include :: header"></head>
<body class="white-bg"> <body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> <div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-${classname}-edit" th:object="${classname}"> <form class="form-horizontal m" id="form-${classname}-edit" th:object="${${classname}}">
<input id="${primaryKey.attrname}" name="${primaryKey.attrname}" th:field="*${${primaryKey.attrname}}" type="hidden"> <input id="${primaryKey.attrname}" name="${primaryKey.attrname}" th:field="*{${primaryKey.attrname}}" type="hidden">
#foreach($column in $columns) #foreach($column in $columns)
#if($column.columnName != $primaryKey.columnName) #if($column.columnName != $primaryKey.columnName)
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">${column.columnComment}:</label> <label class="col-sm-3 control-label">${column.columnComment}:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input id="${column.attrname}" name="${column.attrname}" th:field="*${${column.attrname}}" class="form-control" type="text"> <input id="${column.attrname}" name="${column.attrname}" th:field="*{${column.attrname}}" class="form-control" type="text">
</div> </div>
</div> </div>
#end #end

Loading…
Cancel
Save