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

40 lines
1.6 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<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>