Added the UserDataSpan Twig extension
This Twig extension can filter User entities, creating a HTML <span> element from them with the class userdata, which can later be converted to an AJAX tooltip with jquery.cluetip Signed-off-by: Gergely Polonkai <polesz@w00d5t0ck.info>
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
{% for request in group.members %}
|
||||
{% if not group.isMember(request.user) %}
|
||||
<tr>
|
||||
<td colspan="2">{{ request.user.displayName }}</td>
|
||||
<td colspan="2">{{ request.user|userdataspan }}</td>
|
||||
<td>
|
||||
<form method="post" action="{{ path('KekRozsakAdminBundle_groupJoinRequests') }}">
|
||||
<input type="hidden" name="user" value="{{ request.user.id }}" />
|
||||
|
@@ -19,7 +19,7 @@
|
||||
<tr>
|
||||
<td>{{ user.username }}</td>
|
||||
<td>{{ user.email }}</td>
|
||||
<td>{{ user.displayName }}</td>
|
||||
<td>{{ user|userdataspan }}</td>
|
||||
<td>{{ user.registeredAt|date('Y-m-d H:i') }}</td>
|
||||
<td>
|
||||
<form method="post" action="">
|
||||
|
Reference in New Issue
Block a user