glhcp/server/app/admin/view/wechat/reply/edit_text.html

68 lines
3.1 KiB
HTML
Raw Normal View History

2023-08-10 06:59:52 +00:00
{layout name="layout2" /}
<div class="layui-form" lay-filter="layuiadmin-form-reply" id="layuiadmin-form-reply" style="padding: 20px 30px 0 0;">
<input name="id" type="hidden" value="{$detail.id}">
<div class="layui-form-item">
<label class="layui-form-label"><font color="red">*</font>规则名称:</label>
<div class="layui-input-inline">
<input type="text" name="name" value="{$detail.name}" lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label"></label><span style="color: #a3a3a3;font-size: 9px">方便通过名称管理默认回复内容</span>
</div>
<div class="layui-form-item">
<label class="layui-form-label"><font color="red">*</font>关键词:</label>
<div class="layui-input-inline">
<input type="text" name="keyword" value="{$detail.keyword}" lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label"></label><span style="color: #a3a3a3;font-size: 9px">关键词不能超过5个字</span>
</div>
<div class="layui-form-item">
<label class="layui-form-label">匹配方式:</label>
<div class="layui-input-inline">
<select name="matching_type">
<option value="1" {if condition="$detail.matching_type eq 1" } selected {/if}>全匹配</option>
<option value="2" {if condition="$detail.matching_type eq 2" } selected {/if}>模糊匹配</option>
</select>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">内容类型:</label>
<div class="layui-input-inline">
<select name="content_type" lay-filter="aihao">
<option value="1" {if condition="$detail.content_type eq 1" } selected {/if} >文本</option>
</select>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">回复内容:</label>
<div class="layui-input-inline">
<textarea name="content" placeholder="请输入内容" class="layui-textarea">{$detail.content}</textarea>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">启用状态:</label>
<div class="layui-input-inline">
<input type="radio" name="status" value="1" title="启用" {if condition="$detail.status eq 1" } checked {/if}>
<input type="radio" name="status" value="0" title="停用" {if condition="$detail.status eq 0" } checked {/if}>
</div>
</div>
<div class="layui-form-item layui-hide">
<input type="button" lay-submit lay-filter="edit-reply-submit" id="edit-reply-submit" value="确认">
</div>
</div>
<script>
layui.config({
version:"{$front_version}",
base: '/static/lib/' //静态资源所在路径
}).use(['form'], function(){
var $ = layui.$
,form = layui.form;
});
</script>