<!-- 操作栏 -->
{{if $module_data['is_install'] eq 0}}
    <button type="button" class="am-btn am-btn-success am-btn-xs am-radius am-btn-block submit-ajax" data-url="{{:MyUrl('admin/payment/install')}}" data-id="{{$module_data.payment}}" data-view="reload" data-msg="{{:MyLang('install_confirm_tips')}}">
        <i class="am-icon-cubes"></i>
        <span>{{:MyLang('install_title')}}</span>
    </button>

    {{if !in_array($module_data['payment'], $cannot_deleted_list)}}
        <button type="button" class="am-btn am-btn-danger am-btn-xs am-radius am-btn-block submit-delete" data-url="{{:MyUrl('admin/payment/delete')}}" data-id="{{$module_data.payment}}">
            <i class="iconfont icon-delete"></i>
            <span>{{:MyLang('delete_title')}}</span>
        </button>
    {{/if}}
{{else /}}
    <a class="am-btn am-btn-secondary am-btn-xs am-radius am-btn-block" href="{{:MyUrl('admin/payment/saveinfo', array('id'=>$module_data['id']))}}">
        <i class="am-icon-edit"></i>
        <span>{{:MyLang('edit_title')}}</span>
    </a>

    <button type="button" class="am-btn am-btn-warning am-btn-xs am-radius am-btn-block submit-ajax" data-url="{{:MyUrl('admin/payment/uninstall')}}" data-id="{{$module_data.payment}}" data-view="reload" data-msg="{{:MyLang('uninstall_confirm_tips')}}">
        <i class="am-icon-remove"></i>
        <span>{{:MyLang('uninstall_title')}}</span>
    </button>
{{/if}}

{{if !empty($upgrade_info) and isset($upgrade_info[$module_data['payment']]) and isset($upgrade_info[$module_data['payment']]['version_new']) and version_compare($upgrade_info[$module_data['payment']]['version_new'], $module_data['version'], '>')}}
    <button type="button" class="am-btn am-btn-danger am-btn-xs am-radius am-btn-block package-upgrade-event" data-type="payment" data-name="{{$module_data.name}}" data-value="{{$module_data.payment}}" data-json="{{:urlencode(json_encode($upgrade_info[$module_data['payment']]))}}">
        <i class="am-icon-refresh"></i>
        <span>{{:MyLang('update_title')}}</span>
    </button>
{{/if}}