73 lines
3.8 KiB
HTML
Executable File
73 lines
3.8 KiB
HTML
Executable File
<div class="layui-card layui-col-md12">
|
|
<div class="layui-card-body">
|
|
<form class="layui-form" data-action="{:url('manager.page/video')}" >
|
|
<input type="hidden" name="_token" value="{$_token ?? ''}"/>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">标题</label>
|
|
<div class="layui-input-block">
|
|
<input type="text" class="layui-input" name="item[title]" value="{$item.title??''}"/>
|
|
</div>
|
|
</div>
|
|
{if $groupId == 1}
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">键值</label>
|
|
<div class="layui-input-block">
|
|
<input type="text" class="layui-input" name="item[keyword]" value="{$item.keyword??''}"/>
|
|
</div>
|
|
</div>
|
|
{else /}
|
|
<input type="hidden" class="layui-input" name="item[keyword]" value="{$item.keyword??''}"/>
|
|
{/if}
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">状态</label>
|
|
<div class="layui-input-block">
|
|
<input type="radio" name="item[status]" value="1" {if !isset($item.status) || $item.status }checked{/if} title="正常" />
|
|
<input type="radio" name="item[status]" value="0" {if isset($item.status) && $item.status == 0 }checked{/if} title="隐藏" />
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">链接</label>
|
|
<div class="layui-input-block">
|
|
<input type="text" class="layui-input" name="item[link]" value="{$item.link??''}" placeholder="选填"/>
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">图片</label>
|
|
<div class="layui-input-block">
|
|
{:widget('manager.upload/image',['src' => $item.img??'', 'imgSize' => $imgSize])}
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">视频</label>
|
|
<div class="layui-input-block">
|
|
{:widget('manager.upload/video',['src' => $item.value??''])}
|
|
</div>
|
|
</div>
|
|
{if $groupId == 1}
|
|
<div class="layui-form-item">
|
|
<div class="layui-inline">
|
|
<label class="layui-form-label">图片尺寸</label>
|
|
<div class="layui-form-mid layui-word-aux">宽:</div>
|
|
<div class="layui-input-inline" >
|
|
<input class="layui-input" type="text" name="item[width]" value="{$item['width'] ? $item['width'] : 100}" style="width:100%" />
|
|
</div>
|
|
<div class="layui-form-mid layui-word-aux">px</div>
|
|
<div class="layui-form-mid">X</div>
|
|
<div class="layui-form-mid layui-word-aux">高:</div>
|
|
<div class="layui-input-inline" >
|
|
<input class="layui-input" type="text" name="item[height]" value="{$item['height'] ? $item['height'] : 100}" style="width:100%" />
|
|
</div>
|
|
<div class="layui-form-mid layui-word-aux">px</div>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
<div class="layui-form-item">
|
|
<div class="layui-input-block">
|
|
<button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="submitAll">保存</button>
|
|
</div>
|
|
</div>
|
|
<input type="hidden" class="layui-input" name="category_id" value="{$categoryId??0}" />
|
|
<input type="hidden" class="layui-input" name="id" value="{$item.id??0}" />
|
|
</form>
|
|
</div>
|
|
</div> |