2009-11-21 03:32:30 +01:00
|
|
|
<div id="$id" class="$CSSClasses $extraClass field" href="$CurrentLink">
|
2010-10-15 04:27:59 +02:00
|
|
|
<% if Markable %>
|
|
|
|
<% include TableListField_SelectOptions %>
|
|
|
|
<% end_if %>
|
2007-09-03 07:30:32 +02:00
|
|
|
<% include TableListField_PageControls %>
|
|
|
|
<table class="data">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<% if Markable %><th width="18"> </th><% end_if %>
|
2012-05-11 03:49:20 +02:00
|
|
|
<% loop Headings %>
|
2007-09-03 07:30:32 +02:00
|
|
|
<th class="$Name">$Title</th>
|
2012-05-11 03:49:20 +02:00
|
|
|
<% end_loop %>
|
2007-09-03 07:30:32 +02:00
|
|
|
<% if Can(show) %><th width="18"> </th><% end_if %>
|
|
|
|
<% if Can(edit) %><th width="18"> </th><% end_if %>
|
|
|
|
<% if Can(delete) %><th width="18"> </th><% end_if %>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tfoot>
|
|
|
|
<% if HasSummary %>
|
|
|
|
<tr class="summary">
|
|
|
|
<% if Markable %><th width="18"> </th><% end_if %>
|
|
|
|
<td><i>$SummaryTitle</i></td>
|
2012-05-11 03:49:20 +02:00
|
|
|
<% loop SummaryFields %>
|
2007-09-03 07:30:32 +02:00
|
|
|
<td<% if Function %> class="$Function"<% end_if %>> </td>
|
2012-05-11 03:49:20 +02:00
|
|
|
<% end_loop %>
|
2007-09-03 07:30:32 +02:00
|
|
|
<% if Can(show) %><td width="18"> </td><% end_if %>
|
|
|
|
<% if Can(edit) %><td width="18"> </td><% end_if %>
|
|
|
|
<% if Can(delete) %><td width="18"> </td><% end_if %>
|
|
|
|
</tr>
|
|
|
|
<% end_if %>
|
|
|
|
<% if Can(add) %>
|
|
|
|
<tr>
|
|
|
|
<% if Markable %><td width="18"> </td><% end_if %>
|
|
|
|
<td colspan="$ItemCount">
|
2009-10-23 01:50:58 +02:00
|
|
|
<input type="hidden" id="{$id}_PopupHeight" value="$PopupHeight" disabled="disabled">
|
|
|
|
<input type="hidden" id="{$id}_PopupWidth" value="$PopupWidth" disabled="disabled">
|
2012-08-06 13:44:21 +02:00
|
|
|
<a class="popuplink addlink" href="$AddLink" alt="<% _t('RelationComplexTableField.ss.ADD', 'Add') %>"><img src="$ModulePath(framework)/images/add.gif" alt="<% _t('ADD', 'Add') %>" /><% _t('RelationComplexTableField.ss.ADD', 'Add') %> $Title</a>
|
2007-09-03 07:30:32 +02:00
|
|
|
</td>
|
|
|
|
<% if Can(show) %><td width="18"> </td><% end_if %>
|
|
|
|
<% if Can(edit) %><td width="18"> </td><% end_if %>
|
|
|
|
<% if Can(delete) %><td width="18"> </td><% end_if %>
|
|
|
|
</tr>
|
|
|
|
<% end_if %>
|
|
|
|
</tfoot>
|
|
|
|
<tbody>
|
|
|
|
<% if Items %>
|
2012-05-11 03:49:20 +02:00
|
|
|
<% loop Items %>
|
2009-03-13 11:06:41 +01:00
|
|
|
<% include TableListField_Item %>
|
2012-05-11 03:49:20 +02:00
|
|
|
<% end_loop %>
|
2007-09-03 07:30:32 +02:00
|
|
|
<% else %>
|
|
|
|
<tr class="notfound">
|
|
|
|
<% if Markable %><th width="18"> </th><% end_if %>
|
2012-08-06 13:44:21 +02:00
|
|
|
<td colspan="$Headings.Count"><i><% _t('RelationComplexTableField.ss.NOTFOUND', 'No items found') %></i></td>
|
2007-09-03 07:30:32 +02:00
|
|
|
<% if Can(show) %><td width="18"> </td><% end_if %>
|
|
|
|
<% if Can(edit) %><td width="18"> </td><% end_if %>
|
|
|
|
<% if Can(delete) %><td width="18"> </td><% end_if %>
|
|
|
|
</tr>
|
|
|
|
<% end_if %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
$ExtraData
|
|
|
|
<div class="utility">
|
|
|
|
<% if Can(export) %>
|
2012-08-06 13:44:21 +02:00
|
|
|
<a href="$ExportLink" target="_blank"><% _t('RelationComplexTableField.ss.CSVEXPORT', 'Export to CSV' ) %></a>
|
2007-09-03 07:30:32 +02:00
|
|
|
<% end_if %>
|
|
|
|
</div>
|
2008-06-25 06:00:27 +02:00
|
|
|
</div>
|