pzct/view/manager/notice/add.html

79 lines
3.4 KiB
HTML
Raw Normal View History

2023-07-25 09:22:32 +00:00
<div class="layui-card layui-col-md12">
<div class="layui-card-body">
<form class="layui-form" data-action="{:url('manager.notice/add')}">
<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>
{if $category['template_list'] == 'info/job'}
<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" id="published-at" type="text" name="item[published_at]" maxlength="60" value="{$item.published_at ?? ''}"/>
</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" id="end-at" type="text" name="item[end_at]" maxlength="60" value="{$item.end_at ?? ''}"/>
</div>
</div>
</div>
{/if}
{if $category['template_list'] == 'info/platform'}
<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[status]" maxlength="60" value="{$item.status ?? ''}" placeholder=""/>
</div>
</div>
</div>
{/if}
<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-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="item[category_id]" value="{$category.id}" />
</form>
</div>
</div>
<script>
layui.use('laydate', function(){
var laydate = layui.laydate;
//执行一个laydate实例
laydate.render({
elem: '#published-at' //指定元素
});
laydate.render({
elem: '#end-at' //指定元素
});
});
</script>