<!-- 操作栏 -->
{{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="安装进行中、确认操作吗？">
        <i class="am-icon-cubes"></i>
        <span>安装</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="am-icon-trash-o"></i>
            <span>删除</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>编辑</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="卸载后不可恢复、确认操作吗？">
        <i class="am-icon-remove"></i>
        <span>卸载</span>
    </button>
{{/if}}

{{if !empty($upgrade_info) and isset($upgrade_info[$module_data['payment']]) and $upgrade_info[$module_data['payment']]['version_new'] neq $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>更新</span>
    </button>
{{/if}}