Changeset 2abe1dc


Ignore:
Timestamp:
Aug 11, 2011, 2:05:40 AM (14 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage, test-hooks
Children:
f0a4fc4
Parents:
c47b2e4
git-author:
Alex Dehnert <adehnert@…> (08/11/11 02:05:40)
git-committer:
Alex Dehnert <adehnert@…> (08/11/11 02:05:40)
Message:

Clarify officer changing view a bit

Location:
asadb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • asadb/groups/models.py

    r384677e r2abe1dc  
    7575    grant_user = models.ForeignKey(User, null=True, blank=True, )
    7676
     77    def max_count_str(self, ):
     78        if self.max_count == self.UNLIMITED:
     79            return "unlimited"
     80        else:
     81            return str(self.max_count)
     82
    7783    def __str__(self, ):
    7884        return self.display_name
  • asadb/template/groups/group_change_officers.html

    r8629211 r2abe1dc  
    55
    66<h1>{{group.name}}: Change people</h1>
     7
     8<p>Please adjust your signatories below. You can add up to {{max_new}} new people at a time at the bottom. If you need to add more than that, just break it up into a couple of submissions.</p>
     9
     10<p>The following roles are available:</p>
     11
     12<table class='pretty-table'>
     13<tr>
     14    <th>Role</th>
     15    <th>Description</th>
     16    <th>Maximum allowed</th>
     17    <th>Requires student?</th>
     18</tr>
     19{% for role in roles %}
     20<tr>
     21    <th>{{role.display_name}}</th>
     22    <td>{{role.description}}</td>
     23    <td>{{role.max_count_str}}</td>
     24    <td>{% if role.require_student %}Yes{%else%}No{%endif%}</td>
     25</tr>
     26{% endfor %}
     27</table>
    728
    829{% if msgs %}
     
    3051<p>Untouched were {{kept}} filled people/role combinations and {{kept_not}} unfilled combinations.</p>
    3152{% endif %}
     53
     54<p>Add or update people:</p>
    3255
    3356<form enctype="multipart/form-data" method="post" action="">
Note: See TracChangeset for help on using the changeset viewer.