From d789925c107c5fb9af22c0ee7d6a641aecf28f4a Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Sun, 4 Dec 2011 16:04:20 +0000 Subject: [PATCH] groups update for new styling and fixes --- .../templates/groups/create_request.html | 14 +++-- app/groups/templates/groups/group_admin.html | 62 ++++++++++++------- 2 files changed, 48 insertions(+), 28 deletions(-) diff --git a/app/groups/templates/groups/create_request.html b/app/groups/templates/groups/create_request.html index 51b3a28..75ed1f0 100644 --- a/app/groups/templates/groups/create_request.html +++ b/app/groups/templates/groups/create_request.html @@ -3,13 +3,17 @@ {% block title %}Create a Membership Request{% endblock %} {% block content %} + +

Please fill in a reason why you like to be a member of this group and any supporting evidence as requested by the group adminship

-{% csrf_token %} - -{{ form.as_table }} -
- + + {% include "formtools/formfield.html" with field=form.reason class="xxlarge" %} + {% csrf_token %} + +
{% endblock %} diff --git a/app/groups/templates/groups/group_admin.html b/app/groups/templates/groups/group_admin.html index c3648a5..c456aa5 100644 --- a/app/groups/templates/groups/group_admin.html +++ b/app/groups/templates/groups/group_admin.html @@ -2,45 +2,61 @@ {% block content %} -

{{ group.name }}

+

Members

{% if group.user_set.all %} - - -{% for user, chars, status in member_list %} - - - - - -{% endfor %} +
Member UsernameCharacterStatusActions
{{ user.username }}{{ chars }}{{ status }}Kick Member - {% if request.user.is_superuser %} Toggle Admin{% endif %}
+ + + + + {% for user, chars, status in member_list %} + + + + + + {% endfor %} +
Member UsernameCharacterStatusActions
{{ user.username }}{{ chars }}{{ status }}Kick Member + {% if request.user.is_superuser %} Toggle Admin{% endif %}
{% else %} -This group has no members +

This group has no members

{% endif %}

Membership Requests

{% if requests %} - - -{% for req in requests %} - - - - - - - +
UsernameCharacterReasonStatusCreated DateActions
{{ req.user }}{{ req.character }}{{ req.reason }}{{ req.get_status_description }}{{ req.created_date }}Accept  - Reject
+ + + + + {% for req in requests %} + + + + + + + + {% endfor %}
UsernameCharacterReasonStatusCreated DateActions
{{ req.user }}{{ req.character }}{{ req.reason }}{{ req.get_status_description }}{{ req.created_date }}Accept  + Reject
{% else %} This group has no outstanding requests {% endif %} + + {% endblock %}