40 lines
1.8 KiB
HTML
Executable File
40 lines
1.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/text')}" >
|
|
<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 editor-text">
|
|
<!-- <div class="editor"></div>-->
|
|
<textarea name="item[value]" class="tinymce-editor">{$item.value??''}</textarea>
|
|
</div>
|
|
</div>
|
|
<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>
|
|
<script>
|
|
tinymceEditor()
|
|
</script> |