diff --git a/app/Http/Controllers/ReportController.php b/app/Http/Controllers/ReportController.php index f806cd0328..4ed436aabf 100644 --- a/app/Http/Controllers/ReportController.php +++ b/app/Http/Controllers/ReportController.php @@ -70,14 +70,14 @@ class ReportController extends Controller public function month($year = '2014', $month = '1', $shared = false) { $start = new Carbon($year . '-' . $month . '-01'); - $subTitle = trans('firefly.reportForMonth', ['date' => $start->formatLocalized($this->monthFormat)]); + $subTitle = trans('firefly.reportForMonth', ['month' => $start->formatLocalized($this->monthFormat)]); $subTitleIcon = 'fa-calendar'; $end = clone $start; $incomeTopLength = 8; $expenseTopLength = 8; if ($shared == 'shared') { $shared = true; - $subTitle = trans('firefly.reportForMonthShared', ['date' => $start->formatLocalized($this->monthFormat)]); + $subTitle = trans('firefly.reportForMonthShared', ['month' => $start->formatLocalized($this->monthFormat)]); } $end->endOfMonth(); diff --git a/app/Http/breadcrumbs.php b/app/Http/breadcrumbs.php index c7e18eb35d..faf3f118ca 100644 --- a/app/Http/breadcrumbs.php +++ b/app/Http/breadcrumbs.php @@ -321,11 +321,13 @@ Breadcrumbs::register( Breadcrumbs::register( 'reports.month', function (Generator $breadcrumbs, Carbon $date, $shared) { $breadcrumbs->parent('reports.year', $date, $shared); + $language = Preferences::get('language', 'en')->data; + $format = Config::get('firefly.month.' . $language); if ($shared) { - $title = trans('breadcrumbs.monthly_report_shared', ['date' => $date->year]); + $title = trans('breadcrumbs.monthly_report_shared', ['date' => $date->formatLocalized($format)]); } else { - $title = trans('breadcrumbs.monthly_report', ['date' => $date->year]); + $title = trans('breadcrumbs.monthly_report', ['date' => $date->formatLocalized($format)]); } $breadcrumbs->push($title, route('reports.month', [$date->year, $date->month])); diff --git a/app/Http/routes.php b/app/Http/routes.php index 361fdd5229..c5c9699af8 100644 --- a/app/Http/routes.php +++ b/app/Http/routes.php @@ -350,8 +350,8 @@ Route::group( * Profile Controller */ Route::get('/profile', ['uses' => 'ProfileController@index', 'as' => 'profile']); - Route::get('/profile/change-password', ['uses' => 'ProfileController@changePassword', 'as' => 'change-password']); - Route::get('/profile/delete-account', ['uses' => 'ProfileController@deleteAccount', 'as' => 'delete-account']); + Route::get('/profile/change-password', ['uses' => 'ProfileController@changePassword', 'as' => 'profile.change-password']); + Route::get('/profile/delete-account', ['uses' => 'ProfileController@deleteAccount', 'as' => 'profile.delete-account']); Route::post('/profile/delete-account', ['uses' => 'ProfileController@postDeleteAccount', 'as' => 'delete-account-post']); Route::post('/profile/change-password', ['uses' => 'ProfileController@postChangePassword', 'as' => 'change-password-post']); diff --git a/public/js/gcharts.options.js b/public/js/gcharts.options.js index 0d17506b69..e93206f858 100644 --- a/public/js/gcharts.options.js +++ b/public/js/gcharts.options.js @@ -10,11 +10,11 @@ var defaultLineChartOptions = { chartArea: { left: 50, top: 10, - width: '85%', - height: '80%' + width: '95%', + height: '90%' }, height: 400, - colors: ["#4285f4", "#db4437", "#f4b400", "#0f9d58", "#ab47bc", "#00acc1", "#ff7043", "#9e9d24", "#5c6bc0", "#f06292", "#00796b", "#c2185b"], + colors: ["#357ca5", "#008d4c", "#db8b0b", "#ca195a", "#555299", "#4285f4", "#db4437", "#f4b400", "#0f9d58", "#ab47bc", "#00acc1", "#ff7043", "#9e9d24", "#5c6bc0", "#f06292", "#00796b", "#c2185b"], hAxis: { textStyle: { color: '#838383', diff --git a/resources/lang/en/firefly.php b/resources/lang/en/firefly.php index 4521d4f52e..0babbc40a6 100644 --- a/resources/lang/en/firefly.php +++ b/resources/lang/en/firefly.php @@ -196,8 +196,8 @@ return [ // reports: 'reportForYear' => 'Yearly report for :year', 'reportForYearShared' => 'Yearly report for :year (including shared accounts)', - 'reportForMonth' => 'Montly report for :year', - 'reportForMonthShared' => 'Montly report for :year (including shared accounts)', + 'reportForMonth' => 'Montly report for :month', + 'reportForMonthShared' => 'Montly report for :month (including shared accounts)', 'incomeVsExpenses' => 'Income vs. expenses', 'accountBalances' => 'Account balances', 'balanceStartOfYear' => 'Balance at start of year', diff --git a/resources/lang/en/form.php b/resources/lang/en/form.php index b88dd2d972..f882f3fb43 100644 --- a/resources/lang/en/form.php +++ b/resources/lang/en/form.php @@ -62,7 +62,7 @@ return [ 'delete_budget' => 'Delete budget ":name"', 'delete_category' => 'Delete category ":name"', 'delete_currency' => 'Delete currency ":name"', - 'delete_piggyBank' => 'Delete piggy banl ":name"', + 'delete_piggyBank' => 'Delete piggy bank ":name"', 'delete_journal' => 'Delete transaction with description ":description"', 'account_areYouSure' => 'Are you sure you want to delete the account named ":name"?', diff --git a/resources/twig/accounts/show.twig b/resources/twig/accounts/show.twig index c4b106d1f4..75d4f86b1f 100644 --- a/resources/twig/accounts/show.twig +++ b/resources/twig/accounts/show.twig @@ -40,7 +40,7 @@

{{ 'transactions'|_ }}

-
+
{% include 'list/journals.twig' with {sorting:true} %}
diff --git a/resources/twig/layout/default.twig b/resources/twig/layout/default.twig index e4413773cf..b2ce742226 100644 --- a/resources/twig/layout/default.twig +++ b/resources/twig/layout/default.twig @@ -128,6 +128,12 @@ + + + + + diff --git a/resources/twig/list/piggy-bank-events.twig b/resources/twig/list/piggy-bank-events.twig index 6beec83ed2..1b7aadf30a 100644 --- a/resources/twig/list/piggy-bank-events.twig +++ b/resources/twig/list/piggy-bank-events.twig @@ -1,4 +1,4 @@ - +
{% if showPiggyBank %} diff --git a/resources/twig/list/piggy-banks.twig b/resources/twig/list/piggy-banks.twig index 8f1212356d..47e1b7c9d9 100644 --- a/resources/twig/list/piggy-banks.twig +++ b/resources/twig/list/piggy-banks.twig @@ -1,56 +1,59 @@ -
Piggy bank
+
{% for piggyBank in piggyBanks %} - - - - - - - - + + + + + + + + - - - -{% endfor %} + + + + {% endfor %}
- - - -
- - -
-
- {{ piggyBank.name }} - - {{piggyBank.savedSoFar|formatAmountPlain }} - - {% if piggyBank.savedSoFar > 0 %} - - {% endif %} - -
-
- {{ piggyBank.percentage }}% +
+ + + +
+ +
- -
+ {{ piggyBank.name }} + + {{ piggyBank.savedSoFar|formatAmountPlain }} + + {% if piggyBank.savedSoFar > 0 %} + + {% endif %} + +
+
+ {{ piggyBank.percentage }}% +
+
+
- {% if piggyBank.leftToSave > 0 %} - - {% endif %} - - {{ piggyBank.targetamount|formatAmount }} - {% if piggyBank.leftToSave > 0 %} - ({{ piggyBank.leftToSave|formatAmount }}) - {% endif %} -
+ {% if piggyBank.leftToSave > 0 %} + + {% endif %} + + {{ piggyBank.targetamount|formatAmount }} + {% if piggyBank.leftToSave > 0 %} + ({{ piggyBank.leftToSave|formatAmount }}) + {% endif %} +
diff --git a/resources/twig/partials/control-bar.twig b/resources/twig/partials/control-bar.twig index 48feedf76a..e5a89d6fcb 100644 --- a/resources/twig/partials/control-bar.twig +++ b/resources/twig/partials/control-bar.twig @@ -32,7 +32,7 @@
  • - +
  • - +
  • - +
  • - +
  • - + diff --git a/resources/twig/partials/reports/balance.twig b/resources/twig/partials/reports/balance.twig index 7d8a228197..e431e9a992 100644 --- a/resources/twig/partials/reports/balance.twig +++ b/resources/twig/partials/reports/balance.twig @@ -1,57 +1,61 @@
    - - {{ 'budgets'|_ }} ({{ 'splitByAccount'|_|lower }}) +

    {{ 'budgets'|_ }} ({{ 'splitByAccount'|_|lower }})

    - - - - - {% for account in balance.getBalanceHeader.getAccounts %} - - {% endfor %} - - - - - - {% for balanceLine in balance.getBalanceLines %} +
    +
    {{ 'budgets'|_ }}{{ account.name }} - {{ 'leftInBudget'|_ }} - {{ 'sum'|_ }}
    + + - - {% if balanceLine.getBudget %} - - - {% else %} - - {% endif %} - - {% for balanceEntry in balanceLine.getBalanceEntries %} - + + {% for account in balance.getBalanceHeader.getAccounts %} + {% endfor %} - - + + - {% endfor %} + + -
    - {{ balanceLine.getTitle }} - {{ balanceLine.getRepetition.amount|formatAmount }}{{ balanceLine.getTitle }} - {% if balanceEntry.getSpent != 0 %} - {{ (balanceEntry.getSpent*-1)|formatAmountPlain }} - {% endif %} - {% if balanceEntry.getLeft != 0 %} - {{ (balanceEntry.getLeft)|formatAmountPlain }} - {% endif %} - {{ 'budgets'|_ }}{{ account.name }} - {% if balanceLine.leftOfRepetition != 0 %} - {{ balanceLine.leftOfRepetition|formatAmount }} - {% endif %} - - {% if balanceLine.sumOfLeft != 0 %} - {{ balanceLine.sumOfLeft|formatAmount }} - {% endif %} - + {{ 'leftInBudget'|_ }} + {{ 'sum'|_ }}
    + + {% for balanceLine in balance.getBalanceLines %} + + + {% if balanceLine.getBudget %} + + {{ balanceLine.getTitle }} + + {{ balanceLine.getRepetition.amount|formatAmount }} + {% else %} + {{ balanceLine.getTitle }} + {% endif %} + + {% for balanceEntry in balanceLine.getBalanceEntries %} + + {% if balanceEntry.getSpent != 0 %} + {{ (balanceEntry.getSpent*-1)|formatAmountPlain }} + {% endif %} + {% if balanceEntry.getLeft != 0 %} + {{ (balanceEntry.getLeft)|formatAmountPlain }} + {% endif %} + + {% endfor %} + + {% if balanceLine.leftOfRepetition != 0 %} + {{ balanceLine.leftOfRepetition|formatAmount }} + {% endif %} + + + {% if balanceLine.sumOfLeft != 0 %} + {{ balanceLine.sumOfLeft|formatAmount }} + {% endif %} + + + {% endfor %} + + +
    diff --git a/resources/twig/partials/reports/bills.twig b/resources/twig/partials/reports/bills.twig index 0b951c8c3c..84288f6501 100644 --- a/resources/twig/partials/reports/bills.twig +++ b/resources/twig/partials/reports/bills.twig @@ -1,10 +1,10 @@
    - - {{ 'bills'|_ }} +

    {{ 'bills'|_ }}

    - - +
    +
    + @@ -12,14 +12,14 @@ - - - {% for line in bills.getBills %} - {% if not line.isActive %} - - {% else %} - - {% endif %} + + + {% for line in bills.getBills %} + {% if not line.isActive %} + + {% else %} + + {% endif %} - {% endif %} + {% endif %} - + - {% endfor %} - -
    {{ trans('form.name') }} {{ trans('form.amount_min') }}{{ trans('form.amount') }} {{ trans('form.under') }}
    {{ line.getBill.name }} {% if not line.isActive %} @@ -36,16 +36,17 @@ {% endif %} {% if not line.isActive %}   {% if line.isActive %} - {{ (line.getMax - line.getAmount)|formatAmount }} + {{ (line.getMax - line.getAmount)|formatAmount }} {% endif %}
    + {% endfor %} + + +
    diff --git a/resources/twig/partials/reports/budgets.twig b/resources/twig/partials/reports/budgets.twig index de98832aba..3972b4dffe 100644 --- a/resources/twig/partials/reports/budgets.twig +++ b/resources/twig/partials/reports/budgets.twig @@ -1,62 +1,69 @@
    - - {{ 'budgets'|_ }} +

    {{ 'budgets'|_ }}

    - - - - - - - - - - {% for budgetLine in budgets.getBudgetLines %} +
    +
    {{ 'budget'|_ }}{{ 'date'|_ }}{{ 'budgeted'|_ }}{{ 'spent'|_ }}{{ 'left'|_ }}{{ 'overspent'|_ }}
    + - - - - - - + + + + + + - {% endfor %} - - - - - - - -
    - {% if budgetLine.getBudget %} - {{ budgetLine.getBudget.name }} - {% else %} - {{ 'noBudget'|_ }} - {% endif %} - - {% if budgetLine.getRepetition %} - {{ budgetLine.getRepetition.startdate.formatLocalized(monthAndDayFormat) }} - {% endif %} - - {% if budgetLine.getRepetition %} - {{ budgetLine.getRepetition.amount|formatAmount }} - {% else %} - {{ 0|formatAmount }} - {% endif %} - - {% if budgetLine.getSpent != 0 %} - {{ budgetLine.getSpent|formatAmount }} - {% endif %} - - {% if budgetLine.getLeft != 0 %} - {{ budgetLine.getLeft|formatAmount }} - {% endif %} - - {% if budgetLine.getOverspent != 0 %} - {{ budgetLine.getOverspent|formatAmountPlain }} - {% endif %} - {{ 'budget'|_ }}{{ 'date'|_ }}{{ 'budgeted'|_ }}{{ 'spent'|_ }}{{ 'left'|_ }}{{ 'overspent'|_ }}
    {{ 'sum'|_ }}{{ budgets.getBudgeted|formatAmount }}{{ budgets.getSpent|formatAmount }}{{ budgets.getLeft|formatAmount }}{{ budgets.getOverspent|formatAmountPlain }}
    + + + {% for budgetLine in budgets.getBudgetLines %} + + + {% if budgetLine.getBudget %} + {{ budgetLine.getBudget.name }} + {% else %} + {{ 'noBudget'|_ }} + {% endif %} + + + {% if budgetLine.getRepetition %} + {{ budgetLine.getRepetition.startdate.formatLocalized(monthAndDayFormat) }} + {% endif %} + + + {% if budgetLine.getRepetition %} + {{ budgetLine.getRepetition.amount|formatAmount }} + {% else %} + {{ 0|formatAmount }} + {% endif %} + + + {% if budgetLine.getSpent != 0 %} + {{ budgetLine.getSpent|formatAmount }} + {% endif %} + + + {% if budgetLine.getLeft != 0 %} + {{ budgetLine.getLeft|formatAmount }} + {% endif %} + + + {% if budgetLine.getOverspent != 0 %} + {{ budgetLine.getOverspent|formatAmountPlain }} + {% endif %} + + + {% endfor %} + + + + {{ 'sum'|_ }} + {{ budgets.getBudgeted|formatAmount }} + {{ budgets.getSpent|formatAmount }} + {{ budgets.getLeft|formatAmount }} + {{ budgets.getOverspent|formatAmountPlain }} + + + +
    diff --git a/resources/twig/partials/reports/categories.twig b/resources/twig/partials/reports/categories.twig index 82c0a71c8d..66b7491081 100644 --- a/resources/twig/partials/reports/categories.twig +++ b/resources/twig/partials/reports/categories.twig @@ -1,24 +1,31 @@
    - - {{ 'categories'|_ }} +

    {{ 'categories'|_ }}

    - - - - - - {% for cat in categories.getCategories %} +
    +
    {{ 'categories'|_ }}{{ 'spent'|_ }}
    + - - + + - {% endfor %} - - - - -
    - {{ cat.name }} - {{ (cat.spent)|formatAmountPlain }}{{ 'categories'|_ }}{{ 'spent'|_ }}
    {{ 'sum'|_ }}{{ categories.getTotal|formatAmountPlain }}
    + + + {% for cat in categories.getCategories %} + + + {{ cat.name }} + + {{ (cat.spent)|formatAmountPlain }} + + {% endfor %} + + + + {{ 'sum'|_ }} + {{ categories.getTotal|formatAmountPlain }} + + + +
    diff --git a/resources/twig/partials/reports/expenses.twig b/resources/twig/partials/reports/expenses.twig index acb6890306..eb3f1d035c 100644 --- a/resources/twig/partials/reports/expenses.twig +++ b/resources/twig/partials/reports/expenses.twig @@ -1,34 +1,40 @@
    - - {{ 'expenses'|_ }} ({{ trans('firefly.topX',{number: expenseTopLength}) }}) +

    {{ 'expenses'|_ }}

    - - {% for expense in expenses.getExpenses %} - {% if loop.index > expenseTopLength %} - - {% else %} - - {% endif %} -
    - {{ expense.name }} - {% if expense.count > 1 %} -
    {{ expense.count }} {{ 'transactions'|_|lower }} +
    + + + {% for expense in expenses.getExpenses %} + {% if loop.index > expenseTopLength %} + + {% else %} + {% endif %} - - - - {% endfor %} - {% if expenses.getExpenses|length > expenseTopLength %} - - + + + {% endfor %} + + + {% if expenses.getExpenses|length > expenseTopLength %} + + + + {% endif %} + + + - {% endif %} - - - - -
    {{ (expense.amount)|formatAmountPlain }}
    - {{ trans('firefly.showTheRest',{number:incomeTopLength}) }} + + {{ expense.name }} + {% if expense.count > 1 %} +
    + {{ expense.count }} {{ 'transactions'|_|lower }} + {% endif %}
    {{ (expense.amount)|formatAmountPlain }}
    + {{ trans('firefly.showTheRest',{number:incomeTopLength}) }} +
    {{ 'sum'|_ }}{{ (expenses.getTotal)|formatAmountPlain }}
    {{ 'sum'|_ }}{{ (expenses.getTotal)|formatAmountPlain }}
    + +
    +
    diff --git a/resources/twig/partials/reports/income-vs-expenses.twig b/resources/twig/partials/reports/income-vs-expenses.twig index 0097003fe7..c3d6d52b84 100644 --- a/resources/twig/partials/reports/income-vs-expenses.twig +++ b/resources/twig/partials/reports/income-vs-expenses.twig @@ -1,20 +1,21 @@
    - - {{ 'incomeVsExpenses'|_ }} +

    {{ 'incomeVsExpenses'|_ }}

    +
    +
    + + + + + + + + + + + + + +
    {{ 'in'|_ }}{{ incomes.getTotal|formatAmount }}
    {{ 'out'|_ }}{{ (expenses.getTotal)|formatAmountPlain }}
    {{ 'difference'|_ }}{{ (incomes.getTotal + (expenses.getTotal * -1))|formatAmount }}
    - - - - - - - - - - - - - -
    {{ 'in'|_ }}{{ incomes.getTotal|formatAmount }}
    {{ 'out'|_ }}{{ (expenses.getTotal)|formatAmountPlain }}
    {{ 'difference'|_ }}{{ (incomes.getTotal + (expenses.getTotal * -1))|formatAmount }}
    diff --git a/resources/twig/partials/reports/income.twig b/resources/twig/partials/reports/income.twig index 9c85dd5ec8..d83f8573bf 100644 --- a/resources/twig/partials/reports/income.twig +++ b/resources/twig/partials/reports/income.twig @@ -1,34 +1,40 @@
    - - {{ 'income'|_ }} ({{ trans('firefly.topX',{number: incomeTopLength}) }}) +

    {{ 'income'|_ }}

    - - {% for income in incomes.getIncomes %} - {% if loop.index > incomeTopLength %} - - {% else %} - - {% endif %} -
    - {{ income.name }} - {% if income.count > 1 %} -
    {{ income.count }} {{ 'transactions'|_|lower }} +
    + + + {% for income in incomes.getIncomes %} + {% if loop.index > incomeTopLength %} + + {% else %} + {% endif %} - - - - {% endfor %} - {% if incomes.getIncomes|length > incomeTopLength %} - - + + + {% endfor %} + + + {% if incomes.getIncomes|length > incomeTopLength %} + + + + {% endif %} + + + - {% endif %} - - - - -
    {{ income.amount|formatAmount }}
    - {{ trans('firefly.showTheRest',{number:incomeTopLength}) }} + + {{ income.name }} + {% if income.count > 1 %} +
    + {{ income.count }} {{ 'transactions'|_|lower }} + {% endif %}
    {{ income.amount|formatAmount }}
    + {{ trans('firefly.showTheRest',{number:incomeTopLength}) }} +
    {{ 'sum'|_ }}{{ incomes.getTotal|formatAmount }}
    {{ 'sum'|_ }}{{ incomes.getTotal|formatAmount }}
    + +
    +
    diff --git a/resources/twig/piggy-banks/create.twig b/resources/twig/piggy-banks/create.twig index 43bcc06260..9e7027d7f6 100644 --- a/resources/twig/piggy-banks/create.twig +++ b/resources/twig/piggy-banks/create.twig @@ -6,55 +6,49 @@ {% block content %} {{ Form.open({'class' : 'form-horizontal','id' : 'store','url' : route('piggy-banks.store')}) }} - + -
    -
    -
    -
    - {{ 'mandatoryFields'|_ }} -
    -
    +
    +
    +
    +
    +

    {{ 'mandatoryFields'|_ }}

    +
    +
    - {{ ExpandedForm.text('name') }} - {{ ExpandedForm.select('account_id',accounts,null,{'label' : 'saveOnAccount'|_}) }} - {{ ExpandedForm.amount('targetamount') }} + {{ ExpandedForm.text('name') }} + {{ ExpandedForm.select('account_id',accounts,null,{'label' : 'saveOnAccount'|_}) }} + {{ ExpandedForm.amount('targetamount') }} +
    -
    -
    -
    -
    - {{ 'optionalFields'|_ }} +
    +
    +
    +

    {{ 'optionalFields'|_ }}

    +
    +
    + {{ ExpandedForm.date('targetdate') }} +
    -
    - {{ ExpandedForm.date('targetdate') }} - {{ ExpandedForm.checkbox('remind_me','1',false) }} - {{ ExpandedForm.select('reminder',periods,'month') }} -
    -
    - -
    -
    - {{ 'options'|_ }} + +
    +
    +

    {{ 'options'|_ }}

    +
    +
    + {{ ExpandedForm.optionsList('create','piggy bank') }} +
    +
    -
    - {{ ExpandedForm.optionsList('create','piggy bank') }} -
    -
    +
    -
    -
    -
    -

    - -

    -
    -
    - + {{ Form.close|raw }} {% endblock %} diff --git a/resources/twig/piggy-banks/delete.twig b/resources/twig/piggy-banks/delete.twig index 6bca7b2a0e..6b7570494c 100644 --- a/resources/twig/piggy-banks/delete.twig +++ b/resources/twig/piggy-banks/delete.twig @@ -5,30 +5,29 @@ {% endblock %} {% block content %} - {{ Form.open({'class' : 'form-horizontal','id' : 'destroy','url' : route('piggy-banks.destroy',piggyBank.id)}) }} -
    -
    -
    -
    - - {{ trans('form.delete_piggyBank', {'name': piggyBank.name}) }} -
    -
    -

    - {{ trans('form.permDeleteWarning') }} -

    -

    - {{ trans('form.piggyBank_areYouSure', {'name': piggyBank.name}) }} -

    + {{ Form.open({'class' : 'form-horizontal','id' : 'destroy','url' : route('piggy-banks.destroy',piggyBank.id)}) }} +
    +
    +
    +
    +

    {{ trans('form.delete_piggyBank', {'name': piggyBank.name}) }}

    +
    +
    +

    + {{ trans('form.permDeleteWarning') }} +

    -

    - - {{ trans('form.cancel') }} -

    +

    + {{ trans('form.piggyBank_areYouSure', {'name': piggyBank.name}) }} +

    +
    +
    -
    - + {{ Form.close|raw }} {% endblock %} diff --git a/resources/twig/piggy-banks/edit.twig b/resources/twig/piggy-banks/edit.twig index 8bb27ee256..82bd5aeda7 100644 --- a/resources/twig/piggy-banks/edit.twig +++ b/resources/twig/piggy-banks/edit.twig @@ -7,58 +7,51 @@ {% block content %} {{ Form.model(piggyBank, {'class' : 'form-horizontal','id' : 'update','url' : route('piggy-banks.update',piggyBank.id)}) }} - - + + -
    -
    -
    -
    - {{ 'mandatoryFields'|_ }} +
    +
    +
    +
    +

    {{ 'mandatoryFields'|_ }}

    +
    +
    + + {{ ExpandedForm.text('name') }} + {{ ExpandedForm.select('account_id',accounts,null,{'label' : 'saveOnAccount'|_}) }} + {{ ExpandedForm.amount('targetamount') }} + +
    -
    - {{ ExpandedForm.text('name') }} - {{ ExpandedForm.select('account_id',accounts,null,{'label' : 'saveOnAccount'|_}) }} - {{ ExpandedForm.amount('targetamount') }} - -
    +
    +
    +
    +

    {{ 'optionalFields'|_ }}

    +
    +
    + {{ ExpandedForm.date('targetdate') }} +
    +
    -
    -
    -
    -
    - {{ 'optionalFields'|_ }} -
    -
    - {{ ExpandedForm.date('targetdate') }} - {{ ExpandedForm.checkbox('remind_me','1',preFilled.remind_me) }} - {{ ExpandedForm.select('reminder',periods,preFilled.reminder) }} + +
    +
    +

    {{ 'options'|_ }}

    +
    +
    + {{ ExpandedForm.optionsList('update','piggy bank') }} +
    +
    +
    - - -
    -
    - {{ 'options'|_ }} -
    -
    - {{ ExpandedForm.optionsList('update','piggy bank') }} -
    -
    -
    -
    -
    -
    -

    - -

    -
    -
    - - + {{ Form.close|raw }} {% endblock %} diff --git a/resources/twig/piggy-banks/index.twig b/resources/twig/piggy-banks/index.twig index 7259605d34..1e32d4267a 100644 --- a/resources/twig/piggy-banks/index.twig +++ b/resources/twig/piggy-banks/index.twig @@ -5,19 +5,17 @@ {% endblock %} {% block content %} - -
    -
    {{ 'piggyBanks'|_ }}
    - {% include 'list/piggy-banks.twig' %} +
    +

    {{ 'piggyBanks'|_ }}

    +
    + {% include 'list/piggy-banks.twig' %} +
    +
    @@ -26,28 +24,34 @@
    - {{ 'account_status'|_ }} +

    {{ 'account_status'|_ }}

    - - - - - - - - - - {% for id,info in accounts %} +
    +
    {{ 'account'|_ }}{{ 'balance'|_ }}{{ 'left_for_piggy_banks'|_ }}{{ 'sum_of_piggy_banks'|_ }}{{ 'saved_so_far'|_ }}{{ 'left_to_save'|_ }}
    + - - - - - - + + + + + + - {% endfor %} -
    {{ info.name }}{{ info.balance|formatAmount }}{{ info.leftForPiggyBanks|formatAmount }}{{ info.sumOfTargets|formatAmount }}{{ info.sumOfSaved|formatAmount }}{{ info.leftToSave|formatAmount }}{{ 'account'|_ }}{{ 'balance'|_ }}{{ 'left_for_piggy_banks'|_ }}{{ 'sum_of_piggy_banks'|_ }}{{ 'saved_so_far'|_ }}{{ 'left_to_save'|_ }}
    + + + {% for id,info in accounts %} + + {{ info.name }} + {{ info.balance|formatAmount }} + {{ info.leftForPiggyBanks|formatAmount }} + {{ info.sumOfTargets|formatAmount }} + {{ info.sumOfSaved|formatAmount }} + {{ info.leftToSave|formatAmount }} + + {% endfor %} + + +
    diff --git a/resources/twig/piggy-banks/show.twig b/resources/twig/piggy-banks/show.twig index 09781b7e11..df3748e558 100644 --- a/resources/twig/piggy-banks/show.twig +++ b/resources/twig/piggy-banks/show.twig @@ -5,38 +5,36 @@ {% endblock %} {% block content %} -
    -
    -
    -
    - {{ 'events'|_ }} -
    -
    -
    -
    -
    -
    -
    +
    +
    - {{ 'details'|_ }} +

    {{ 'events'|_ }}

    +
    +
    +
    +
    +
    +
    +
    +
    +
    +

    {{ 'details'|_ }}

    -
    +
    +
    - -
    -
    - +
    +
    @@ -57,7 +55,7 @@ {% if piggyBank.reminder %} - - - + + - + + {% endif %} - - - - - - - -
    {{ 'account'|_ }} {{ piggyBank.account.name }}{{ 'start_date'|_ }} {% if piggyBank.startdate %} - {{ piggyBank.startdate.format('jS F Y')}} + {{ piggyBank.startdate.format('jS F Y') }} {% else %} {{ 'no_start_date'|_ }} {% endif %} @@ -74,51 +72,46 @@
    {{ 'reminder'|_ }} - {% if piggyBank.remind_me == 0 %} - {{ 'no_reminder'|_ }} - {% else %} - {{ 'every'|_ }} - {% if piggyBank.reminder_skip != 0 %} - {{ piggyBank.reminder_skip }} +
    {{ 'reminder'|_ }} + {% if piggyBank.remind_me == 0 %} + {{ 'no_reminder'|_ }} {% else %} - {{ piggyBank.reminder }}(s) + {{ 'every'|_ }} + {% if piggyBank.reminder_skip != 0 %} + {{ piggyBank.reminder_skip }} + {% else %} + {{ piggyBank.reminder }}(s) + {% endif %} {% endif %} - {% endif %} -
    {{ 'reminders_left'|_ }}{{ 'todo'|_ }}
    {{ 'expected_amount_per_reminder'|_ }}{{ 'todo'|_ }}
    +
    - {{ 'table'|_ }} +

    {{ 'table'|_ }}

    +
    +
    + {% include 'list/piggy-bank-events' %}
    - {% include 'list/piggy-bank-events' %}
    -
    +
    -
    +
    {% endblock %} {% block scripts %} - + - - - - - + + + + + {% endblock %} diff --git a/resources/twig/preferences/index.twig b/resources/twig/preferences/index.twig index 2135f9d005..bb0780104f 100644 --- a/resources/twig/preferences/index.twig +++ b/resources/twig/preferences/index.twig @@ -11,7 +11,7 @@
    - Home screen accounts +

    Home screen accounts

    Which accounts should be displayed on the home page?

    @@ -34,7 +34,7 @@
    - Budget settings +

    Budget settings

    @@ -48,7 +48,7 @@

    - View range +

    View range

    Some charts are automatically grouped in periods. What period would you prefer?

    @@ -92,9 +92,10 @@
    - Languages +

    Languages

    +

    Firefly III supports several languages. Which one do you prefer?

    {% for key, lang in Config.get('firefly.lang') %}