32 lines
1.5 KiB
HTML
32 lines
1.5 KiB
HTML
|
<div class="layui-card layui-col-md12">
|
||
|
<div class="layui-card-body">
|
||
|
<form data-action="{:url('manager.link/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">
|
||
|
<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>
|