zzwy2/view/manager/slide/edit.html

77 lines
3.5 KiB
HTML
Executable File

<div class="layui-card layui-col-md12">
<div class="layui-card-body">
<form data-action="{:url('manager.slide/edit')}" class="layui-form">
<input type="hidden" name="__token__" value="{$_token}" />
<div class="layui-form-item ">
<label class="layui-form-label">标题</label>
<div class="layui-input-block">
<input class="layui-input" type="text" name="item[title]" value="{$item.title??''}" />
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">轮播图</label>
<div class="layui-input-block">
{:widget('manager.upload/image',['src' => $item['src'], 'img_size' => $img_size['slide_size']??''])}
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">手机端轮播图</label>
<div class="layui-input-block">
{:widget('manager.upload/image', ['src' => $item['src_mobile'],'img_size' => $img_size['slide_size']??'' ,"append"=>"_mobile"])}
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">URL</label>
<div class="layui-input-block">
<input class="layui-input" type="text" name="item[url]" value="{$item.url}" placeholder="http:// 或 https:// 开头的标准URL" />
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">标题1</label>
<div class="layui-input-block">
<input class="layui-input" type="text" name="item[font1]" value="{$item.font1}" />
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">标题2</label>
<div class="layui-input-block">
<input class="layui-input" type="text" name="item[font2]" value="{$item.font2}" />
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">标题3</label>
<div class="layui-input-block">
<input class="layui-input" type="text" name="item[font3]" value="{$item.font3}" />
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">标题4</label>
<div class="layui-input-block">
<input class="layui-input" type="text" name="item[font4]" value="{$item.font4}" />
</div>
</div>
<div class="layui-form-item layui-hide">
<label class="layui-form-label">简介</label>
<div class="layui-input-block">
<textarea class="codeEditor layui-textarea" name="item[description]">{$item.description}</textarea>
</div>
</div>
<div class="layui-clear"></div>
<hr style="margin: 30px 0;">
<div class="layui-form-item">
<div class="text-center">
<button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="submitAll">保存</button>
</div>
<input type="hidden" class="layui-input" name="id" value="{$item.id}" />
</div>
</form>
</div>
</div>