{% extends 'TopxiaAdminBundle:System:layout.html.twig' %}

{% block title %}虚拟币设置 - {{ parent() }}{% endblock %}

{% set menu = 'coin' %}
{% set submenu = 'records' %}

 
{% block main %}
    {% include 'TopxiaAdminBundle:Coin:coin-ul.html.twig' %}

    <div class="page-header"><h1>虚拟币记录</h1></div>

    <form id="coin-orders-search-form" class="form-inline well well-sm" action="" method="get" novalidate>
      
        <div class="form-group">
            <select class="form-control" name="keywordType">
          {{ select_options(dict('coinRecordType'), app.request.query.get('keywordType'), '--选择类型--') }}
        </select>
        </div>

        <div class="form-group">
            <input type="text" id="keyword" name="keyword" class="form-control" value="{{ app.request.query.get('keyword') }}" placeholder="关键词">
        </div>

      <button class="btn btn-primary">搜索</button>
    </form>
  

    <div class="table-responsive">
      <table class="table table-striped">
        <tr>
          <th>名称</th>
{#           <th>流水号</th> #}
          <th>用户</th>
          <th>成交时间</th>
          {# <th>收支</th> #}
        </tr>

       {% for cash in cashes %}
       <tr>
            <td>{{cash.name}}<br>
                <span class="text-muted text-sm">订单号：{{cash.orderSn}}</span></td>
            {# <td>{{cash.sn}}</td> #}
            <td>   <a target="_blank" href="{{ path('user_show', {id:cash.userId}) }}">
            {{users[cash.userId].nickname}}</a></td>
            <td>{{cash.createdTime|date('Y-m-d H:i:s')}}</td>
            {# <td>{% if cash.type =="outflow" %}-{% endif %}{{cash.amount|score_text}}</td> #}
       </tr>
       {% endfor %}
      </table>
    </div>
 {{ web_macro.paginator(paginator) }}

{% endblock %}