.uk-layui-form
    form.layui-form.uk-form(action='/admin/template/save.html')
        input(type='hidden', name='templettype', value=sysDic.id)
        .layui-form-item
            label.layui-form-label 模板名称：
            .layui-input-inline
                input.layui-input(type='text', name='name', required, lay-verify='required', placeholder='请输入模板名称', autocomplete='off')
            .layui-form-mid.layui-word-aux
                font(color='red') *
                | 模板名称，请使用字母填写

        .layui-form-item
            label.layui-form-label 模板代码：
            .layui-input-inline
                input.layui-input(type='text', name='code', placeholder='请输入模板代码', autocomplete='off')

        if sysDic.discode == true
            .layui-form-item
                label.layui-form-label 图标：
                .layui-input-inline
                    input(type="text" name="iconstr" required lay-verify="required" placeholder="请输入模板图标" autocomplete="off" class="layui-input")
                .layui-form-mid.layui-word-aux
                    font(color="red") *
                    span 模板图标，显示的图标路径

            if sysDic.ctype == "layout"
                .layui-form-item
                    label.layui-form-label 列数：
                    .layui-input-inline
                        select(name="layoutcols", lay-verify="")
                            - var opt = 1
                            while opt <= 12
                                option(value="'" + opt + "'") #{opt}列

                    .layui-form-mid.layui-word-aux
                        font(color="red") *
                        span 布局模板的列数量

            if sysDic.ctype == "report"
                //- 以下再原文件中被注释
                //- https://gitlab.chatopera.com/chatopera/cskefu/blob/760e130e770a96a43e8f6f2c8a1eb0885c0bbf90/contact-center/app/src/main/resources/templates/admin/system/template/add.html
                //- include /mixins/dic.mixin.pug
                //-         &lt;!&ndash; <div class="layui-form-item">
                //-             <label class="layui-form-label">样例数据：</label>
                //-             <div class="layui-input-inline">
                //-                <@select "com.dic.template.datatype" "datatype" '' "lay-ignore required"  "width: 220px;"/>
                //-             </div>
                //-             <div class="layui-form-mid layui-word-aux">
                //-             	<font color="red">*</font>
                //-             	报表默认数据
                //-             </div>
                //-         </div> &ndash;&gt;
                .layui-form-item
                    label.layui-form-label 报表类型：
                    .layui-input-inline
                        input(type="text", name="charttype", required, lay-verify="required", placeholder="请输入报表类型", autocomplete="off", class="layui-input")

        .layui-form-button
            .layui-button-block
                button.layui-btn(lay-submit, lay-filter='formDemo') 立即提交
                button.layui-btn.layui-btn-original(type='reset') 重置
script.
    layui.use('form', function () {
        var form = layui.form();
        form.render();
    });

