Skip to content

Instantly share code, notes, and snippets.

@volgar1x
Created August 2, 2012 20:12
Show Gist options
  • Save volgar1x/3240245 to your computer and use it in GitHub Desktop.
Save volgar1x/3240245 to your computer and use it in GitHub Desktop.
{% extends "::base.html.twig" %}
{% block title %}
{{ 'pages.admin_index.title'|trans }}
{% endblock %}
{% block content %}
<table>
<thead>
<tr>
<th>{{ 'entity.user.id'|trans }}</th>
<th>{{ 'entity.user.pseudo'|trans }}</th>
<th>{{ 'entity.user.gmlvl'|trans }}</th>
<th>{{ 'entity.user.created_at'|trans }}</th>
<th>{{ 'entity.user.last_vote'|trans }}</th>
<th>{{ 'entity.user.nb_vote'|trans }}</th>
<th>{{ 'entity.user.spent_points'|trans }}</th>
<th>{{ 'update'|trans }}</th>
<th>{{ 'destroy'|trans }}</th>
</tr>
</thead>
<tbody>
{% for user in users %}
<tr>
<td>{{ user.id }}</td>
<td>{{ user.pseudo }}</td>
<td>{{ user.roles[0] }}</td>
<td>{{ user.createdAt|date }}</td>
<td>{{ user.lastVote is empty ? "jamais" : user.lastVote|date }}</td>
<td>{{ user.nbVote }}</td>
<td>{{ user.spentPoints }}</td>
<td><a href="{{ path('origine_user_admin_update', {'id': user.id}) }}">~</a></td>
<td><a href="{{ path('origine_user_admin_destroy', {'id': user.id}) }}">X</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment