{{include file="public/header" /}}

<!-- right content start  -->
<div class="content-right">
    <!-- second nav start -->
    {{include file="site/public/nav" /}}
    <!-- second nav end -->

    <div class="content">
        <!-- form start -->
        <form class="am-form form-validation view-save" action="{{:MyUrl('admin/site/save')}}" method="POST" request-type="ajax-url" request-value="{{:MyUrl('admin/site/index', ['nav_type'=>'attachment'])}}" enctype="multipart/form-data">
            <div class="am-form-group">
                <label>{{$data.home_max_limit_image.name}}<span class="am-form-group-label-tips">{{$data.home_max_limit_image.describe}}</span></label>
                <div class="am-input-group am-input-group-sm">
                    <input type="number" min="0" name="{{$data.home_max_limit_image.only_tag}}" placeholder="{{$data.home_max_limit_image.name}}" data-validation-message="{{$data.home_max_limit_image.error_tips}}" class="am-radius" {{if !empty($data)}}value="{{$data.home_max_limit_image.value}}"{{/if}} />
                    <span class="am-input-group-btn">
                        <button class="am-btn am-btn-default" type="button">B</button>
                  </span>
                </div>
            </div>
            <div class="am-form-group">
                <label>{{$data.home_max_limit_file.name}}<span class="am-form-group-label-tips">{{$data.home_max_limit_file.describe}}</span></label>
                <div class="am-input-group am-input-group-sm">
                    <input type="number" min="0" name="{{$data.home_max_limit_file.only_tag}}" placeholder="{{$data.home_max_limit_file.name}}" data-validation-message="{{$data.home_max_limit_file.error_tips}}" class="am-radius" {{if !empty($data)}}value="{{$data.home_max_limit_file.value}}"{{/if}} />
                    <span class="am-input-group-btn">
                        <button class="am-btn am-btn-default" type="button">B</button>
                  </span>
                </div>
            </div>
            <div class="am-form-group">
                <label>{{$data.home_max_limit_video.name}}<span class="am-form-group-label-tips">{{$data.home_max_limit_video.describe}}</span></label>
                <div class="am-input-group am-input-group-sm">
                    <input type="number" min="0" name="{{$data.home_max_limit_video.only_tag}}" placeholder="{{$data.home_max_limit_video.name}}" data-validation-message="{{$data.home_max_limit_video.error_tips}}" class="am-radius" {{if !empty($data)}}value="{{$data.home_max_limit_video.value}}"{{/if}} />
                    <span class="am-input-group-btn">
                        <button class="am-btn am-btn-default" type="button">B</button>
                  </span>
                </div>
            </div>

            <div class="am-form-group">
                <label>{{$data.is_upload_images_redraw.name}}<span class="am-form-group-label-tips">{{$data.is_upload_images_redraw.describe}}</span></label>
                <select name="{{$data.is_upload_images_redraw.only_tag}}" class="am-radius chosen-select" data-validation-message="{{$data.is_upload_images_redraw.error_tips}}" required>
                    {{foreach $common_is_text_list as $v}}
                        <option value="{{$v.id}}" {{if isset($data['is_upload_images_redraw']['value']) and $data['is_upload_images_redraw']['value'] eq $v['id']}}selected{{/if}}>{{$v.name}}</option>
                    {{/foreach}}
                </select>
                <div class="am-alert am-alert-warning" data-am-alert>
                    <button type="button" class="am-close">&times;</button>
                    <p>1. 默认否、建议开启上传图片重新绘制、防止木马病毒图片上传</p>
                    <p>2. 开启后gif动态图片将失效、由于重新绘制图片大小也会改变</p>
                </div>
            </div>
            
            <div class="am-form-group am-form-group-refreshing am-margin-top-lg am-padding-left-0">
                <input type="hidden" name="nav_type" value="{{$nav_type}}" />
                <button type="submit" class="am-btn am-btn-primary am-radius btn-loading-example am-btn-sm am-btn-block" data-am-loading="{loadingText:'处理中...'}">保存</button>
            </div>
        </form>
        <!-- form end -->
    </div>
</div>
<!-- right content end  -->
        
<!-- footer start -->
{{include file="public/footer" /}}
<!-- footer end -->