list.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {% extends "admin/admin/list.html" %}
  2. {% block action_body %}
  3. {% if monitor.users_inactive|int > 0 %}
  4. <div class="alert alert-info alert-form">
  5. <div class="alert-icon"><span><i class="icon-info-sign icon-white"></i></span></div>
  6. <p><a href="{{ url('admin_users_inactive') }}">{%- trans count=monitor.users_inactive|int, total=monitor.users_inactive|int|intcomma -%}
  7. There is one inactive user.
  8. {%- pluralize -%}
  9. There are {{ total }} inactive users.
  10. {%- endtrans -%}</a></p>
  11. </div>
  12. {% endif %}
  13. {{ super() }}
  14. {% endblock %}
  15. {% block table_head scoped %}
  16. <th>&nbsp;</th>
  17. {{ super() }}
  18. {% endblock %}
  19. {% block table_row scoped %}
  20. <td class="avatar-small"><img src="{{ item.get_avatar(28) }}" class="avatar-small" alt=""></td>
  21. <td class="lead-cell">
  22. <strong><a href="{{ url('user', username=item.username_slug, user=item.pk) }}">{{ item.username }}</a></strong> <span class="muted">{{ item.email }}</span>{% if item.activation > 0 %} <span class="label tooltip-top" title="{% if item.activation == 1 -%}
  23. {% trans %}This user has not yet validated his e-mail address.{% endtrans %}
  24. {%- else -%}
  25. {% trans %}This user is awaiting admin approval.{% endtrans %}
  26. {%- endif %}">{% trans %}Inactive{% endtrans %}</span>{% endif %}
  27. </td>
  28. <td>
  29. {{ item.join_date|date("DATETIME_FORMAT") }}
  30. </td>
  31. {% endblock%}
  32. {% block search_form %}
  33. {{ form_theme.row(search_form.username, attrs={'class': 'span3', 'placeholder': _("Username contains...")}) }}
  34. {{ form_theme.row(search_form.email, attrs={'class': 'span3', 'placeholder': _("E-mail address contains...")}) }}
  35. {{ form_theme.row(search_form.activation, attrs={'class': 'span3'}) }}
  36. {{ form_theme.row(search_form.rank, attrs={'class': 'span3'}) }}
  37. {{ form_theme.row(search_form.role, attrs={'class': 'span3'}) }}
  38. {% endblock %}