yijia-webman/app/view/book/edit.html

40 lines
1.6 KiB
HTML
Raw Normal View History

2025-03-30 10:36:39 +08:00
<form class="layui-form eject-layuiBox" data-action="/book/edit">
<div class="layui-form-item">
<label class="layui-form-label">书名</label>
<div class="layui-input-block">
<input class="layui-input" type="text" name="name" value="{$book.name??''}" maxlength="60" />
<div class="layui-form-mid layui-word-aux">建议60个字符长度以内</div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">分类</label>
<div class="layui-input-block">
<select name="category_id">
{foreach $categoryList as $cate}
<option {if $cate.id == $book.category_id} selected {/if} value="{$cate.id}">{$cate.name}</option>
{/foreach}
</select>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">作者</label>
<div class="layui-input-block">
<input class="layui-input" type="text" name="author" value="{$book.author??''}" maxlength="60" />
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">备注</label>
<div class="layui-input-block">
<input class="layui-input" type="text" name="remark" value="{$book.remark??''}" maxlength="200" />
</div>
</div>
<div class="layui-input-block">
<button type="button" class="layui-btn layui-btn-sm" lay-submit lay-filter="submitAll">保存</button>
</div>
<input type="hidden" name="id" value="{$book.id}" />
</form>