Ignore:
Timestamp:
Jan 29, 2013, 8:15:17 PM (13 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage
Children:
1484698
Parents:
e2ceffa
git-author:
Alex Dehnert <adehnert@…> (01/29/13 20:14:13)
git-committer:
Alex Dehnert <adehnert@…> (01/29/13 20:15:17)
Message:

Describe the lock types and list on space summary

  • Create a page that displays the list of lock types, their descriptions, whether the DB handles them, etc.
  • List the lock type next to each office on the space assignments page
  • Link the lock types list from the homepage and the space assignments page
File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/space/views.py

    r67dd640 rf6982d4  
    112112        'locker_num',
    113113        'group__name',
    114     ).select_related('space', 'group')
     114    ).select_related('space', 'space__lock_type', 'group')
    115115    office_assignments = assignments.filter(locker_num='')
    116116
     
    130130    }
    131131    return render_to_response('space/summary.html', context, context_instance=RequestContext(request), )
     132
     133def lock_types(request, ):
     134    lock_types = space.models.LockType.objects.order_by('name')
     135    context = {
     136        'lock_types': lock_types,
     137        'pagename': 'groups',
     138    }
     139    return render_to_response('space/lock_types.html', context, context_instance=RequestContext(request), )
Note: See TracChangeset for help on using the changeset viewer.