zzwy2/view/manager/link_product/edit.html

41 lines
2.0 KiB
HTML
Executable File

<div class="layui-card layui-col-md12">
<div class="layui-card-body">
<form data-action="{:url('manager.linkProduct/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])}
</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">
<input class="layui-input" type="radio" name="item[top]" value="0" title="否" {if $item.top == 0} checked {/if} />
<input class="layui-input" type="radio" name="item[top]" value="1" title="是" {if $item.top == 1} checked {/if}/>
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<input type="hidden" name="id" class="layui-input" value="{$item.id}" />
<button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="submitAll">保存</button>
</div>
</div>
</form>
</div>
</div>