Added new fields and forms

This commit is contained in:
Antonio de la Rosa 2015-08-28 23:43:08 +02:00
parent 52d75b8029
commit 9db16a5edd
27 changed files with 832 additions and 34 deletions

View file

@ -0,0 +1,26 @@
<?php
namespace PhangoApp\PhaModels\CoreFields;
class MoneyField extends DoubleField{
function show_formatted($value)
{
return $this->currency_format($value);
}
static function currency_format($value, $symbol_currency='&euro;')
{
return number_format($value, 2).' '.$symbol_currency;
}
}
?>