加入marshmallow数据验证

This commit is contained in:
mkg
2021-06-07 22:57:21 +08:00
parent 375d3a10b2
commit f93a36c094
6 changed files with 72 additions and 9 deletions
+2 -2
View File
@@ -48,9 +48,9 @@
<label class="layui-form-label">状态</label>
<div class="layui-input-block">
<input type="radio" name="status"{% if dept.status == 1 %}checked{% endif %} value="0" title="开启">
<input type="radio" name="status"{% if dept.status == 1 %}checked{% endif %} value="1" title="开启">
<input type="radio" name="status" {% if dept.status == 0 %}checked{% endif %} value="1" title="关闭"
<input type="radio" name="status" {% if dept.status == 0 %}checked{% endif %} value="0" title="关闭"
>
</div>
</div>