Changeset 2abe1dc
- Timestamp:
- Aug 11, 2011, 2:05:40 AM (14 years ago)
- 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)
- Location:
- asadb
- Files:
-
- 2 edited
-
groups/models.py (modified) (1 diff)
-
template/groups/group_change_officers.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
asadb/groups/models.py
r384677e r2abe1dc 75 75 grant_user = models.ForeignKey(User, null=True, blank=True, ) 76 76 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 77 83 def __str__(self, ): 78 84 return self.display_name -
asadb/template/groups/group_change_officers.html
r8629211 r2abe1dc 5 5 6 6 <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> 7 28 8 29 {% if msgs %} … … 30 51 <p>Untouched were {{kept}} filled people/role combinations and {{kept_not}} unfilled combinations.</p> 31 52 {% endif %} 53 54 <p>Add or update people:</p> 32 55 33 56 <form enctype="multipart/form-data" method="post" action="">
Note: See TracChangeset
for help on using the changeset viewer.