RuoYi/ruoyi-generator/src/main/resources/vm/html/view.html.vm
2026-04-11 14:34:30 +08:00

52 lines
1.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('${functionName}详细')" />
</head>
<body>
<div class="main-content">
<form class="form-horizontal" th:object="${${className}}">
<h4 class="form-header h4">基本信息</h4>
#set($i = 0)
#foreach($column in $columns)
#if(!$column.pk && $column.list)
#set($dictType=$column.dictType)
#set($javaField=$column.javaField)
#set($parentheseIndex=$column.columnComment.indexOf(""))
#if($parentheseIndex != -1)
#set($comment=$column.columnComment.substring(0, $parentheseIndex))
#else
#set($comment=$column.columnComment)
#end
#if($i % 2 == 0)
<div class="row">
#end
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">${comment}</label>
<div class="col-sm-8">
#if("" != $dictType)
<p class="form-control-plaintext" th:text="*{@dict.getLabel('${dictType}', ${javaField})}"></p>
#elseif($column.javaType == "Date")
<p class="form-control-plaintext" th:text="*{#dates.format(${javaField}, 'yyyy-MM-dd HH:mm:ss')}"></p>
#else
<p class="form-control-plaintext" th:text="*{${javaField}}"></p>
#end
</div>
</div>
</div>
#set($i = $i + 1)
#if($i % 2 == 0)
</div>
#end
#end
#end
#if($i % 2 != 0)
</div>
#end
</form>
</div>
<th:block th:include="include :: footer" />
</body>
</html>