Fix minori

This commit is contained in:
Luca 2018-12-04 13:11:21 +01:00
parent 140ee39932
commit ea8b6fd2b2
2 changed files with 4 additions and 3 deletions

View File

@ -40,7 +40,8 @@ include_once __DIR__.'/../../core.php';
</div>
<div class="col-md-4">
{[ "type": "text", "label": "<?php echo tr('Icona'); ?>", "name": "icon", "value": "$icon$" ,"help":"<?php echo tr('Es. \'fa fa-envelope\''); ?>" ]}
<?php $records[0]['icon'] = (empty ($records[0]['icon'])) ? 'fa fa-envelope' : $records[0]['icon']; ?>
{[ "type": "text", "label": "<?php echo tr('Icona'); ?>", "name": "icon", "value": "<?php echo $records[0]['icon'] ?>" ,"help":"<?php echo tr('Es. \'fa fa-envelope\''); ?>" ]}
</div>
</div>

View File

@ -31,7 +31,7 @@ class ButtonManager implements ManagerInterface
$result = [
'link' => \Prints::getHref($options['id'], $options['id_record'], $options['parameters']),
'title' => tr('Stampa').' '.strtolower($print['title']),
'title' => tr('Stampa').' '.lcfirst($print['title']),
'icon' => $print['icon'],
];
} else {
@ -39,7 +39,7 @@ class ButtonManager implements ManagerInterface
$result = [
'link' => ROOTDIR.'/mail.php?id_module='.$options['id_module'].'&id_record='.$options['id_record'].'&id='.$options['id'],
'title' => tr('Invia').' '.strtolower($template['name']),
'title' => tr('Invia').' '.lcfirst($template['name']),
'icon' => $template['icon'],
'type' => 'modal',
];