Refactor the expandedform methods. First commit to see how Scrutinizer likes this. This commit will break most views.

This commit is contained in:
James Cole
2019-08-10 15:09:44 +02:00
parent 0097c66522
commit 6e2978231b
15 changed files with 970 additions and 1290 deletions

View File

@@ -21,6 +21,7 @@
declare(strict_types=1);
use FireflyIII\Providers\ImportServiceProvider;
@@ -145,6 +146,7 @@ return [
'Amount' => \FireflyIII\Support\Facades\Amount::class,
'Steam' => \FireflyIII\Support\Facades\Steam::class,
'ExpandedForm' => \FireflyIII\Support\Facades\ExpandedForm::class,
'AccountForm' => \FireflyIII\Support\Facades\AccountForm::class,
'Google2FA' => PragmaRX\Google2FALaravel\Facade::class,
],

View File

@@ -21,17 +21,17 @@
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
use TwigBridge\Extension\Laravel\Url;
use TwigBridge\Extension\Laravel\Str;
use TwigBridge\Extension\Laravel\Translator;
use TwigBridge\Extension\Laravel\Session;
use TwigBridge\Extension\Laravel\Auth;
use TwigBridge\Extension\Laravel\Config;
use TwigBridge\Extension\Laravel\Dump;
use TwigBridge\Extension\Laravel\Input;
use TwigBridge\Extension\Laravel\Config;
use TwigBridge\Extension\Laravel\Auth;
use TwigBridge\Extension\Laravel\Session;
use TwigBridge\Extension\Laravel\Str;
use TwigBridge\Extension\Laravel\Translator;
use TwigBridge\Extension\Laravel\Url;
use TwigBridge\Extension\Loader\Facades;
use TwigBridge\Extension\Loader\Filters;
use TwigBridge\Extension\Loader\Functions;
use TwigBridge\Extension\Loader\Facades;
use TwigBridge\Twig\Template;
/**
@@ -193,16 +193,21 @@ return [
'Steam',
'Config',
'Request',
'Form' => ['is_safe' => ['input', 'select', 'checkbox', 'model', 'open', 'radio', 'textarea', 'file',],],
'ExpandedForm' => [
'is_safe' => ['date', 'text', 'select', 'balance', 'optionsList', 'checkbox', 'amount', 'tags', 'integer', 'textarea', 'location', 'file',
'staticText', 'password', 'nonSelectableAmount', 'number', 'assetAccountList', 'amountNoCurrency', 'currencyList',
'ruleGroupList', 'assetAccountCheckList', 'ruleGroupListWithEmpty', 'piggyBankList', 'currencyListEmpty',
'activeAssetAccountList', 'percentage', 'activeLongAccountList', 'longAccountList','balanceAll',
'activeWithdrawalDestinations','activeDepositDestinations'
'is_safe' => [
'date', 'text', 'select', 'balance', 'optionsList', 'checkbox', 'amount', 'tags', 'integer', 'textarea', 'location', 'file', 'staticText',
'password', 'nonSelectableAmount', 'number', 'assetAccountList', 'amountNoCurrency', 'currencyList', 'ruleGroupList',
'assetAccountCheckList', 'ruleGroupListWithEmpty', 'piggyBankList', 'currencyListEmpty', 'percentage',
'activeLongAccountList', 'longAccountList', 'balanceAll', 'activeWithdrawalDestinations', 'activeDepositDestinations',
],],
'Form' => ['is_safe' => ['input', 'select', 'checkbox', 'model', 'open', 'radio', 'textarea', 'file',],
],
],
'AccountForm' => [
'is_safe' => [
'activeAssetAccountList', 'activeLongAccountList',
],
],
],