list.tpl:

- add support for list_header (like ":: Alias" in list-virtual)

PFAHandler:
- add empty default for $msg['list_header']


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1776 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
Christian Boltz 10 years ago
parent 35fad174f7
commit adc038e218

@ -119,6 +119,7 @@ abstract class PFAHandler {
protected $msg = array(
'can_create' => True,
'confirm_delete' => 'confirm',
'list_header' => '', # headline used in list view
);
# called via another *Handler class? (use calledBy() to set this information)

@ -29,6 +29,18 @@
<div id="list">
<table border=0 id='admin_table'><!-- TODO: 'admin_table' needed because of CSS for table header -->
{if $msg.list_header}
{assign var="colcount" value=2}
{foreach key=key item=field from=$struct}
{if $field.display_in_list == 1 && $field.label}{* don't show fields without a label *}
{assign var="colcount" value=$colcount+1}
{/if}
{/foreach}
<tr>
<th colspan="{$colcount}">{$PALANG.{$msg.list_header}}</th>
</tr>
{/if}
<tr class="header">
{foreach key=key item=field from=$struct}
{if $field.display_in_list == 1 && $field.label}{* don't show fields without a label *}

Loading…
Cancel
Save