luck-draw/view/manager/archives_category/edit.html

123 lines
6.4 KiB
HTML
Raw Normal View History

2022-02-22 09:27:27 +00:00
{layout name="manager/layout" /}
<style>
.layui-iconpicker-body.layui-iconpicker-body-page .hide {display: none;}
</style>
<div class="layuimini-container location-operate-page">
<div class="layuimini-main">
<div class="layui-form layuimini-form">
<div class="layui-form-item">
<label class="layui-form-label required">上级</label>
<div class="layui-input-block">
<div id="parent-menu" data-menu="{$jsonList ?? ''}" class="xm-select-demo"></div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label required">模型</label>
<div class="layui-input-block">
<div id="parent-model" data-disabled="true" data-list="{$modelList ?? ''}" class="xm-select-demo"></div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label required">标题</label>
<div class="layui-input-block">
<input type="text" name="title" lay-verify="required" value="{$item.title ?? ''}" lay-reqtext="标题不能为空" placeholder="请输入标题" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label ">副标题</label>
<div class="layui-input-block">
<input type="text" name="subtitle" placeholder="请输入标题" value="{$item.title ?? ''}" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label required">标识</label>
<div class="layui-input-block">
<input type="text" name="name" value="{$item.name ?? ''}" lay-verify="required" lay-reqtext="标识不能为空" placeholder="请输入英文唯一标识" class="layui-input">
</div>
</div>
<div class="layui-form-item layui-row field-div current-field-cover" >
<label class="layui-form-label">封面:</label>
<div class="layui-inline layui-col-xs12 layui-col-md8">
<div class="layui-row upload-file-div">
<div class=" layui-col-xs12 layui-col-md8">
<input class="layui-input upload-file-value" name="cover" type="text" value="{$item.cover ?? ''}">
<div class="layui-form-mid layui-word-aux">图片尺寸:亲上传合适尺寸的图片</div>
</div>
<div class="layui-col-xs12 layui-col-md3">
<span>
<button type="button" class="layui-btn layui-btn-danger upload-btn">
<i class="fa fa-upload"></i> 上传
</button>
</span>
<span><button type="button" class="layui-btn layui-btn-primary upload-choose-btn" data-url="/manager/attachment/image" data-type="image" data-multiple="false"><i class="fa fa-list"></i> 选择</button></span>
</div>
<ul class="layui-row layui-col-xs12 layui-col-md9 preview-list layui-col-space5"></ul>
</div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label ">路由别名</label>
<div class="layui-input-inline">
<input type="text" name="route" style="width: 50%;min-width: 320px" placeholder="如:/abc2/def1" value="{$item.route ?? ''}" class="layui-input">
</div>
<div class="layui-form-mid layui-word-aux">"/"开头 只能填写英文字符和数字 中划线(-)和下划线_每个分段不能是纯数字</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label ">封面模板</label>
<div class="layui-input-block">
<input type="text" name="cover_template" value="{$item.cover_template ?? ''}" placeholder="请输入英文" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label ">详情模板</label>
<div class="layui-input-block">
<input type="text" name="detail_template" value="{$item.detail_template ?? ''}" placeholder="请输入英文" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label ">分页大小</label>
<div class="layui-input-block">
<input type="text" name="page_size" value="{$item.page_size ?? '10'}" placeholder="" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label ">文章封面尺寸</label>
<div class="layui-input-block">
<input type="text" name="archive_cover_size" value="{$item.archive_cover_size ?? ''}" placeholder="如:800*800" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label ">链接</label>
<div class="layui-input-block">
<input type="text" name="link" value="{$item.link ?? ''}" placeholder="" class="layui-input">
</div>
</div>
<div class="layui-form-item layui-form-text">
<label class="layui-form-label">描述</label>
<div class="layui-input-block">
<textarea name="description" class="layui-textarea" placeholder="请输入描述信息">{$item.description ?? ''}</textarea>
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="layui-btn layui-btn-normal" data-url="/manager/archives-category/edit?id={$item.id}" lay-submit lay-filter="saveBtn">确认保存</button>
</div>
</div>
</div>
</div>
</div>
<script src="__MANAGER__/js/archives_category.js?v={:mt_rand()}"></script>