From 4d017dc8a9fd5f18c064b20f5398831fe2ffc8bd Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 20 Jun 2015 07:29:25 +0200 Subject: [PATCH] Updated boxes and what-not. --- config/firefly.php | 1 + resources/twig/accounts/create.twig | 18 +- resources/twig/accounts/delete.twig | 4 +- resources/twig/accounts/edit.twig | 24 +- resources/twig/accounts/index.twig | 4 +- resources/twig/accounts/show.twig | 12 +- resources/twig/auth/login.twig | 4 +- resources/twig/auth/password.twig | 4 +- resources/twig/auth/register.twig | 4 +- resources/twig/bills/create.twig | 18 +- resources/twig/bills/delete.twig | 4 +- resources/twig/bills/edit.twig | 18 +- resources/twig/bills/index.twig | 4 +- resources/twig/bills/show.twig | 24 +- resources/twig/budgets/create.twig | 12 +- resources/twig/budgets/delete.twig | 4 +- resources/twig/budgets/edit.twig | 12 +- resources/twig/budgets/index.twig | 28 +- resources/twig/budgets/noBudget.twig | 6 +- resources/twig/budgets/show.twig | 16 +- resources/twig/categories/create.twig | 12 +- resources/twig/categories/delete.twig | 4 +- resources/twig/categories/edit.twig | 12 +- resources/twig/categories/index.twig | 4 +- resources/twig/categories/noCategory.twig | 6 +- resources/twig/categories/show.twig | 18 +- resources/twig/currency/create.twig | 12 +- resources/twig/currency/delete.twig | 4 +- resources/twig/currency/edit.twig | 12 +- resources/twig/currency/index.twig | 6 +- resources/twig/index.twig | 58 +- resources/twig/layout/default.twig | 744 +----------------- resources/twig/list/reminders.twig | 6 +- resources/twig/partials/boxes.twig | 98 +-- resources/twig/partials/control-bar.twig | 33 + resources/twig/partials/reports/accounts.twig | 4 +- resources/twig/partials/reports/balance.twig | 4 +- resources/twig/partials/reports/bills.twig | 4 +- resources/twig/partials/reports/budgets.twig | 4 +- .../twig/partials/reports/categories.twig | 4 +- resources/twig/partials/reports/expenses.twig | 4 +- .../partials/reports/income-vs-expenses.twig | 4 +- resources/twig/partials/reports/income.twig | 4 +- resources/twig/piggy-banks/create.twig | 18 +- resources/twig/piggy-banks/delete.twig | 4 +- resources/twig/piggy-banks/edit.twig | 18 +- resources/twig/piggy-banks/index.twig | 8 +- resources/twig/piggy-banks/show.twig | 14 +- resources/twig/preferences/index.twig | 24 +- resources/twig/profile/change-password.twig | 6 +- resources/twig/profile/delete-account.twig | 4 +- resources/twig/profile/index.twig | 6 +- resources/twig/reminders/show.twig | 6 +- resources/twig/reports/index.twig | 12 +- resources/twig/reports/month.twig | 12 +- resources/twig/reports/year.twig | 24 +- resources/twig/search/index.twig | 36 +- resources/twig/tags/create.twig | 18 +- resources/twig/tags/delete.twig | 4 +- resources/twig/tags/edit.twig | 18 +- resources/twig/tags/index.twig | 12 +- resources/twig/tags/show.twig | 10 +- resources/twig/transactions/create.twig | 18 +- resources/twig/transactions/delete.twig | 4 +- resources/twig/transactions/edit.twig | 18 +- resources/twig/transactions/index.twig | 4 +- resources/twig/transactions/show.twig | 14 +- 67 files changed, 427 insertions(+), 1167 deletions(-) create mode 100644 resources/twig/partials/control-bar.twig diff --git a/config/firefly.php b/config/firefly.php index 95182d0d21..9aa03c3dc0 100644 --- a/config/firefly.php +++ b/config/firefly.php @@ -1,6 +1,7 @@ '3.3.3', 'index_periods' => ['1D', '1W', '1M', '3M', '6M', '1Y', 'custom'], 'budget_periods' => ['daily', 'weekly', 'monthly', 'quarterly', 'half-year', 'yearly'], 'piggy_bank_periods' => [ diff --git a/resources/twig/accounts/create.twig b/resources/twig/accounts/create.twig index b3a23b96c2..6c2e749133 100644 --- a/resources/twig/accounts/create.twig +++ b/resources/twig/accounts/create.twig @@ -10,11 +10,11 @@
-
-
+
+
{{ 'mandatoryFields'|_ }}
-
+
{{ ExpandedForm.text('name') }}
@@ -23,11 +23,11 @@
{% if what == 'asset' %} -
-
+
+
{{ 'optionalFields'|_ }}
-
+
{{ ExpandedForm.balance('openingBalance') }} {{ ExpandedForm.date('openingBalanceDate', phpdate('Y-m-d')) }} @@ -38,11 +38,11 @@
{% endif %} -
-
+
+
{{ 'options'|_ }}
-
+
{{ ExpandedForm.optionsList('create','account') }}
diff --git a/resources/twig/accounts/delete.twig b/resources/twig/accounts/delete.twig index a45377c6b1..9f90e66ce1 100644 --- a/resources/twig/accounts/delete.twig +++ b/resources/twig/accounts/delete.twig @@ -10,11 +10,11 @@
-
+
{{ trans('form.delete_account', {'name': account.name}) }}
-
+

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

diff --git a/resources/twig/accounts/edit.twig b/resources/twig/accounts/edit.twig index 3df84adf79..b6818f6cdb 100644 --- a/resources/twig/accounts/edit.twig +++ b/resources/twig/accounts/edit.twig @@ -11,22 +11,22 @@
-
-
+
+
{{ 'mandatoryFields'|_ }}
-
+
{{ ExpandedForm.text('name') }}
-
-
+
+
{{ 'optionalFields'|_ }}
-
+
{% if account.accounttype.type == 'Default account' or account.accounttype.type == 'Asset account' %} {{ ExpandedForm.balance('openingBalance',null, {'currency' : openingBalance ? openingBalance.transactionCurrency : null}) }} {{ ExpandedForm.date('openingBalanceDate') }} @@ -40,11 +40,11 @@ {% if Session.get('preFilled').accountRole == 'ccAsset' %} -
-
+
+
Credit card options
-
+
{{ ExpandedForm.select('ccType',Config.get('firefly.ccTypes')) }} {{ ExpandedForm.date('ccMonthlyPaymentDate',null,{'helpText' : 'Select any year and any month, it will be ignored anway. Only the day of the month is relevant.'}) }}
@@ -52,11 +52,11 @@ {% endif %} -
-
+
+
{{ 'options'|_ }}
-
+
{{ ExpandedForm.optionsList('update','account') }}
diff --git a/resources/twig/accounts/index.twig b/resources/twig/accounts/index.twig index bed25ed3bc..e10a6457d3 100644 --- a/resources/twig/accounts/index.twig +++ b/resources/twig/accounts/index.twig @@ -15,8 +15,8 @@
-
-
+
+
{{ subTitle}} diff --git a/resources/twig/accounts/show.twig b/resources/twig/accounts/show.twig index 02477a94dc..dc7d6566c9 100644 --- a/resources/twig/accounts/show.twig +++ b/resources/twig/accounts/show.twig @@ -7,8 +7,8 @@ {% block content %}
-
-
+
+
{{ account.name }} @@ -26,7 +26,7 @@
-
+
@@ -36,11 +36,11 @@
-
-
+
+
{{ 'transactions'|_ }}
-
+
{% include 'list/journals.twig' with {sorting:true} %}
diff --git a/resources/twig/auth/login.twig b/resources/twig/auth/login.twig index 9273e51566..8cd48afb22 100644 --- a/resources/twig/auth/login.twig +++ b/resources/twig/auth/login.twig @@ -17,10 +17,10 @@