<!-- 基础数据编辑 -->
<div class="am-popup am-radius" id="popup-saveinfo">
    <div class="am-popup-inner am-radius">
        <div class="am-popup-hd">
            <h4 class="am-popup-title">{{:MyLang('detail_title')}}</h4>
            <span data-am-modal-close class="am-close">&times;</span>
        </div>
        <div class="am-popup-bd am-padding-0">
            <form class="am-form form-validation am-form-full-screen am-form-popup-fixed" action="{{:MyUrl('admin/customview/save')}}" method="POST" request-type="sync" request-value="FormBackSaveinfoEdit">
                <div class="am-padding-horizontal-sm">
                    <!-- 基础信息 -->
                    <div class="am-panel am-panel-default am-margin-top-sm">
                        <div class="am-panel-hd">
                            <h3 class="am-panel-title">{{:MyLang('form_base_data_title')}}</h3>
                        </div>
                        <div class="am-panel-bd am-padding-vertical-xs">
                            <div class="am-form-group am-form-file">
                                <label class="am-block">{{:MyLang('common_service.customview.form_logo_name')}}<a href="javascript:;" class="am-icon-question-circle am-margin-left-xs" data-am-popover="{content: '{{:MyLang('common_service.customview.form_logo_tips')}}', trigger: 'hover focus', theme: 'sm'}"></a></label>
                                <div class="am-form-file-upload-container">
                                    <ul class="plug-file-upload-view logo-images-view" data-form-name="logo" data-max-number="1" data-dialog-type="images">
                                        <li class="plug-file-upload-submit" data-view-tag="ul.logo-images-view">
                                            {{if empty($data['logo'])}}
                                                <i class="iconfont icon-add"></i>
                                            {{else /}}
                                                <input type="text" name="logo" value="{{$data.logo}}" />
                                                <img src="{{:AttachmentPathViewHandle($data.logo)}}" />
                                                <i class="iconfont icon-close"></i>
                                                <i class="iconfont icon-eye"></i>
                                            {{/if}}
                                        </li>
                                    </ul>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label>{{:MyLang('common_service.customview.form_item_name')}}<span class="am-form-group-label-tips-must">*</span></label>
                                <input type="text" name="name" placeholder="{{:MyLang('common_service.customview.form_item_name_message')}}" maxlength="60" data-validation-message="{{:MyLang('common_service.customview.form_item_name_message')}}" class="am-radius" {{if !empty($data['name'])}} value="{{$data.name}}"{{/if}} required />
                            </div>

                            <div class="am-cf">
                                <div class="am-u-sm-6 am-padding-horizontal-0">
                                    {{:ModuleInclude('lib/is_enable')}}
                                </div>
                                <div class="am-u-sm-6 am-padding-horizontal-0">
                                    {{:ModuleInclude('lib/is_full_screen')}}
                                </div>
                            </div>
                            <div class="am-cf">
                                <div class="am-u-sm-6 am-padding-horizontal-0">
                                    {{:ModuleInclude('lib/is_header')}}
                                </div>
                                <div class="am-u-sm-6 am-padding-horizontal-0">
                                    {{:ModuleInclude('lib/is_footer')}}
                                </div>
                            </div>

                            <textarea name="html_content" id="html_content" class="am-hide">{{if !empty($data['html_content'])}}{{$data.html_content}}{{/if}}</textarea>
                            <textarea name="css_content" id="css_content" class="am-hide">{{if !empty($data['css_content'])}}{{$data.css_content}}{{/if}}</textarea>
                            <textarea name="js_content" id="js_content" class="am-hide">{{if !empty($data['js_content'])}}{{$data.js_content}}{{/if}}</textarea>
                        </div>
                    </div>
                    
                    <!-- SEO -->
                    <div class="am-panel am-panel-default am-radius">
                        <div class="am-panel-hd">
                            <h3 class="am-panel-title">{{:MyLang('form_seo_data_title')}}</h3>
                        </div>
                        <div class="am-panel-bd am-padding-vertical-xs">
                            {{:ModuleInclude('lib/seo')}}
                        </div>
                    </div>
                </div>

                <!-- 操作 -->
                <div class="am-form-popup-submit">
                    <input type="hidden" name="id" value="{{if !empty($data['id'])}}{{$data.id}}{{/if}}" />
                    <button type="button" class="am-btn am-btn-warning am-radius am-btn-xs am-margin-right-lg" data-am-modal-close>
                        <i class="am-icon-paint-brush"></i>
                        <span>{{:MyLang('cancel_title')}}</span>
                    </button>
                    <button type="submit" class="am-btn am-btn-primary am-radius am-btn-xs btn-loading-example" data-am-loading="{spinner: 'circle-o-notch', loadingText:'{{:MyLang('confirm_title')}}'}">
                        <i class="am-icon-check"></i>
                        <span>{{:MyLang('confirm_title')}}</span>
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>