SF.net SVN: postfixadmin:[1776] trunk
Brought to you by:
christian_boltz,
gingerdog
From: <chr...@us...> - 2015-04-06 21:59:00
|
Revision: 1776 http://sourceforge.net/p/postfixadmin/code/1776 Author: christian_boltz Date: 2015-04-06 21:58:58 +0000 (Mon, 06 Apr 2015) Log Message: ----------- list.tpl: - add support for list_header (like ":: Alias" in list-virtual) PFAHandler: - add empty default for $msg['list_header'] Modified Paths: -------------- trunk/model/PFAHandler.php trunk/templates/list.tpl Modified: trunk/model/PFAHandler.php =================================================================== --- trunk/model/PFAHandler.php 2015-04-06 21:09:54 UTC (rev 1775) +++ trunk/model/PFAHandler.php 2015-04-06 21:58:58 UTC (rev 1776) @@ -119,6 +119,7 @@ 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) Modified: trunk/templates/list.tpl =================================================================== --- trunk/templates/list.tpl 2015-04-06 21:09:54 UTC (rev 1775) +++ trunk/templates/list.tpl 2015-04-06 21:58:58 UTC (rev 1776) @@ -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 *} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |