chaoyu/view/manager/slide/edit.html

71 lines
3.9 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">
<textarea class="layui-textarea" name="item[title]" maxlength="200" onkeyup="limitContentLength(this, 200)" placeholder="200字以内">{$item.title??''}</textarea>
</div>
</div>
<div class="layui-form-item ">
<label class="layui-form-label">标题-英文</label>
<div class="layui-input-block">
<textarea class="layui-textarea" name="item[title_en]" maxlength="200" onkeyup="limitContentLength(this, 200)" placeholder="200字以内">{$item.title_en??''}</textarea>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">轮播图[pc]</label>
<div class="layui-input-block">
{:widget('manager.upload/image',['src' => $item['src'], 'append' => '_pc', 'img_size' => $img_size['slide_size']??''])}
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">轮播图[pc]-英文</label>
<div class="layui-input-block">
{:widget('manager.upload/image',['src' => $item['src_en'], 'append' => '_pc_en', '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'], 'append' => '_mobile', 'img_size' => $img_size['slide_mobile_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_en'], 'append' => '_mobile_en', 'img_size' => $img_size['slide_mobile_size']??''])}
</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">简介</label>
<div class="layui-input-block">
<textarea class="layui-textarea" name="item[description]" onkeyup="limitContentLength(this, 200)" placeholder="200字以内">{$item.description}</textarea>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">简介-英文</label>
<div class="layui-input-block">
<textarea class="layui-textarea" name="item[description_en]" onkeyup="limitContentLength(this, 200)" placeholder="200字以内">{$item.description_en}</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>