{{:ModuleInclude('public/header')}}

<!-- right content start  -->
<div class="content-right">
    <div class="content">
        <!-- nav start -->
        {{if !empty($siteset_nav_list) and is_array($siteset_nav_list)}}
            {{:ModuleInclude('public/nav_switch_tabs', [
                'nav_data'  => $siteset_nav_list,
                'view_type' => $view_type,
                'nav_type'  => $nav_type,
                'url'       => 'admin/site/index'
            ])}}
        {{/if}}
        <!-- nav end -->

        <!-- form start -->
        <form class="am-form form-validation am-form-popup-sticky" action="{{:MyUrl('admin/site/save')}}" method="POST" request-type="ajax-view" request-value="{{:MyUrl('admin/site/index', ['nav_type'=>$nav_type, 'view_type'=>$view_type])}}" enctype="multipart/form-data">
            <div class="nav-content">
                <div class="am-form-group">
                    <label>{{$data.common_goods_sales_price_status.name}}<span class="am-form-group-label-tips">{{$data.common_goods_sales_price_status.describe}}</span></label>
                    <div class="am-radio-group">
                        {{foreach $common_is_text_list as $v}}
                            <label class="am-radio-inline">
                                <input type="radio" value="{{$v.id}}" name="{{$data.common_goods_sales_price_status.only_tag}}" data-validation-message="{{$data.common_goods_sales_price_status.error_tips}}" required {{if isset($data['common_goods_sales_price_status']['value']) and $data['common_goods_sales_price_status']['value'] eq $v['id']}}checked{{/if}} data-am-ucheck /> {{$v.name}}
                            </label>
                        {{/foreach}}
                    </div>
                </div>

                <div class="am-form-group">
                    <label>{{$data.common_goods_original_price_status.name}}<span class="am-form-group-label-tips">{{$data.common_goods_original_price_status.describe}}</span></label>
                    <div class="am-radio-group">
                        {{foreach $common_is_text_list as $v}}
                            <label class="am-radio-inline">
                                <input type="radio" value="{{$v.id}}" name="{{$data.common_goods_original_price_status.only_tag}}" data-validation-message="{{$data.common_goods_original_price_status.error_tips}}" required {{if isset($data['common_goods_original_price_status']['value']) and $data['common_goods_original_price_status']['value'] eq $v['id']}}checked{{/if}} data-am-ucheck /> {{$v.name}}
                            </label>
                        {{/foreach}}
                    </div>
                </div>

                <div class="am-form-group">
                    <label>{{$data.common_goods_sales_price_unit_status.name}}<span class="am-form-group-label-tips">{{$data.common_goods_sales_price_unit_status.describe}}</span></label>
                    <div class="am-radio-group">
                        {{foreach $common_is_text_list as $v}}
                            <label class="am-radio-inline">
                                <input type="radio" value="{{$v.id}}" name="{{$data.common_goods_sales_price_unit_status.only_tag}}" data-validation-message="{{$data.common_goods_sales_price_unit_status.error_tips}}" required {{if isset($data['common_goods_sales_price_unit_status']['value']) and $data['common_goods_sales_price_unit_status']['value'] eq $v['id']}}checked{{/if}} data-am-ucheck /> {{$v.name}}
                            </label>
                        {{/foreach}}
                    </div>
                </div>

                <div class="am-form-group">
                    <label>{{$data.common_goods_original_price_unit_status.name}}<span class="am-form-group-label-tips">{{$data.common_goods_original_price_unit_status.describe}}</span></label>
                    <div class="am-radio-group">
                        {{foreach $common_is_text_list as $v}}
                            <label class="am-radio-inline">
                                <input type="radio" value="{{$v.id}}" name="{{$data.common_goods_original_price_unit_status.only_tag}}" data-validation-message="{{$data.common_goods_original_price_unit_status.error_tips}}" required {{if isset($data['common_goods_original_price_unit_status']['value']) and $data['common_goods_original_price_unit_status']['value'] eq $v['id']}}checked{{/if}} data-am-ucheck /> {{$v.name}}
                            </label>
                        {{/foreach}}
                    </div>
                </div>

                <div class="am-form-group">
                    <label>{{$data.common_goods_sales_number_status.name}}<span class="am-form-group-label-tips">{{$data.common_goods_sales_number_status.describe}}</span></label>
                    <div class="am-radio-group">
                        {{foreach $common_is_text_list as $v}}
                            <label class="am-radio-inline">
                                <input type="radio" value="{{$v.id}}" name="{{$data.common_goods_sales_number_status.only_tag}}" data-validation-message="{{$data.common_goods_sales_number_status.error_tips}}" required {{if isset($data['common_goods_sales_number_status']['value']) and $data['common_goods_sales_number_status']['value'] eq $v['id']}}checked{{/if}} data-am-ucheck /> {{$v.name}}
                            </label>
                        {{/foreach}}
                    </div>
                </div>

                <div class="am-form-group">
                    <label>{{$data.common_goods_inventory_status.name}}<span class="am-form-group-label-tips">{{$data.common_goods_inventory_status.describe}}</span></label>
                    <div class="am-radio-group">
                        {{foreach $common_is_text_list as $v}}
                            <label class="am-radio-inline">
                                <input type="radio" value="{{$v.id}}" name="{{$data.common_goods_inventory_status.only_tag}}" data-validation-message="{{$data.common_goods_inventory_status.error_tips}}" required {{if isset($data['common_goods_inventory_status']['value']) and $data['common_goods_inventory_status']['value'] eq $v['id']}}checked{{/if}} data-am-ucheck /> {{$v.name}}
                            </label>
                        {{/foreach}}
                    </div>
                </div>

                <div class="am-form-group">
                    <label>{{$data.common_is_goods_detail_content_show_photo.name}}<span class="am-form-group-label-tips">{{$data.common_is_goods_detail_content_show_photo.describe}}</span></label>
                    <div class="am-radio-group">
                        {{foreach $common_is_text_list as $v}}
                            <label class="am-radio-inline">
                                <input type="radio" value="{{$v.id}}" name="{{$data.common_is_goods_detail_content_show_photo.only_tag}}" data-validation-message="{{$data.common_is_goods_detail_content_show_photo.error_tips}}" required {{if isset($data['common_is_goods_detail_content_show_photo']['value']) and $data['common_is_goods_detail_content_show_photo']['value'] eq $v['id']}}checked{{/if}} data-am-ucheck /> {{$v.name}}
                            </label>
                        {{/foreach}}
                    </div>
                </div>

                <div class="am-form-group">
                    <label>{{$data.common_is_goods_detail_show_comments.name}}<span class="am-form-group-label-tips">{{$data.common_is_goods_detail_show_comments.describe}}</span></label>
                    <div class="am-radio-group">
                        {{foreach $common_is_text_list as $v}}
                            <label class="am-radio-inline">
                                <input type="radio" value="{{$v.id}}" name="{{$data.common_is_goods_detail_show_comments.only_tag}}" data-validation-message="{{$data.common_is_goods_detail_show_comments.error_tips}}" required {{if isset($data['common_is_goods_detail_show_comments']['value']) and $data['common_is_goods_detail_show_comments']['value'] eq $v['id']}}checked{{/if}} data-am-ucheck /> {{$v.name}}
                            </label>
                        {{/foreach}}
                    </div>
                </div>

                <div class="am-form-group">
                    <label>{{$data.common_is_goods_detail_show_guess_you_like.name}}<span class="am-form-group-label-tips">{{$data.common_is_goods_detail_show_guess_you_like.describe}}</span></label>
                    <div class="am-radio-group">
                        {{foreach $common_is_text_list as $v}}
                            <label class="am-radio-inline">
                                <input type="radio" value="{{$v.id}}" name="{{$data.common_is_goods_detail_show_guess_you_like.only_tag}}" data-validation-message="{{$data.common_is_goods_detail_show_guess_you_like.error_tips}}" required {{if isset($data['common_is_goods_detail_show_guess_you_like']['value']) and $data['common_is_goods_detail_show_guess_you_like']['value'] eq $v['id']}}checked{{/if}} data-am-ucheck /> {{$v.name}}
                            </label>
                        {{/foreach}}
                    </div>
                </div>

                <div class="am-form-group">
                    <label>{{$data.common_is_goods_detail_show_seeing_you.name}}<span class="am-form-group-label-tips">{{$data.common_is_goods_detail_show_seeing_you.describe}}</span></label>
                    <div class="am-radio-group">
                        {{foreach $common_is_text_list as $v}}
                            <label class="am-radio-inline">
                                <input type="radio" value="{{$v.id}}" name="{{$data.common_is_goods_detail_show_seeing_you.only_tag}}" data-validation-message="{{$data.common_is_goods_detail_show_seeing_you.error_tips}}" required {{if isset($data['common_is_goods_detail_show_seeing_you']['value']) and $data['common_is_goods_detail_show_seeing_you']['value'] eq $v['id']}}checked{{/if}} data-am-ucheck /> {{$v.name}}
                            </label>
                        {{/foreach}}
                    </div>
                </div>

                <div class="am-form-group">
                    <label>{{$data.common_is_goods_detail_show_left_more.name}}<span class="am-form-group-label-tips">{{$data.common_is_goods_detail_show_left_more.describe}}</span></label>
                    <div class="am-radio-group">
                        {{foreach $common_is_text_list as $v}}
                            <label class="am-radio-inline">
                                <input type="radio" value="{{$v.id}}" name="{{$data.common_is_goods_detail_show_left_more.only_tag}}" data-validation-message="{{$data.common_is_goods_detail_show_left_more.error_tips}}" required {{if isset($data['common_is_goods_detail_show_left_more']['value']) and $data['common_is_goods_detail_show_left_more']['value'] eq $v['id']}}checked{{/if}} data-am-ucheck /> {{$v.name}}
                            </label>
                        {{/foreach}}
                    </div>
                </div>

                <div class="am-form-group">
                    <label>{{$data.common_goods_cover_size_type.name}}<span class="am-form-group-label-tips">{{$data.common_goods_cover_size_type.describe}}</span></label>
                    <div class="am-radio-group">
                        {{foreach $common_is_text_list as $v}}
                            <label class="am-radio-inline">
                                <input type="radio" value="{{$v.id}}" name="{{$data.common_goods_cover_size_type.only_tag}}" data-validation-message="{{$data.common_goods_cover_size_type.error_tips}}" required {{if isset($data['common_goods_cover_size_type']['value']) and $data['common_goods_cover_size_type']['value'] eq $v['id']}}checked{{/if}} data-am-ucheck /> {{$v.name}}
                            </label>
                        {{/foreach}}
                    </div>
                </div>

                <div class="am-form-group">
                    <label>{{$data.common_goods_close_buy_button.name}}<span class="am-form-group-label-tips">{{$data.common_goods_close_buy_button.describe}}</span></label>
                    <div class="am-checkbox-group">
                        <label class="am-checkbox-inline">
                            <input type="checkbox" value="buy" name="{{$data.common_goods_close_buy_button.only_tag}}" data-validation-message="{{$data.common_goods_close_buy_button.error_tips}}" {{if !empty($data['common_goods_close_buy_button']['value']) and is_array($data['common_goods_close_buy_button']['value']) and in_array('buy', $data['common_goods_close_buy_button']['value'])}}checked{{/if}} data-am-ucheck /> {{:MyLang('buy_title')}}
                        </label>
                        <label class="am-checkbox-inline">
                            <input type="checkbox" value="cart" name="{{$data.common_goods_close_buy_button.only_tag}}" data-validation-message="{{$data.common_goods_close_buy_button.error_tips}}" {{if !empty($data['common_goods_close_buy_button']['value']) and is_array($data['common_goods_close_buy_button']['value']) and in_array('cart', $data['common_goods_close_buy_button']['value'])}}checked{{/if}} data-am-ucheck /> {{:MyLang('cart_title')}}
                        </label>
                    </div>
                </div>

                <div class="am-form-group">
                    <label>{{$data.common_goods_detail_base_fields_show.name}}</label>
                    <div class="am-checkbox-group">
                        {{foreach $common_goods_base_fields_list as $k=>$v}}
                            <label class="am-checkbox-inline">
                                <input type="checkbox" name="{{$data.common_goods_detail_base_fields_show.only_tag}}" value="{{$k}}" {{if isset($data['common_goods_detail_base_fields_show']['value']) and in_array($k, $data['common_goods_detail_base_fields_show']['value'])}}checked{{/if}} data-validation-message="{{$data.common_goods_detail_base_fields_show.error_tips}}" data-am-ucheck> {{$v}}
                            </label>
                        {{/foreach}}
                    </div>
                </div>

                <div class="am-form-group">
                    <label>{{$data.common_show_goods_category_level.name}}<span class="am-form-group-label-tips">{{$data.common_show_goods_category_level.describe}}</span></label>
                    <div class="am-radio-group level-type">
                        {{foreach $common_show_goods_category_level_list as $v}}
                            <label class="am-radio-inline">
                                <input type="radio" value="{{$v.value}}" name="{{$data.common_show_goods_category_level.only_tag}}" data-validation-message="{{$data.common_show_goods_category_level.error_tips}}" {{if isset($data['common_show_goods_category_level']['value']) and $data['common_show_goods_category_level']['value'] eq $v['value']}}checked{{/if}} data-am-ucheck required>{{$v.name}}
                            </label>
                        {{/foreach}}
                    </div>
                    <div class="level-type-content am-margin-top">
                        {{foreach $common_show_goods_category_level_list as $v}}
                            <div class="item {{if isset($data['common_show_goods_category_level']['value']) and $data['common_show_goods_category_level']['value'] eq $v['value']}}am-active{{/if}}" data-key="{{$v.value}}">
                                <div class="am-flex am-flex-warp">
                                    <div class="am-flex am-flex-col am-gap-1">
                                        <img class="am-radius-lg" src="{{:StaticAttachmentUrl('site/siteset/website/web_level_'.$v['value'].'.png')}}" />
                                        <p>{{:MyLang('web_title')}}</p>
                                    </div>
                                    <div class="am-flex am-flex-col am-gap-1">
                                        <img class="am-radius-lg" src="{{:StaticAttachmentUrl('site/siteset/website/app_level_'.$v['value'].'.png')}}" />
                                        <p>{{:MyLang('app_title')}}</p>
                                    </div>
                                </div>
                            </div>
                        {{/foreach}}
                    </div>
                    {{if is_array(MyLang('site.goods_tips_list'))}}
                        <div class="am-tips-card">
                            <p>{{:implode('</p><p>', MyLang('site.goods_tips_list'))}}</p>
                        </div>
                    {{/if}}
                </div>
            </div>
            <div class="am-form-popup-submit">
                <input type="hidden" name="nav_type" value="{{$nav_type}}" />
                <input type="hidden" name="view_type" value="{{$view_type}}" />
                <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('save_title')}}'}">
                    <i class="am-icon-save"></i>
                    <span>{{:MyLang('save_title')}}</span>
                </button>
            </div>
        </form>
        <!-- form end -->
    </div>
</div>
<!-- right content end  -->

<!-- footer start -->
{{:ModuleInclude('public/footer')}}