firefly-iii/config/intro.php

174 lines
6.9 KiB
PHP
Raw Normal View History

2017-07-16 00:35:08 -05:00
<?php
/**
* intro.php
* Copyright (c) 2017 thegrumpydictator@gmail.com
*
2017-10-21 01:40:00 -05: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 07:44:46 -06:00
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
2017-07-16 00:35:08 -05:00
*/
declare(strict_types=1);
/*
* Always make sure intro is the first element (if any) and outro is the last one.
*/
return [
2017-07-20 23:00:10 -05:00
// index
2017-07-22 03:50:30 -05:00
'index' => [
2017-07-16 11:14:29 -05:00
'intro' => [],
2017-07-20 23:00:10 -05: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 11:14:29 -05:00
'outro' => [],
],
2017-07-20 23:00:10 -05:00
// accounts: create
2017-07-22 03:50:30 -05:00
'accounts_create' => [
2018-04-02 07:43:06 -05:00
'iban' => ['element' => '#ffInput_iban'],
2017-07-20 23:00:10 -05:00
],
// extra text for asset account creation.
2017-07-22 03:50:30 -05:00
'accounts_create_asset' => [
2017-07-20 23:00:10 -05:00
'opening_balance' => ['element' => '#ffInput_openingBalance'],
'currency' => ['element' => '#ffInput_currency_id'],
'virtual' => ['element' => '#ffInput_virtualBalance'],
],
// budgets: index
2017-07-22 03:50:30 -05:00
'budgets_index' => [
2017-07-20 23:00:10 -05: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 01:52:15 -05:00
'outro' => [],
2017-07-20 23:00:10 -05:00
],
// reports: index, default report, audit, budget, cat, tag
2017-07-22 03:50:30 -05:00
'reports_index' => [
'intro' => [],
'inputReportType' => ['element' => '#inputReportType'],
'inputAccountsSelect' => ['element' => '#inputAccountsSelect'],
'inputDateRange' => ['element' => '#inputDateRange'],
2017-07-22 15:56:21 -05:00
'extra-options-box' => ['element' => '#extra-options-box', 'position' => 'top'],
2017-07-20 23:00:10 -05:00
],
2017-07-22 03:50:30 -05:00
'reports_report_default' => [
2017-07-20 23:00:10 -05:00
'intro' => [],
],
2017-07-22 03:50:30 -05:00
'reports_report_audit' => [
'intro' => [],
'optionsBox' => ['element' => '#optionsBox'],
2017-07-20 23:00:10 -05:00
],
2017-07-22 03:50:30 -05:00
'reports_report_category' => [
'intro' => [],
'pieCharts' => ['element' => '#pieCharts'],
'incomeAndExpensesChart' => ['element' => '#incomeAndExpensesChart', 'position' => 'top'],
2017-07-20 23:00:10 -05:00
],
2017-07-22 03:50:30 -05:00
'reports_report_tag' => [
'intro' => [],
'pieCharts' => ['element' => '#pieCharts'],
'incomeAndExpensesChart' => ['element' => '#incomeAndExpensesChart', 'position' => 'top'],
2017-07-20 23:00:10 -05:00
],
2017-07-22 03:50:30 -05:00
'reports_report_budget' => [
'intro' => [],
'pieCharts' => ['element' => '#pieCharts'],
'incomeAndExpensesChart' => ['element' => '#incomeAndExpensesChart', 'position' => 'top'],
2017-07-20 23:00:10 -05:00
],
2017-07-22 03:50:30 -05:00
// transactions: create (also per type!)
'transactions_create' => [
2017-07-20 23:00:10 -05:00
'switch_box' => ['element' => '#switch-box'],
'ffInput_category' => ['element' => '#ffInput_category'],
],
2017-07-22 03:50:30 -05: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-20 23:00:10 -05:00
// piggies: index, create, show
2017-07-22 03:50:30 -05:00
'piggy-banks_index' => [
'saved' => ['element' => '.piggySaved'],
'button' => ['element' => '.piggyBar',],
'accountStatus' => ['element' => '#accountStatus', 'position' => 'top'],
2017-07-20 23:00:10 -05:00
],
2017-07-22 03:50:30 -05:00
'piggy-banks_create' => [
2017-08-12 02:06:13 -05:00
'name' => ['element' => '#ffInput_name'],
'date' => ['element' => '#ffInput_targetdate'],
2017-07-22 15:56:21 -05:00
2017-07-20 23:00:10 -05:00
],
2017-07-22 03:50:30 -05:00
'piggy-banks_show' => [
2017-07-22 15:56:21 -05:00
'piggyChart' => ['element' => '#piggyChart'],
'piggyDetails' => ['element' => '#piggyDetails'],
'piggyEvents' => ['element' => '#piggyEvents'],
2017-07-20 23:00:10 -05:00
],
// bills: index, create, show
2017-07-22 03:50:30 -05:00
'bills_index' => [
2018-04-14 02:59:04 -05:00
'rules' => ['element' => '.rules'],
2017-07-22 15:56:21 -05:00
'paid_in_period' => ['element' => '.paid_in_period'],
'expected_in_period' => ['element' => '.expected_in_period'],
2017-07-20 23:00:10 -05:00
],
2017-07-22 03:50:30 -05:00
'bills_create' => [
2018-04-07 15:23:16 -05:00
'intro' => [],
2017-07-22 15:56:21 -05:00
'name' => ['element' => '#name_holder'],
2018-04-07 15:23:16 -05:00
//'match' => ['element' => '#match_holder'],
2017-07-22 15:56:21 -05:00
'amount_min_holder' => ['element' => '#amount_min_holder'],
'repeat_freq_holder' => ['element' => '#repeat_freq_holder'],
'skip_holder' => ['element' => '#skip_holder'],
2017-07-20 23:00:10 -05:00
],
2017-07-22 03:50:30 -05:00
'bills_show' => [
2017-07-22 15:56:21 -05:00
'billInfo' => ['element' => '#billInfo'],
'billButtons' => ['element' => '#billButtons'],
'billChart' => ['element' => '#billChart', 'position' => 'top'],
2017-07-20 23:00:10 -05:00
],
// rules: index, create-rule, edit-rule
2017-07-22 03:50:30 -05:00
'rules_index' => [
2017-07-16 11:14:29 -05:00
'intro' => [],
2017-07-20 23:00:10 -05: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 11:14:29 -05:00
'outro' => [],
2017-07-16 00:35:08 -05:00
],
2017-07-22 03:50:30 -05:00
'rules_create' => [
2017-07-22 15:56:21 -05: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-20 23:00:10 -05:00
],
// preferences: index
2017-07-22 03:50:30 -05:00
'preferences_index' => [
2017-08-12 02:06:13 -05:00
'tabs' => ['element' => '.nav-tabs'],
2017-07-20 23:00:10 -05:00
],
// currencies: index, create
2017-07-22 03:50:30 -05:00
'currencies_index' => [
2017-07-22 15:56:21 -05:00
'intro' => [],
'default' => ['element' => '.defaultCurrency'],
2017-07-20 23:00:10 -05:00
],
2017-07-22 03:50:30 -05:00
'currencies_create' => [
2017-08-12 02:06:13 -05:00
'code' => ['element' => '#ffInput_code',],
2017-07-20 23:00:10 -05:00
],
2017-08-12 00:48:39 -05:00
];