<!-- 继承公共的 form -->
{{extend name="../../../module/view/form_table/form" /}}

<!-- 表单顶部操作栏 -->
{{block name="form_operate_top"}}
    <!-- 新增 -->
    {{if AdminIsPower('forminput', 'saveinfo')}}
        <a href="{{:MyUrl('admin/forminput/saveinfo')}}" class="am-btn am-btn-primary am-radius am-btn-xs" target="_blank">
            <i class="iconfont icon-add am-show-sm-only"></i>
            <span>{{:MyLang('add_title')}}</span>
        </a>
    {{/if}}
    <!-- 导入 -->
    {{if AdminIsPower('forminput', 'upload')}}
        <button type="button" class="am-btn am-btn-default-plain am-btn-xs am-radius submit-popup" data-url="{{:MyUrl('admin/forminput/index', ['view_type'=>'upload'])}}" data-title="{{:MyLang('import_title')}}" data-full-max="1" data-full-max-size="xl">
            <i class="iconfont icon-upload am-show-sm-only"></i>
            <span>{{:MyLang('import_title')}}</span>
        </button>
    {{/if}}
    <!-- 父级内容 -->
    {__block__}
    {{if $is_system_show_base eq 1 and AdminIsPower('packageinstall', 'index') and !empty($store_forminput_url)}}
        <a class="am-margin-left-sm" href="{{$store_forminput_url}}" target="_blank">
            <i class="iconfont icon-download-b-line"></i>
            <span class="am-hide-sm-only am-margin-left-xs">{{:MyLang('forminput.nav_store_forminput_name')}}</span>
        </a>
    {{/if}}
{{/block}}