| 
									
										
										
										
											2017-07-16 07:35:08 +02:00
										 |  |  | <?php | 
					
						
							|  |  |  | /** | 
					
						
							|  |  |  |  * intro.php | 
					
						
							|  |  |  |  * Copyright (c) 2017 thegrumpydictator@gmail.com | 
					
						
							|  |  |  |  * | 
					
						
							| 
									
										
										
										
											2017-10-21 08:40:00 +02:00
										 |  |  |  * This file is part of Firefly III. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Firefly III is free software: you can redistribute it and/or modify | 
					
						
							|  |  |  |  * it under the terms of the GNU General Public License as published by | 
					
						
							|  |  |  |  * the Free Software Foundation, either version 3 of the License, or | 
					
						
							|  |  |  |  * (at your option) any later version. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Firefly III is distributed in the hope that it will be useful, | 
					
						
							|  |  |  |  * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
					
						
							|  |  |  |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
					
						
							|  |  |  |  * GNU General Public License for more details. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * You should have received a copy of the GNU General Public License | 
					
						
							| 
									
										
										
										
											2017-12-17 14:44:46 +01:00
										 |  |  |  * along with Firefly III. If not, see <http://www.gnu.org/licenses/>. | 
					
						
							| 
									
										
										
										
											2017-07-16 07:35:08 +02:00
										 |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | declare(strict_types=1); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* | 
					
						
							|  |  |  |  * Always make sure intro is the first element (if any) and outro is the last one. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | return [ | 
					
						
							| 
									
										
										
										
											2017-07-21 06:00:10 +02:00
										 |  |  |     // index
 | 
					
						
							| 
									
										
										
										
											2017-07-22 10:50:30 +02:00
										 |  |  |     'index'                          => [ | 
					
						
							| 
									
										
										
										
											2017-07-16 18:14:29 +02:00
										 |  |  |         'intro'          => [], | 
					
						
							| 
									
										
										
										
											2017-07-21 06:00:10 +02:00
										 |  |  |         'accounts-chart' => ['element' => '#accounts-chart'], | 
					
						
							|  |  |  |         'box_out_holder' => ['element' => '#box_out_holder'], | 
					
						
							|  |  |  |         'help'           => ['element' => '#help', 'position' => 'bottom'], | 
					
						
							|  |  |  |         'sidebar-toggle' => ['element' => '#sidebar-toggle', 'position' => 'bottom'], | 
					
						
							| 
									
										
										
										
											2017-07-16 18:14:29 +02:00
										 |  |  |         'outro'          => [], | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2017-07-21 06:00:10 +02:00
										 |  |  |     // accounts: create
 | 
					
						
							| 
									
										
										
										
											2017-07-22 10:50:30 +02:00
										 |  |  |     'accounts_create'                => [ | 
					
						
							| 
									
										
										
										
											2018-04-02 14:43:06 +02:00
										 |  |  |         'iban' => ['element' => '#ffInput_iban'], | 
					
						
							| 
									
										
										
										
											2017-07-21 06:00:10 +02:00
										 |  |  |     ], | 
					
						
							|  |  |  |     // extra text for asset account creation.
 | 
					
						
							| 
									
										
										
										
											2017-07-22 10:50:30 +02:00
										 |  |  |     'accounts_create_asset'          => [ | 
					
						
							| 
									
										
										
										
											2017-07-21 06:00:10 +02:00
										 |  |  |         'opening_balance' => ['element' => '#ffInput_openingBalance'], | 
					
						
							|  |  |  |         'currency'        => ['element' => '#ffInput_currency_id'], | 
					
						
							|  |  |  |         'virtual'         => ['element' => '#ffInput_virtualBalance'], | 
					
						
							|  |  |  |     ], | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     // budgets: index
 | 
					
						
							| 
									
										
										
										
											2017-07-22 10:50:30 +02:00
										 |  |  |     'budgets_index'                  => [ | 
					
						
							| 
									
										
										
										
											2017-07-21 06:00:10 +02:00
										 |  |  |         'intro'            => [], | 
					
						
							|  |  |  |         'set_budget'       => ['element' => '#availableBar',], | 
					
						
							|  |  |  |         'see_expenses_bar' => ['element' => '#spentBar'], | 
					
						
							|  |  |  |         'navigate_periods' => ['element' => '#periodNavigator'], | 
					
						
							|  |  |  |         'new_budget'       => ['element' => '#createBudgetBox'], | 
					
						
							|  |  |  |         'list_of_budgets'  => ['element' => '#budgetList'], | 
					
						
							| 
									
										
										
										
											2017-09-29 08:52:15 +02:00
										 |  |  |         'outro'            => [], | 
					
						
							| 
									
										
										
										
											2017-07-21 06:00:10 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |     ], | 
					
						
							|  |  |  |     // reports: index, default report, audit, budget, cat, tag
 | 
					
						
							| 
									
										
										
										
											2017-07-22 10:50:30 +02:00
										 |  |  |     'reports_index'                  => [ | 
					
						
							|  |  |  |         'intro'               => [], | 
					
						
							|  |  |  |         'inputReportType'     => ['element' => '#inputReportType'], | 
					
						
							|  |  |  |         'inputAccountsSelect' => ['element' => '#inputAccountsSelect'], | 
					
						
							|  |  |  |         'inputDateRange'      => ['element' => '#inputDateRange'], | 
					
						
							| 
									
										
										
										
											2017-07-22 22:56:21 +02:00
										 |  |  |         'extra-options-box'   => ['element' => '#extra-options-box', 'position' => 'top'], | 
					
						
							| 
									
										
										
										
											2017-07-21 06:00:10 +02:00
										 |  |  |     ], | 
					
						
							| 
									
										
										
										
											2017-07-22 10:50:30 +02:00
										 |  |  |     'reports_report_default'         => [ | 
					
						
							| 
									
										
										
										
											2017-07-21 06:00:10 +02:00
										 |  |  |         'intro' => [], | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2017-07-22 10:50:30 +02:00
										 |  |  |     'reports_report_audit'           => [ | 
					
						
							|  |  |  |         'intro'      => [], | 
					
						
							|  |  |  |         'optionsBox' => ['element' => '#optionsBox'], | 
					
						
							| 
									
										
										
										
											2017-07-21 06:00:10 +02:00
										 |  |  |     ], | 
					
						
							| 
									
										
										
										
											2017-07-22 10:50:30 +02:00
										 |  |  |     'reports_report_category'        => [ | 
					
						
							|  |  |  |         'intro'                  => [], | 
					
						
							|  |  |  |         'pieCharts'              => ['element' => '#pieCharts'], | 
					
						
							|  |  |  |         'incomeAndExpensesChart' => ['element' => '#incomeAndExpensesChart', 'position' => 'top'], | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-21 06:00:10 +02:00
										 |  |  |     ], | 
					
						
							| 
									
										
										
										
											2017-07-22 10:50:30 +02:00
										 |  |  |     'reports_report_tag'             => [ | 
					
						
							|  |  |  |         'intro'                  => [], | 
					
						
							|  |  |  |         'pieCharts'              => ['element' => '#pieCharts'], | 
					
						
							|  |  |  |         'incomeAndExpensesChart' => ['element' => '#incomeAndExpensesChart', 'position' => 'top'], | 
					
						
							| 
									
										
										
										
											2017-07-21 06:00:10 +02:00
										 |  |  |     ], | 
					
						
							| 
									
										
										
										
											2017-07-22 10:50:30 +02:00
										 |  |  |     'reports_report_budget'          => [ | 
					
						
							|  |  |  |         'intro'                  => [], | 
					
						
							|  |  |  |         'pieCharts'              => ['element' => '#pieCharts'], | 
					
						
							|  |  |  |         'incomeAndExpensesChart' => ['element' => '#incomeAndExpensesChart', 'position' => 'top'], | 
					
						
							| 
									
										
										
										
											2017-07-21 06:00:10 +02:00
										 |  |  |     ], | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-22 10:50:30 +02:00
										 |  |  |     // transactions: create (also per type!)
 | 
					
						
							|  |  |  |     'transactions_create'            => [ | 
					
						
							| 
									
										
										
										
											2017-07-21 06:00:10 +02:00
										 |  |  |         'switch_box'       => ['element' => '#switch-box'], | 
					
						
							|  |  |  |         'ffInput_category' => ['element' => '#ffInput_category'], | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2017-07-22 10:50:30 +02:00
										 |  |  |     'transactions_create_withdrawal' => [ | 
					
						
							|  |  |  |         'ffInput_budget'           => ['element' => '#ffInput_budget_id'], | 
					
						
							|  |  |  |         'currency_dropdown_amount' => ['element' => '#currency_dropdown_amount'], | 
					
						
							|  |  |  |     ], | 
					
						
							|  |  |  |     'transactions_create_deposit'    => [ | 
					
						
							|  |  |  |         'currency_dropdown_amount' => ['element' => '#currency_dropdown_amount'], | 
					
						
							|  |  |  |     ], | 
					
						
							|  |  |  |     'transactions_create_transfer'   => [ | 
					
						
							|  |  |  |         'ffInput_piggy_bank_id' => ['element' => '#ffInput_piggy_bank_id'], | 
					
						
							|  |  |  |     ], | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-21 06:00:10 +02:00
										 |  |  |     // piggies: index, create, show
 | 
					
						
							| 
									
										
										
										
											2017-07-22 10:50:30 +02:00
										 |  |  |     'piggy-banks_index'              => [ | 
					
						
							|  |  |  |         'saved'         => ['element' => '.piggySaved'], | 
					
						
							|  |  |  |         'button'        => ['element' => '.piggyBar',], | 
					
						
							|  |  |  |         'accountStatus' => ['element' => '#accountStatus', 'position' => 'top'], | 
					
						
							| 
									
										
										
										
											2017-07-21 06:00:10 +02:00
										 |  |  |     ], | 
					
						
							| 
									
										
										
										
											2017-07-22 10:50:30 +02:00
										 |  |  |     'piggy-banks_create'             => [ | 
					
						
							| 
									
										
										
										
											2017-08-12 09:06:13 +02:00
										 |  |  |         'name' => ['element' => '#ffInput_name'], | 
					
						
							|  |  |  |         'date' => ['element' => '#ffInput_targetdate'], | 
					
						
							| 
									
										
										
										
											2017-07-22 22:56:21 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-21 06:00:10 +02:00
										 |  |  |     ], | 
					
						
							| 
									
										
										
										
											2017-07-22 10:50:30 +02:00
										 |  |  |     'piggy-banks_show'               => [ | 
					
						
							| 
									
										
										
										
											2017-07-22 22:56:21 +02:00
										 |  |  |         'piggyChart'   => ['element' => '#piggyChart'], | 
					
						
							|  |  |  |         'piggyDetails' => ['element' => '#piggyDetails'], | 
					
						
							|  |  |  |         'piggyEvents'  => ['element' => '#piggyEvents'], | 
					
						
							| 
									
										
										
										
											2017-07-21 06:00:10 +02:00
										 |  |  |     ], | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     // bills: index, create, show
 | 
					
						
							| 
									
										
										
										
											2017-07-22 10:50:30 +02:00
										 |  |  |     'bills_index'                    => [ | 
					
						
							| 
									
										
										
										
											2018-04-14 09:59:04 +02:00
										 |  |  |         'rules'              => ['element' => '.rules'], | 
					
						
							| 
									
										
										
										
											2017-07-22 22:56:21 +02:00
										 |  |  |         'paid_in_period'     => ['element' => '.paid_in_period'], | 
					
						
							|  |  |  |         'expected_in_period' => ['element' => '.expected_in_period'], | 
					
						
							| 
									
										
										
										
											2017-07-21 06:00:10 +02:00
										 |  |  |     ], | 
					
						
							| 
									
										
										
										
											2017-07-22 10:50:30 +02:00
										 |  |  |     'bills_create'                   => [ | 
					
						
							| 
									
										
										
										
											2018-04-07 22:23:16 +02:00
										 |  |  |         'intro'              => [], | 
					
						
							| 
									
										
										
										
											2017-07-22 22:56:21 +02:00
										 |  |  |         'name'               => ['element' => '#name_holder'], | 
					
						
							| 
									
										
										
										
											2018-04-07 22:23:16 +02:00
										 |  |  |         //'match'              => ['element' => '#match_holder'],
 | 
					
						
							| 
									
										
										
										
											2017-07-22 22:56:21 +02:00
										 |  |  |         'amount_min_holder'  => ['element' => '#amount_min_holder'], | 
					
						
							|  |  |  |         'repeat_freq_holder' => ['element' => '#repeat_freq_holder'], | 
					
						
							|  |  |  |         'skip_holder'        => ['element' => '#skip_holder'], | 
					
						
							| 
									
										
										
										
											2017-07-21 06:00:10 +02:00
										 |  |  |     ], | 
					
						
							| 
									
										
										
										
											2017-07-22 10:50:30 +02:00
										 |  |  |     'bills_show'                     => [ | 
					
						
							| 
									
										
										
										
											2017-07-22 22:56:21 +02:00
										 |  |  |         'billInfo'    => ['element' => '#billInfo'], | 
					
						
							|  |  |  |         'billButtons' => ['element' => '#billButtons'], | 
					
						
							|  |  |  |         'billChart'   => ['element' => '#billChart', 'position' => 'top'], | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-21 06:00:10 +02:00
										 |  |  |     ], | 
					
						
							|  |  |  |     // rules: index, create-rule, edit-rule
 | 
					
						
							| 
									
										
										
										
											2017-07-22 10:50:30 +02:00
										 |  |  |     'rules_index'                    => [ | 
					
						
							| 
									
										
										
										
											2017-07-16 18:14:29 +02:00
										 |  |  |         'intro'          => [], | 
					
						
							| 
									
										
										
										
											2017-07-21 06:00:10 +02:00
										 |  |  |         'new_rule_group' => ['element' => '#new_rule_group'], | 
					
						
							|  |  |  |         'new_rule'       => ['element' => '.new_rule'], | 
					
						
							|  |  |  |         'prio_buttons'   => ['element' => '.prio_buttons'], | 
					
						
							|  |  |  |         'test_buttons'   => ['element' => '.test_buttons'], | 
					
						
							|  |  |  |         'rule-triggers'  => ['element' => '.rule-triggers'], | 
					
						
							| 
									
										
										
										
											2017-07-16 18:14:29 +02:00
										 |  |  |         'outro'          => [], | 
					
						
							| 
									
										
										
										
											2017-07-16 07:35:08 +02:00
										 |  |  |     ], | 
					
						
							| 
									
										
										
										
											2017-07-22 10:50:30 +02:00
										 |  |  |     'rules_create'                   => [ | 
					
						
							| 
									
										
										
										
											2017-07-22 22:56:21 +02:00
										 |  |  |         'mandatory'          => ['element' => '#mandatory'], | 
					
						
							|  |  |  |         'ruletriggerholder'  => ['element' => '.rule-trigger-box'], | 
					
						
							|  |  |  |         'test_rule_triggers' => ['element' => '.test_rule_triggers'], | 
					
						
							|  |  |  |         'actions'            => ['element' => '.rule-action-box', 'position' => 'top'], | 
					
						
							| 
									
										
										
										
											2017-07-21 06:00:10 +02:00
										 |  |  |     ], | 
					
						
							|  |  |  |     // preferences: index
 | 
					
						
							| 
									
										
										
										
											2017-07-22 10:50:30 +02:00
										 |  |  |     'preferences_index'              => [ | 
					
						
							| 
									
										
										
										
											2017-08-12 09:06:13 +02:00
										 |  |  |         'tabs' => ['element' => '.nav-tabs'], | 
					
						
							| 
									
										
										
										
											2017-07-21 06:00:10 +02:00
										 |  |  |     ], | 
					
						
							|  |  |  |     // currencies: index, create
 | 
					
						
							| 
									
										
										
										
											2017-07-22 10:50:30 +02:00
										 |  |  |     'currencies_index'               => [ | 
					
						
							| 
									
										
										
										
											2017-07-22 22:56:21 +02:00
										 |  |  |         'intro'   => [], | 
					
						
							| 
									
										
										
										
											2018-11-10 10:04:46 +01:00
										 |  |  |         'default' => ['element' => '#default-currency'], | 
					
						
							|  |  |  |         'buttons' => ['element' => '.buttons',] | 
					
						
							| 
									
										
										
										
											2017-07-21 06:00:10 +02:00
										 |  |  |     ], | 
					
						
							| 
									
										
										
										
											2017-07-22 10:50:30 +02:00
										 |  |  |     'currencies_create'              => [ | 
					
						
							| 
									
										
										
										
											2017-08-12 09:06:13 +02:00
										 |  |  |         'code' => ['element' => '#ffInput_code',], | 
					
						
							| 
									
										
										
										
											2017-07-21 06:00:10 +02:00
										 |  |  |     ], | 
					
						
							| 
									
										
										
										
											2017-08-12 07:48:39 +02:00
										 |  |  | ]; |