<!-- 基础数据编辑 -->
<div class="am-popup am-radius" id="popup-saveinfo">
    <div class="am-popup-inner">
        <div class="am-popup-hd">
            <h4 class="am-popup-title">{{:MyLang('form_base_data_title')}}</h4>
            <span data-am-modal-close class="am-close">&times;</span>
        </div>
        <div class="am-popup-bd">
            <form class="am-form form-validation am-form-full-screen am-form-popup-fixed" request-type="sync" request-value="FormBackSaveinfoEdit">
                {{:ModuleInclude('public/nav_switch_btn', [
                    'nav_data'  => [
                        [
                            'name'  => MyLang('form_base_data_title'),
                            'key'   => 'base',
                        ],
                        [
                            'name'  => MyLang('form_seo_data_title'),
                            'key'   => 'seo',
                        ]
                    ]
                ])}}
                <div class="nav-content">
                    <!-- 基础信息 -->
                    <div data-key="base" class="item am-active">
                        <div class="am-form-group row">
                            <label>{{:MyLang('common_service.design.form_item_name')}}<span class="am-form-group-label-tips-must">*</span></label>
                            <input type="text" name="name" placeholder="{{:MyLang('common_service.design.form_item_name_message')}}" maxlength="60" data-validation-message="{{:MyLang('common_service.design.form_item_name_message')}}" class="am-radius" {{if !empty($data['name'])}} value="{{$data.name}}"{{/if}} required />
                        </div>

                        <div class="am-form-group am-form-file row">
                            <label class="am-block">{{:MyLang('common_service.design.form_logo_name')}}<a href="javascript:;" class="am-icon-question-circle am-margin-left-xs" data-am-popover="{content: '{{:MyLang('common_service.design.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>
                        {{:ModuleInclude('lib/is_enable', ['is_row'=>1])}}
                        {{:ModuleInclude('lib/is_header', ['is_row'=>1])}}
                        {{:ModuleInclude('lib/is_footer', ['is_row'=>1])}}
                    </div>
                    
                    <!-- SEO -->
                    <div data-key="seo" class="item">
                        {{:ModuleInclude('lib/seo', ['is_row'=>1])}}
                    </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-btn-xs am-radius" 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-btn-xs am-radius btn-loading-example" data-am-loading="{loadingText:'{{:MyLang('processing_tips')}}'}">
                        <i class="am-icon-check"></i>
                        <span>{{:MyLang('confirm_title')}}</span>
                    </button> 
                </div>
            </form>
        </div>
    </div>
</div>