多备选项的radio标签(自用)
作者:互联网
新增
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">状态
<i class="text-danger">*</i>:
</label>
<div class="col-sm-8">
<div class="form-control ">
<label class="radio-inline" th:each="type,state:${SYS.dict('emp_status')}">
<input type="radio" name="status" th:value="${type.value}" />
<span th:text="${type.name}"></span>
</label>
</div>
</div>
</div>
</div>
查看
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">
状态:
</label>
<div class="col-sm-8">
<div class="form-control ">
<label class="radio-inline" th:each="type,state:${SYS.dict('emp_status')}">
<input type="radio" name="status" th:value="${type.value}"
th:attr="checked=${userCheck.status == type.value?true:false}" disabled/>
<span th:text="${type.name}"></span>
</label>
</div>
</div>
</div>
</div>
修改
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">状态
<i class="text-danger">*</i>:
</label>
<div class="col-sm-8">
<div class="form-control ">
<label class="radio-inline" th:each="type,state:${SYS.dict('emp_status')}">
<input type="radio" name="status" th:value="${type.value}" th:attr="checked=${userCheck.status == type.value?true:false}"/>
<span th:text="${type.name}"></span>
</label>
</div>
</div>
</div>
</div>
标签:选项,状态,标签,多备,自用,radio 来源: https://blog.csdn.net/dengpaoS/article/details/122511244