luck-draw/view/manager/archives_model_field/add.html

39 lines
2.2 KiB
HTML

{layout name="manager/layout" /}
<div class="layuimini-container location-operate-page">
<div class="layuimini-main">
<div class="layui-form layuimini-form">
<div class="layui-form-item">
<label class="layui-form-label required">字段标题</label>
<div class="layui-input-block">
<input type="text" name="title" lay-verify="required" value="{$item.title ?? ''}" lay-reqtext="标题不能为空" placeholder="请输入标题" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label required">字段名</label>
<div class="layui-input-block">
<input type="text" name="name" lay-verify="required" value="{$item.name ?? ''}" lay-reqtext="字段名不能为空" placeholder="标识一旦创建无法修改" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">虚拟字段</label>
<div class="layui-input-block">
<input type="radio" name="is_virtual" value="1" title="是" disabled>
<input type="radio" name="is_virtual" value="0" title="否" checked>
</div>
<div class="layui-form-mid layui-word-aux">当前表未实际存在的字段均为虚拟字段,如 关联病种 存在于其他关联表中; 目前仅支持添加虚拟字段</div>
</div>
<div class="layui-form-item layui-form-text">
<label class="layui-form-label">备注信息</label>
<div class="layui-input-block">
<textarea name="remark" class="layui-textarea" placeholder="请输入备注信息">{$item.remark ?? ''}</textarea>
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="layui-btn layui-btn-normal" data-url="/manager/archives-model-field/add?model_id={$modelId ?? 0}" lay-submit lay-filter="saveBtn">确认保存</button>
</div>
</div>
</div>
</div>
</div>