Commit e7050f5a by 若依 Committed by Gitee

!119 代码生成单选按钮组bug修复

Merge pull request !119 from SnowFox/master
parents 79197b19 9b45b78b
......@@ -66,8 +66,8 @@
<label class="col-sm-3 control-label">${comment}:</label>
<div class="col-sm-8">
<div class="radio-box" th:each="dict : ${@dict.getType('${dictType}')}">
<input type="radio" th:id="${dict.dictCode}" name="${field}" th:value="${dict.dictValue}" th:checked="${dict.default}"#if($column.required) required#end>
<label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
<input type="radio" th:id="${'${field}_'+dict.dictCode}" name="${field}" th:value="${dict.dictValue}" th:checked="${dict.default}"#if($column.required) required#end>
<label th:for="${'${field}_'+dict.dictCode}" th:text="${dict.dictLabel}"></label>
</div>
</div>
</div>
......
......@@ -66,8 +66,8 @@
<label class="col-sm-3 control-label">${comment}:</label>
<div class="col-sm-8">
<div class="radio-box" th:each="dict : ${@dict.getType('${dictType}')}">
<input type="radio" th:id="${dict.dictCode}" name="${field}" th:value="${dict.dictValue}" th:field="*{${field}}"#if($column.required) required#end>
<label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
<input type="radio" th:id="${'${field}_'+dict.dictCode}" name="${field}" th:value="${dict.dictValue}" th:field="*{${field}}"#if($column.required) required#end>
<label th:for="${'${field}_'+dict.dictCode}" th:text="${dict.dictLabel}"></label>
</div>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment