<!DOCTYPE html>
<html lang="zh">
<head>
    <@meta/>
	<title>支付应用管理</title>
    <#include "admin/common/include_hplus.ftl">
    <#include "admin/common/include_table.ftl">
	<script src="<@contextPath/>/templates/admin/business/pay_v3/js/list.js" type="text/javascript"></script>
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox ">
                    <div class="ibox-content">
                        <h3>${module.name}<input type="hidden" id="moduleId" value="${module.oid}"></h3>

                        <script type="text/html" id="tableRowToolbar">
                            <a class="btn btn-xs btn-white" data-event="view">查看</a>
                            <a class="btn btn-xs btn-primary" data-event="edit">编辑</a>
                        </script>

                        <form role="form" class="form-inline" onsubmit="return false">
                            <div class="form-group">
                                <select class="form-control" id="search_type">
                                    <option value="">支付方式</option>
                                    <option value="aliPayConfig">支付宝</option>
                                    <option value="wxPayConfig">微信</option>
                                </select>
                            </div>
                            <div class="form-group">
                                <input type="text" placeholder="应用ID" id="search_app_id" class="form-control">
                            </div>
                            <button class="btn btn-primary" type="button" onclick="AppPayApply.search()">搜索</button>
                        </form>
                        <div class="btn-group" id="tableEventsToolbar" role="group">
                            <button type="button" class="btn btn-outline btn-default" onclick="AppPayApply.add()">
                                <i class="fa fa-plus" aria-hidden="true"></i> 添加
                            </button>
                        </div>
                        <table id="tableEvents" data-mobile-responsive="true">
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 状态字段state模板 -->
    <script type="text/html" id="tpl_status">
        {{if status == 1}}
        <span class="label label-primary">启用</span>
        {{else}}
        <span class="label label-default">禁用</span>
        {{/if}}
    </script>

</body>
</html>
