zzwy2/view/manager/cases/edit.html

122 lines
6.2 KiB
HTML
Raw Normal View History

2022-10-14 06:00:42 +00:00
<div class="layui-card layui-col-md12">
<div class="layui-card-body">
<form class="layui-form" data-action="{:url('manager.cases/edit')}">
<input type="hidden" name="__token__" value="{$_token}" />
<strong style="color: #f20000; font-size: 12px; display: block; line-height: 1;">注意*号为必填选项!</strong>
<hr style="margin: 20px 0;">
<div class="layui-form-itemBox3 between">
<div class="layui-form-item">
<label class="layui-form-label">标题<em>*</em></label>
<div class="layui-input-block">
<input class="layui-input" type="text" name="item[title]" maxlength="60" value="{$item.title}" />
</div>
</div>
<div class="layui-form-item"><div class="layui-form-mid layui-word-aux">标题请勿超过60个字符</div></div>
</div>
<div class="layui-form-itemBox3 between">
<div class="layui-form-item">
<label class="layui-form-label">描述</label>
<div class="layui-input-block">
<textarea name="item[description]" class="layui-textarea">{$item.description}</textarea>
</div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">封面图</label>
<div class="layui-input-block">
{:widget('manager.upload/image',['src' => $item.image??'', 'imgSize' => $coverSize])}
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">封面图-手机端</label>
<div class="layui-input-block">
{:widget('manager.upload/image',['src' => $item.image_mobile??'', 'imgSize' => $mobileCoverSize, 'append'=>'_mobile'])}
</div>
</div>
<div class="layui-form-itemBox3 between">
<div class="layui-form-item">
2022-11-04 06:06:03 +00:00
<label class="layui-form-label">入驻时间</label>
2022-10-14 06:00:42 +00:00
<div class="layui-input-block">
2022-11-04 06:06:03 +00:00
<input class="layui-input" type="text" name="item[check_in]" maxlength="60" value="{$item.check_in ?? ''}" placeholder="入驻时间"/>
2022-10-14 06:00:42 +00:00
</div>
</div>
</div>
<div class="layui-form-itemBox3 between">
<div class="layui-form-item">
<label class="layui-form-label">建成时间</label>
<div class="layui-input-block">
<input class="layui-input" type="text" name="item[built_at]" maxlength="60" value="{$item.built_at ?? ''}" placeholder="建成时间"/>
</div>
</div>
</div>
<div class="layui-form-itemBox3 between">
<div class="layui-form-item">
<label class="layui-form-label">小区面积</label>
<div class="layui-input-block">
<input class="layui-input" type="text" name="item[area]" maxlength="60" value="{$item.area ?? ''}" placeholder="小区面积"/>
</div>
</div>
</div>
<div class="layui-form-itemBox3 between">
<div class="layui-form-item">
<label class="layui-form-label">住户人员</label>
<div class="layui-input-block">
<input class="layui-input" type="text" name="item[household]" maxlength="60" value="{$item.household ?? ''}" placeholder="住户人员 如 2562户"/>
</div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">推荐</label>
<div class="layui-inline new-inline">
<input type="radio" name="item[recommend]" value="0" title="否" {if $item.recommend == 0} checked {/if} />
<input type="radio" name="item[recommend]" value="1" title="是" {if $item.recommend == 1} checked {/if} />
</div>
</div>
2022-10-14 08:14:35 +00:00
<div class="layui-form-item">
<label class="layui-form-label">展示到首页</label>
<div class="layui-inline new-inline">
<input type="radio" name="item[home]" value="0" title="否" {if $item.home == 0} checked {/if} />
<input type="radio" name="item[home]" value="1" title="是" {if $item.home == 1} checked {/if} />
</div>
</div>
2022-10-14 06:00:42 +00:00
<div class="layui-form-item">
<label class="layui-form-label">状态</label>
<div class="layui-inline new-inline">
<input type="radio" name="item[visible]" value="0" title="隐藏" {if $item.visible == 0} checked {/if} />
<input type="radio" name="item[visible]" value="1" title="正常" {if $item.visible == 1} checked {/if} />
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">项目概述</label>
<div class="layui-input-block editor-text">
<textarea name="item[content]" class="layui-textarea tinymce-editor">{$item.content??''}</textarea>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">项目展示组图</label>
<div class="layui-input-block">
{:widget('manager.upload/multi',['append' => '_images','imgs' => $item.images??'', 'num' => $category.num??10, 'imgSize' => '1235px*0px', 'fields' => false])}
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label"></label>
<div class="layui-inline">
<button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="submitAll">保存</button>
</div>
</div>
<input type="hidden" class="layui-input" name="id" value="{$item.id}" />
</form>
</div>
</div>