138 lines
6.6 KiB
HTML
138 lines
6.6 KiB
HTML
<form class="layui-form eject-layuiBox" data-action="{:url('manager.article/add')}">
|
||
<div class="layui-card-body eject-info">
|
||
<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-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" />
|
||
</div>
|
||
</div>
|
||
<div class="layui-form-itemBox2 between">
|
||
<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="" maxlength="200"/>
|
||
</div>
|
||
</div>
|
||
<div class="layui-form-item">
|
||
<div class="layui-form-mid layui-word-aux">注:设置了链接则优先跳转到链接页面。请以http://或者https://开头</div>
|
||
</div>
|
||
</div>
|
||
<div class="layui-form-item">
|
||
<label class="layui-form-label">封面图</label>
|
||
<div class="layui-input-block">
|
||
{:widget('manager.upload/image',['imgSize' => $imgSize])}
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
<div class="layui-form-itemBox2 between">
|
||
<div class="layui-form-item">
|
||
<label class="layui-form-label">摘要</label>
|
||
<div class="layui-input-block">
|
||
<textarea class="layui-textarea" name="item[summary]"></textarea>
|
||
<p class="layui-word-aux mgt10">注:摘要请勿超过300个字符</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div class="layui-form-item">
|
||
<label class="layui-form-label">属性</label>
|
||
<div class="layui-inline">
|
||
<div class="layui-select newStyle eject">
|
||
<em>请选择</em>
|
||
<div class="top_box"></div>
|
||
<div class="lower_box">
|
||
<ul>
|
||
<li data-id="" data-val="置顶" data-checkbox="1">置顶</li>
|
||
<li data-id="" data-val="热门" data-checkbox="1">热门</li>
|
||
<li data-id="" data-val="推荐" data-checkbox="1">推荐</li>
|
||
</ul>
|
||
</div>
|
||
<input type="hidden" class="parameter" name="" value="" />
|
||
<div class="checkbox_list">
|
||
<input type="hidden" name="item[top]" data-val="置顶" value="" />
|
||
<input type="hidden" name="item[hot]" data-val="热门" value="" />
|
||
<input type="hidden" name="item[recommend]" data-val="推荐" value="" />
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
<div class="layui-form-item">
|
||
<label class="layui-form-label">状态</label>
|
||
<div class="layui-inline new-inline">
|
||
<select name="item[status]">
|
||
<option value="0">隐藏</option>
|
||
<option value="1" selected>正常</option>
|
||
</select>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="layui-form-item">
|
||
<label class="layui-form-label">内容</label>
|
||
<div class="layui-input-block editor-text">
|
||
<div class="editor"></div>
|
||
<textarea name="item[content]" class="layui-textarea layui-hide"></textarea>
|
||
</div>
|
||
</div>
|
||
<!-- SEO 添加内容区域 -->
|
||
<div class="layui-form-itemBox3 between">
|
||
<div class="layui-form-item">
|
||
<label class="layui-form-label">keywords</label>
|
||
<div class="layui-input-block">
|
||
<textarea class="layui-textarea" name="item[seo_keywords]" placeholder="请在此填写SEO keywords 内容"></textarea>
|
||
</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">description</label>
|
||
<div class="layui-input-block">
|
||
<textarea class="layui-textarea" name="item[seo_description]" placeholder="请在此填写SEO description 内容"></textarea>
|
||
</div>
|
||
</div>
|
||
<div class="layui-form-item"><div class="layui-form-mid layui-word-aux">注:内容字符长度为60</div></div>
|
||
</div>
|
||
<!-- SEO 添加内容区域 -->
|
||
<div class="layui-form-itemBox2 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[source]" placeholder="请在此填写来源" />
|
||
</div>
|
||
</div>
|
||
<div class="layui-form-item">
|
||
<label class="layui-form-label">作者</label>
|
||
<div class="layui-input-block">
|
||
<input class="layui-input" type="text" name="item[author]" placeholder="请在此填写作者" />
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="layui-form-itemBox2 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[copy_site]" placeholder="请在此填写来源网站" />
|
||
</div>
|
||
</div>
|
||
<div class="layui-form-item">
|
||
<label class="layui-form-label">来源网址</label>
|
||
<div class="layui-input-block">
|
||
<input class="layui-input" type="text" name="item[copy_url]" placeholder="请在此填写来源网址" />
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="eject-btn">
|
||
<button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="submitAll">保存</button>
|
||
</div>
|
||
<input type="hidden" class="layui-input" name="item[category_id]" value="{$category.id}" />
|
||
</form> |