diff --git a/htdocs/multicompany/multicompany.class.php b/htdocs/multicompany/multicompany.class.php index 31849dc9390..d8aebd1a672 100644 --- a/htdocs/multicompany/multicompany.class.php +++ b/htdocs/multicompany/multicompany.class.php @@ -158,11 +158,15 @@ class Multicompany { global $conf,$langs; + $smarty->assign('langs', $langs); + $picto='title.png'; if (empty($conf->browser->firefox)) $picto='title.gif'; $smarty->assign('title_picto', img_picto('',$picto)); - $smarty->assign('title_text', $langs->trans('Setup')); - $smarty->assign('langs', $langs); + + $smarty->assign('entities',$this->entities); + $smarty->assign('img_on',img_picto($langs->trans("Activated"),'on')); + $smarty->assign('img_off',img_picto($langs->trans("Disabled"),'on')); } diff --git a/htdocs/multicompany/templates/admin-entity.tpl b/htdocs/multicompany/templates/admin-entity.tpl index 9a1980d776d..347d2680475 100644 --- a/htdocs/multicompany/templates/admin-entity.tpl +++ b/htdocs/multicompany/templates/admin-entity.tpl @@ -20,12 +20,29 @@ - + - - - - + + + + +{section name=mc loop=$entities} +{strip} + + + + + +{/strip} +{/section}
{$langs->trans('Name')}{$langs->trans('Description')}{$langs->trans('Activated')} {$langs->trans('Name')}{$langs->trans('Description')}{$langs->trans('Status')}
{$entities[mc].label}  + + {if $entities[mc].active} + {$img_on} + {else} + {$img_off} + {/if} + +
diff --git a/htdocs/theme/auguria/img/off.png b/htdocs/theme/auguria/img/off.png new file mode 100644 index 00000000000..a6d0a8c657e Binary files /dev/null and b/htdocs/theme/auguria/img/off.png differ diff --git a/htdocs/theme/auguria/img/on.png b/htdocs/theme/auguria/img/on.png new file mode 100644 index 00000000000..82572b9e1d1 Binary files /dev/null and b/htdocs/theme/auguria/img/on.png differ diff --git a/htdocs/theme/bluelagoon/img/off.png b/htdocs/theme/bluelagoon/img/off.png new file mode 100644 index 00000000000..a6d0a8c657e Binary files /dev/null and b/htdocs/theme/bluelagoon/img/off.png differ diff --git a/htdocs/theme/bluelagoon/img/on.png b/htdocs/theme/bluelagoon/img/on.png new file mode 100644 index 00000000000..82572b9e1d1 Binary files /dev/null and b/htdocs/theme/bluelagoon/img/on.png differ diff --git a/htdocs/theme/eldy/img/off.png b/htdocs/theme/eldy/img/off.png new file mode 100644 index 00000000000..a6d0a8c657e Binary files /dev/null and b/htdocs/theme/eldy/img/off.png differ diff --git a/htdocs/theme/eldy/img/on.png b/htdocs/theme/eldy/img/on.png new file mode 100644 index 00000000000..82572b9e1d1 Binary files /dev/null and b/htdocs/theme/eldy/img/on.png differ diff --git a/htdocs/theme/freelug/img/off.png b/htdocs/theme/freelug/img/off.png new file mode 100644 index 00000000000..a6d0a8c657e Binary files /dev/null and b/htdocs/theme/freelug/img/off.png differ diff --git a/htdocs/theme/freelug/img/on.png b/htdocs/theme/freelug/img/on.png new file mode 100644 index 00000000000..82572b9e1d1 Binary files /dev/null and b/htdocs/theme/freelug/img/on.png differ diff --git a/htdocs/theme/rodolphe/img/off.png b/htdocs/theme/rodolphe/img/off.png new file mode 100644 index 00000000000..a6d0a8c657e Binary files /dev/null and b/htdocs/theme/rodolphe/img/off.png differ diff --git a/htdocs/theme/rodolphe/img/on.png b/htdocs/theme/rodolphe/img/on.png new file mode 100644 index 00000000000..82572b9e1d1 Binary files /dev/null and b/htdocs/theme/rodolphe/img/on.png differ diff --git a/htdocs/theme/yellow/img/off.png b/htdocs/theme/yellow/img/off.png new file mode 100644 index 00000000000..a6d0a8c657e Binary files /dev/null and b/htdocs/theme/yellow/img/off.png differ diff --git a/htdocs/theme/yellow/img/on.png b/htdocs/theme/yellow/img/on.png new file mode 100644 index 00000000000..82572b9e1d1 Binary files /dev/null and b/htdocs/theme/yellow/img/on.png differ