%inherit file="/base/index.html" />
<%namespace file="/base/collectionViews.html" name="collectionViews" import="*"/>
<%namespace file="/base/javascriptDefs.html" name="javascriptDefs" import="*"/>
<%def name="heading()">
% if hasattr(c, 'browsing'):
Collections (${c.collectionCount})
% elif c.paginator.item_count == 1:
Collection Results: ${c.paginator.item_count} match
% else:
Collection Results: ${c.paginator.item_count} matches
% endif
%def>
% if hasattr(c, 'browsing'):
Collections are documents that can represent stories and records of
elicitations, among other things. In the body of a Collection, you can refer
to a Form and thereby embed a representation of it.
% endif
% if hasattr(c, 'paginator') and len(c.paginator):
% endif
% if not hasattr(c, 'browsing'):
${javascriptDefs.toggleLabelsJavaScript('fileTableRowLabel')}
-
% endif
% if hasattr(c, 'browsing'):
% for cType in app_globals.collectionTypes:
% for collection in c.collections[cType]:
+
|
${collection.title}
description | ${collection.description} |
type | ${collection.type} |
ID | ${collection.id} |
% if collection.speaker:
speaker |
${collection.speaker.firstName} ${collection.speaker.lastName} |
% endif
% if collection.elicitor:
elicitor |
${collection.elicitor.firstName} ${collection.elicitor.lastName} |
% endif
enterer |
${collection.enterer.firstName} ${collection.enterer.lastName} |
time entered |
${h.pretty_date(collection.datetimeEntered)} |
last updated |
${h.pretty_date(collection.datetimeModified)} |
|
% endfor
% endfor
% else:
% for collection in c.paginator:
${collectionViews.collectionViewShort(collection)}
% endfor
% endif
% if hasattr(c, 'paginator'):
${ c.paginator.pager('~2~') }
% endif