chaoyu/view/manager/slide/add.html

68 lines
3.4 KiB
HTML
Executable File

<div class="layui-card layui-col-md12">
<div class="layui-card-body">
<form data-action="{:url('manager.slide/add')}" 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字以内"></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字以内"></textarea>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">轮播图[pc]</label>
<div class="layui-input-block">
{:widget('manager.upload/image', ['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', ['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',['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',['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]" 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]" maxlength="500" onkeyup="limitContentLength(this, 500)" placeholder="500字以内"></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]" maxlength="500" onkeyup="limitContentLength(this, 500)" placeholder="500字以内"></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>
</div>
</form>
</div>
</div>