mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
show own gdt entries
This commit is contained in:
parent
fc7a7a9d8b
commit
808b8ebd7c
@ -6,3 +6,19 @@
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
//$class = 'grd-negative-currency';
|
||||
$class = '';
|
||||
//$title = '' . $number;
|
||||
/*if($number == 0) $class = "grd-default-currency";
|
||||
else if($number > 0) $class = "grd-positive-currency";*/
|
||||
if($number < 0) {
|
||||
$class = 'grd-negative-currency';
|
||||
}
|
||||
|
||||
?><?php if(isset($raw) && true == $raw): ?>
|
||||
<?= $this->Number->format(intval($number) / 100.0, ['precision' => 2]) . ' €';?>
|
||||
<?php else : ?>
|
||||
<span class="<?php echo $class;?>">
|
||||
<?= $this->Number->format(intval($number) / 100.0, ['precision' => 2]) . ' €';?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
Loading…
x
Reference in New Issue
Block a user