1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- {extend name="../../admin/view/main"}
- {block name='content'}
- <form action="{:sysuri()}" class="layui-card layui-form" data-auto="true" method="post">
- <div class="layui-card-body">
- <div class="layui-form-item">
- <span class="help-label"><b>封面</b>News Conver</span>
- <div class="relative block label-required-null">
- <input class="layui-input think-bg-gray" name="images" placeholder="请上传封面" readonly value='{$vo.images|default=""}'>
- <a class="layui-icon layui-icon-upload input-right-icon" data-file data-field="cover" data-type="gif,png,jpg,jpeg"></a>
- </div>
- </div>
- <label class="layui-form-item relative block">
- <span class="help-label"><b>标题</b>News Title</span>
- <input class="layui-input" name="title" placeholder="请输入标题" required value='{$vo.title|default=""}'>
- </label>
- <label class="layui-form-item relative block">
- <span class="help-label"><b>来源</b></span>
- <input class="layui-input" name="source" placeholder="请输入标题" required value='{$vo.source|default=""}'>
- </label>
- <label class="layui-form-item relative block">
- <span class="help-label"><b>排序</b>News Title</span>
- <input class="layui-input" type="number" name="sort" placeholder="排序" required value='{$vo.sort|default="0"}'>
- </label>
- <div class="layui-form-item layui-row layui-col-space15">
- <label class="layui-col-xs12 relative">
- <span class="color-green font-w7">详情</span>
- <textarea placeholder="广告详情" required class="layui-textarea" name="content">{$vo.content|default=""}</textarea>
- </label>
- </div>
- <div class="hr-line-dashed"></div>
- {notempty name='vo.id'}<input name='id' type='hidden' value='{$vo.id}'>{/notempty}
- <div class="layui-form-item text-center">
- <button class="layui-btn" type="submit">保存数据</button>
- <button class="layui-btn layui-btn-danger" data-history-back data-confirm="确定要取消编辑吗?" data-close type='button'>取消编辑</button>
- </div>
- </div>
- </form>
- <script>
- $('input[name="images"]').uploadOneImage();
- window.form.render();
- require(['ckeditor', 'angular'], function () {
- window.createEditor('[name="content"]', {
- });
- })
- </script>
- {/block}
|