优化表单组件验证

This commit is contained in:
2020-04-20 20:51:38 +08:00
parent 4ae73c90a5
commit 8612f1ffae
12 changed files with 31 additions and 31 deletions

View File

@@ -10,27 +10,27 @@
<div class="box-body">
<!-- 表单 -->
<form method="post" class="form-horizontal form">
<form method="post" class="form-horizontal form" role=form>
<!-- 基础 -->
<div id="tab1" class="tab-pane in tab1">
<div class="form-group">
<label class="col-lg-2 control-label">模型标识</label>
<div class="col-lg-6 col-sm-10">
<input type="text" class="form-control " name="name" value="">
<input type="text" class="form-control " name="name" value="" data-rule="required">
<span class="help-block">(请输入文档模型标识)</span>
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">模型名称</label>
<div class="col-lg-6 col-sm-10">
<input type="text" class="form-control " name="title" value="">
<input type="text" class="form-control " name="title" value="" data-rule="required">
<span class="help-block">(请输入模型的名称)</span>
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">文档模型</label>
<div class="col-lg-6 col-sm-10">
<select class="form-control" name="is_doc">
<select class="form-control selectpicker" name="is_doc" style="width: auto; min-width: 100px;" data-rule="required">
<option value="1"></option>
<option value="0"></option>
</select>