{* Smarty template *}
{assign var="buttonsNumber" value="0"}
{if $allowedUpdateMessageBundle}
{math assign="buttonsNumber" equation="a + 1" a=$buttonsNumber}
{/if}
{assign var="columnsNumber" value=2}
{math assign="totalCells" equation="x+y+1" x=$columnsNumber y=$buttonsNumber}
<table border="0" cellpadding="0" cellspacing="0" class="grid" id="resourceList">
<tr>
<th>{message key='messageBundle.form.code'}</th>
<th>{message key='messageBundle.form.title'}</th>
<th colspan="{$buttonsNumber}"></th>
</tr>
{if !$dataIsEmpty}
{foreach name="mainLoop" from=$data item=bundle key=index}
{cycle name="bundles" values="oddRow,evenRow" assign=parity}
<tr class="{$parity}" onMouseOver="onMouseOverRow(this)" onMouseOut="onMouseOutRow(this)">
<td>{$index|escape}</td>
<td>{message key="language.$index"}</td>
{if $allowedUpdateMessageBundle}
<td class="gridIcon">
<a href="{buildUrl action='callUpdateMessageBundle' code=$index}" title="{message key='messageBundle.form.update'}">
<img src="images/edit.gif" border="0" alt="{message key='messageBundle.form.update'}">
</a>
</td>
{/if}
</tr>
{/foreach}
{else}
<tr>
<td class="tfoot" colspan="{$totalCells}" align="center">
<em>{message key='resource.message.nothing'}</em>
</td>
</tr>
{/if}
</table>
{include file="after_grid.tpl"}