2
0
forked from Wavyzz/dolibarr
Files
dolibarr-fork/htdocs/multicompany/tpl/admin-entity.tpl
2010-03-30 13:32:30 +00:00

82 lines
3.0 KiB
Smarty

{* Copyright (C) 2009 Regis Houssin <regis@dolibarr.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
*}
<!-- BEGIN SMARTY TEMPLATE -->
<table class="noborder" width="100%">
<tr class="liste_titre">
<td>{$langs->trans('Label')}</td>
<td align="left">{$langs->trans('Description')}</td>
<td align="left">{$langs->trans('Name')}</td>
<td align="left">{$langs->trans('Town')}</td>
<td align="left">{$langs->trans('Country')}</td>
<td align="left">{$langs->trans('Currency')}</td>
<td align="center">{$langs->trans('Visible')}</td>
<td align="center">{$langs->trans('Status')}</td>
<td align="center" colspan="2">&nbsp;</td>
{section name=mc loop=$entities}
{strip}
<tr class="{cycle values="impair,pair"}">
<td>{$entities[mc].label}</td>
<td align="left">{$entities[mc].description}</td>
<td align="left">{$entities[mc].details.MAIN_INFO_SOCIETE_NOM}</td>
<td align="left">{$entities[mc].details.MAIN_INFO_SOCIETE_VILLE}</td>
<td align="left">{$entities[mc].details.MAIN_INFO_SOCIETE_PAYS}</td>
<td align="left">{$entities[mc].details.MAIN_MONNAIE}</td>
<td align="center" width="30">
{if $entities[mc].visible}
<a href="{$smarty.server.SCRIPT_NAME}?id={$entities[mc].id}&amp;action=setvisible&amp;value=0">{$img_on}</a>
{else}
{if $entities[mc].active}
<a href="{$smarty.server.SCRIPT_NAME}?id={$entities[mc].id}&amp;action=setvisible&amp;value=1">{$img_off}</a>
{else}
{$img_off}
{/if}
{/if}
</td>
<td align="center" width="30">
{if $entities[mc].active}
<a href="{$smarty.server.SCRIPT_NAME}?id={$entities[mc].id}&amp;action=setactive&amp;value=0">{$img_on}</a>
{else}
<a href="{$smarty.server.SCRIPT_NAME}?id={$entities[mc].id}&amp;action=setactive&amp;value=1">{$img_off}</a>
{/if}
</td>
<td align="center" width="20">
<a href="{$smarty.server.SCRIPT_NAME}?id={$entities[mc].id}&amp;action=modify">{$img_modify}</a>
</td>
<td align="center" width="20">
<a href="{$smarty.server.SCRIPT_NAME}?id={$entities[mc].id}&amp;action=delete">{$img_delete}</a>
</td>
</tr>
{/strip}
{/section}
</tr></table>
<div class="tabsAction">
<a class="butAction" href="{$smarty.server.SCRIPT_NAME}?action=create">{$langs->trans('AddEntity')}</a>
</div>
<!-- END SMARTY TEMPLATE -->