{% extends 'admin-v2/layout.html.twig' %}

{% set menu = 'admin_v2_operation_wechat_notification_record' %}

{% block main %}
  <div class="well" style="text-align:left;">
    {{ 'wechat.notification.tooltip_hint'|trans }}
  </div>
<table class="table table-striped table-hover" id="notification-table" style="word-break:break-all;">
  <thead>
    <tr>
      <th width="40%">{{ 'wechat.notification.record_content'|trans }}</th>
      <th width="20%">{{ 'wechat.notification.record_send_time'|trans }}</th>
      <th width="10%">{{ 'wechat.notification.record_send_status'|trans }}</th>
      <th width="20%">
        {{ 'wechat.notification.record_number'|trans }}
        <a class="gray-primary" href="javascript:;" data-url="" data-toggle="tooltip" data-placement="top" title="{{ 'wechat.notification.record_number_tips'|trans }}"><i class="glyphicon glyphicon-question-sign text-muted"></i></a>
      </th>
      <th width="10%">{{'operation'|trans}}</th>
    </tr>
  </thead>
  <tbody>
  {% for notification in notifications %}
    {% set event = notificationEvents[notification.eventId] %}
    {% include 'admin-v2/operating/wechat-notification/notification-tr.html.twig' with {event: event} %}
  {% else %}
    <tr>
      <td colspan="20">
        <div class="empty">{{'wechat.notification.record.empty'|trans}}</div>
      </td>
    </tr>
  {% endfor %}
  </tbody>
</table>
{{ admin_macro.paginator(paginator) }}
{% endblock %}
