From bf516d4d21a72b49529d76ece9bce537f6780860 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 20 Jun 2015 09:54:01 +0200 Subject: [PATCH] Fix some things. --- public/css/firefly.css | 12 +-- public/js/gcharts.options.js | 4 +- resources/twig/accounts/create.twig | 6 +- resources/twig/accounts/delete.twig | 5 +- resources/twig/accounts/edit.twig | 8 +- resources/twig/accounts/show.twig | 4 +- resources/twig/bills/create.twig | 6 +- resources/twig/bills/delete.twig | 5 +- resources/twig/bills/edit.twig | 6 +- resources/twig/bills/index.twig | 2 +- resources/twig/bills/show.twig | 8 +- resources/twig/budgets/create.twig | 6 +- resources/twig/budgets/delete.twig | 5 +- resources/twig/budgets/edit.twig | 4 +- resources/twig/budgets/index.twig | 15 ++-- resources/twig/budgets/noBudget.twig | 2 +- resources/twig/budgets/show.twig | 6 +- resources/twig/categories/create.twig | 4 +- resources/twig/categories/delete.twig | 5 +- resources/twig/currency/delete.twig | 2 +- resources/twig/index.twig | 4 +- resources/twig/layout/default.twig | 85 +++------------------- resources/twig/piggy-banks/delete.twig | 2 +- resources/twig/profile/delete-account.twig | 2 +- resources/twig/search/index.twig | 12 --- resources/twig/tags/delete.twig | 2 +- resources/twig/transactions/delete.twig | 2 +- 27 files changed, 66 insertions(+), 158 deletions(-) diff --git a/public/css/firefly.css b/public/css/firefly.css index bb147ee849..8cf5bf464b 100644 --- a/public/css/firefly.css +++ b/public/css/firefly.css @@ -8,12 +8,6 @@ } #map-canvas { height: 100%; - margin: 0px; - padding: 0px -} -.medium { - font-size: 16px; -} - -a.panel-link {color:#fff;text-decoration: none;} -a.panel-link:hover {color:#fff;text-decoration: none;} \ No newline at end of file + margin: 0; + padding: 0; +} \ No newline at end of file diff --git a/public/js/gcharts.options.js b/public/js/gcharts.options.js index 54647a8e4b..0d17506b69 100644 --- a/public/js/gcharts.options.js +++ b/public/js/gcharts.options.js @@ -47,8 +47,8 @@ var defaultAreaChartOptions = { chartArea: { left: 50, top: 10, - width: '85%', - height: '80%' + width: '95%', + height: '90%' }, height: 400, colors: ["#357ca5", "#008d4c", "#db8b0b", "#ca195a", "#555299", "#4285f4", "#db4437", "#f4b400", "#0f9d58", "#ab47bc", "#00acc1", "#ff7043", "#9e9d24", "#5c6bc0", "#f06292", "#00796b", "#c2185b"], diff --git a/resources/twig/accounts/create.twig b/resources/twig/accounts/create.twig index 6c2e749133..9d859121ba 100644 --- a/resources/twig/accounts/create.twig +++ b/resources/twig/accounts/create.twig @@ -12,7 +12,7 @@
- {{ 'mandatoryFields'|_ }} +

{{ 'mandatoryFields'|_ }}

{{ ExpandedForm.text('name') }} @@ -25,7 +25,7 @@ {% if what == 'asset' %}
- {{ 'optionalFields'|_ }} +

{{ 'optionalFields'|_ }}

@@ -40,7 +40,7 @@
- {{ 'options'|_ }} +

{{ 'options'|_ }}

{{ ExpandedForm.optionsList('create','account') }} diff --git a/resources/twig/accounts/delete.twig b/resources/twig/accounts/delete.twig index 9f90e66ce1..647e28309b 100644 --- a/resources/twig/accounts/delete.twig +++ b/resources/twig/accounts/delete.twig @@ -9,10 +9,9 @@ {{ Form.open({'class' : 'form-horizontal','id' : 'destroy','url' : route('accounts.destroy',account.id)}) }}
-
+
- - {{ trans('form.delete_account', {'name': account.name}) }} +

{{ trans('form.delete_account', {'name': account.name}) }}

diff --git a/resources/twig/accounts/edit.twig b/resources/twig/accounts/edit.twig index b6818f6cdb..bbaadb4255 100644 --- a/resources/twig/accounts/edit.twig +++ b/resources/twig/accounts/edit.twig @@ -13,7 +13,7 @@

- {{ 'mandatoryFields'|_ }} +

{{ 'mandatoryFields'|_ }}

{{ ExpandedForm.text('name') }} @@ -24,7 +24,7 @@
- {{ 'optionalFields'|_ }} +

{{ 'optionalFields'|_ }}

{% if account.accounttype.type == 'Default account' or account.accounttype.type == 'Asset account' %} @@ -42,7 +42,7 @@ {% if Session.get('preFilled').accountRole == 'ccAsset' %}
- Credit card options +

Credit card options

{{ ExpandedForm.select('ccType',Config.get('firefly.ccTypes')) }} @@ -54,7 +54,7 @@
- {{ 'options'|_ }} +

{{ 'options'|_ }}

{{ ExpandedForm.optionsList('update','account') }} diff --git a/resources/twig/accounts/show.twig b/resources/twig/accounts/show.twig index dc7d6566c9..c4b106d1f4 100644 --- a/resources/twig/accounts/show.twig +++ b/resources/twig/accounts/show.twig @@ -9,7 +9,7 @@
- {{ account.name }} +

{{ account.name }}

@@ -38,7 +38,7 @@
- {{ 'transactions'|_ }} +

{{ 'transactions'|_ }}

{% include 'list/journals.twig' with {sorting:true} %} diff --git a/resources/twig/bills/create.twig b/resources/twig/bills/create.twig index 72103ab3b0..43f8ee11d3 100644 --- a/resources/twig/bills/create.twig +++ b/resources/twig/bills/create.twig @@ -12,7 +12,7 @@
- {{ 'mandatoryFields'|_ }} +

{{ 'mandatoryFields'|_ }}

{{ ExpandedForm.text('name') }} @@ -28,7 +28,7 @@
- {{ 'optionalFields'|_ }} +

{{ 'optionalFields'|_ }}

{{ ExpandedForm.integer('skip',0) }} @@ -40,7 +40,7 @@
- {{ 'options'|_ }} +

{{ 'options'|_ }}

{{ ExpandedForm.optionsList('create','bill') }} diff --git a/resources/twig/bills/delete.twig b/resources/twig/bills/delete.twig index 67ad0b4b32..4500018482 100644 --- a/resources/twig/bills/delete.twig +++ b/resources/twig/bills/delete.twig @@ -9,10 +9,9 @@ {{ Form.open({'class' : 'form-horizontal','id' : 'destroy','url' : route('bills.destroy',bill.id)}) }}
-
+
- - {{ trans('form.delete_bill', {'name': bill.name}) }} +

{{ trans('form.delete_bill', {'name': bill.name}) }}

diff --git a/resources/twig/bills/edit.twig b/resources/twig/bills/edit.twig index 69a3b7ba48..c8236cc76d 100644 --- a/resources/twig/bills/edit.twig +++ b/resources/twig/bills/edit.twig @@ -14,7 +14,7 @@

- {{ 'mandatoryFields'|_ }} +

{{ 'mandatoryFields'|_ }}

{{ ExpandedForm.text('name') }} @@ -31,7 +31,7 @@
- {{ 'optionalFields'|_ }} +

{{ 'optionalFields'|_ }}

{{ ExpandedForm.integer('skip') }} @@ -42,7 +42,7 @@
- {{ 'options'|_ }} +

{{ 'options'|_ }}

{{ ExpandedForm.optionsList('update','bill') }} diff --git a/resources/twig/bills/index.twig b/resources/twig/bills/index.twig index de0d27ab2e..d0d8a2f77b 100644 --- a/resources/twig/bills/index.twig +++ b/resources/twig/bills/index.twig @@ -9,7 +9,7 @@
- {{ title }} +

{{ title }}

diff --git a/resources/twig/bills/show.twig b/resources/twig/bills/show.twig index 23350f7a46..07cce9d12f 100644 --- a/resources/twig/bills/show.twig +++ b/resources/twig/bills/show.twig @@ -10,7 +10,7 @@
- {{ bill.name }} +

{{ bill.name }}

{% if bill.active %} @@ -67,7 +67,7 @@
- More +

More

@@ -82,7 +82,7 @@

- Chart +

Chart

@@ -95,7 +95,7 @@
- Connected transaction journals +

Connected transaction journals

{% include 'list/journals' %} diff --git a/resources/twig/budgets/create.twig b/resources/twig/budgets/create.twig index bafbf2f0a5..fec9f883bc 100644 --- a/resources/twig/budgets/create.twig +++ b/resources/twig/budgets/create.twig @@ -10,7 +10,7 @@
- {{ 'mandatoryFields'|_ }} +

{{ 'mandatoryFields'|_ }}

{{ ExpandedForm.text('name') }} @@ -21,7 +21,7 @@
- {{ 'options'|_ }} +

{{ 'options'|_ }}

{{ ExpandedForm.optionsList('create','budget') }} @@ -35,7 +35,7 @@

diff --git a/resources/twig/budgets/delete.twig b/resources/twig/budgets/delete.twig index dd96f0483f..b4ec7f5dce 100644 --- a/resources/twig/budgets/delete.twig +++ b/resources/twig/budgets/delete.twig @@ -8,10 +8,9 @@ {{ Form.open({'class' : 'form-horizontal','id' : 'destroy','url' : route('budgets.destroy',budget.id) }) }}
-
+
- - {{ trans('form.delete_budget', {'name': budget.name}) }} +

{{ trans('form.delete_budget', {'name': budget.name}) }}

diff --git a/resources/twig/budgets/edit.twig b/resources/twig/budgets/edit.twig index 8996e5782b..1fdee3dc46 100644 --- a/resources/twig/budgets/edit.twig +++ b/resources/twig/budgets/edit.twig @@ -11,7 +11,7 @@

- {{ 'mandatoryFields'|_ }} +

{{ 'mandatoryFields'|_ }}

{{ ExpandedForm.checkbox('active') }} @@ -24,7 +24,7 @@
- {{ 'options'|_ }} +

{{ 'options'|_ }}

{{ ExpandedForm.optionsList('update','budget') }} diff --git a/resources/twig/budgets/index.twig b/resources/twig/budgets/index.twig index e843de6475..0d16923359 100644 --- a/resources/twig/budgets/index.twig +++ b/resources/twig/budgets/index.twig @@ -9,8 +9,7 @@
- - {{ Session.get('start').formatLocalized(monthFormat) }} +

{{ Session.get('start').formatLocalized(monthFormat) }}

@@ -54,8 +53,7 @@
- - {{ 'transactionsWithoutBudget'|_ }} +

{{ 'transactionsWithoutBudget'|_ }}

@@ -74,13 +72,14 @@

- +

{% if budget.currentRep %} {{ budget.name }} {% else %} {{ budget.name }} {% endif %} +

@@ -121,8 +120,7 @@
- - {{ 'createBudget'|_ }} +

{{ 'createBudget'|_ }}

{{ 'createBudget'|_ }} @@ -133,8 +131,7 @@
- - {{ 'inactiveBudgets'|_ }} +

{{ 'inactiveBudgets'|_ }}

{% for index,budget in inactive %} diff --git a/resources/twig/budgets/noBudget.twig b/resources/twig/budgets/noBudget.twig index 94c0a1048d..733f52eae4 100644 --- a/resources/twig/budgets/noBudget.twig +++ b/resources/twig/budgets/noBudget.twig @@ -9,7 +9,7 @@
- {{ subTitle }} +

{{ subTitle }}

{% include 'list/journals.twig' with {'journals': list} %} diff --git a/resources/twig/budgets/show.twig b/resources/twig/budgets/show.twig index bd8115e6bc..2746d10ffc 100644 --- a/resources/twig/budgets/show.twig +++ b/resources/twig/budgets/show.twig @@ -9,7 +9,7 @@
- {{ 'overview'|_ }} +

{{ 'overview'|_ }}

@@ -33,7 +33,7 @@
- {{ 'transactions'|_ }} +

{{ 'transactions'|_ }}

{% include 'list/journals.twig' %}
@@ -47,7 +47,7 @@ {% for rep in limit.limitRepetitions %}
diff --git a/resources/twig/categories/create.twig b/resources/twig/categories/create.twig index d5696abebf..15435fe5aa 100644 --- a/resources/twig/categories/create.twig +++ b/resources/twig/categories/create.twig @@ -11,7 +11,7 @@
- {{ 'mandatoryFields'|_ }} +

{{ 'mandatoryFields'|_ }}

{{ ExpandedForm.text('name') }} @@ -24,7 +24,7 @@
- {{ 'options'|_ }} +

{{ 'options'|_ }}

{{ ExpandedForm.optionsList('create','category') }} diff --git a/resources/twig/categories/delete.twig b/resources/twig/categories/delete.twig index 6bd776df01..67755118d0 100644 --- a/resources/twig/categories/delete.twig +++ b/resources/twig/categories/delete.twig @@ -8,10 +8,9 @@ {{ Form.open({'class' : 'form-horizontal','id' : 'destroy','url' : route('categories.destroy',category.id)}) }}
-
+
- - {{ trans('form.delete_category', {'name': category.name}) }} +

{{ trans('form.delete_category', {'name': category.name}) }}

diff --git a/resources/twig/currency/delete.twig b/resources/twig/currency/delete.twig index 823e597040..1c51ca2dec 100644 --- a/resources/twig/currency/delete.twig +++ b/resources/twig/currency/delete.twig @@ -9,7 +9,7 @@ {{ Form.open({'class' : 'form-horizontal','id' : 'destroy','url' : route('currency.destroy',currency.id)}) }}

-
+
{{ trans('form.delete_currency', {'name': currency.name}) }} diff --git a/resources/twig/index.twig b/resources/twig/index.twig index 9563949094..7b3bfc3bcd 100644 --- a/resources/twig/index.twig +++ b/resources/twig/index.twig @@ -135,12 +135,12 @@
-
+
{% if account.percentage <= 50 %} {{account.piggyBalance|formatAmountPlain}} {{ 'divided'|_}} {% endif %}
-
+
{% if account.percentage > 50 %} {{account.difference|formatAmountPlain}} {{ 'toDivide'|_}} {% endif %} diff --git a/resources/twig/layout/default.twig b/resources/twig/layout/default.twig index b1b9975d91..ae5ebe1579 100644 --- a/resources/twig/layout/default.twig +++ b/resources/twig/layout/default.twig @@ -24,6 +24,9 @@ folder instead of downloading all of them to reduce the load. --> + + + -
  • + + -
  • +