Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Remove inline CSS
James Cole654f2ee48911
diff --git a/public/v1/css/firefly.css b/public/v1/css/firefly.cssindex 9937ed1ae2..221e26fd85 100644--- a/public/v1/css/firefly.css+++ b/public/v1/css/firefly.css@@ -33,6 +33,9 @@.center-chart {width:100%;margin:0 auto;}.map-size {width:100%;height:300px;}+/* install box border */+.install-box-border {border:1px #ddd solid;}+/** tables **/th.ten {width:10%;}td.quarter th.quarter {width:25%;}@@ -41,6 +44,110 @@ td.third th.third {width:33%;}td.forty th.forty {width:40%;}td.half th.half {width:50%;}+/** width for progress bar **/+.width-0 {width:0;}+.width-1 {width:1%;}+.width-2 {width:2%;}+.width-3 {width:3%;}+.width-4 {width:4%;}+.width-5 {width:5%;}+.width-6 {width:6%;}+.width-7 {width:7%;}+.width-8 {width:8%;}+.width-9 {width:9%;}+.width-10 {width:10%;}+.width-11 {width:11%;}+.width-12 {width:12%;}+.width-13 {width:13%;}+.width-14 {width:14%;}+.width-15 {width:15%;}+.width-16 {width:16%;}+.width-17 {width:17%;}+.width-18 {width:18%;}+.width-19 {width:19%;}+.width-20 {width:20%;}+.width-21 {width:21%;}+.width-22 {width:22%;}+.width-23 {width:23%;}+.width-24 {width:24%;}+.width-25 {width:25%;}+.width-26 {width:26%;}+.width-27 {width:27%;}+.width-28 {width:28%;}+.width-29 {width:29%;}+.width-30 {width:30%;}+.width-31 {width:31%;}+.width-32 {width:32%;}+.width-33 {width:33%;}+.width-34 {width:34%;}+.width-35 {width:35%;}+.width-36 {width:36%;}+.width-37 {width:37%;}+.width-38 {width:38%;}+.width-39 {width:39%;}+.width-40 {width:40%;}+.width-41 {width:41%;}+.width-42 {width:42%;}+.width-43 {width:43%;}+.width-44 {width:44%;}+.width-45 {width:45%;}+.width-46 {width:46%;}+.width-47 {width:47%;}+.width-48 {width:48%;}+.width-49 {width:49%;}+.width-50 {width:50%;}+.width-51 {width:51%;}+.width-52 {width:52%;}+.width-53 {width:53%;}+.width-54 {width:54%;}+.width-55 {width:55%;}+.width-56 {width:56%;}+.width-57 {width:57%;}+.width-58 {width:58%;}+.width-59 {width:59%;}+.width-60 {width:60%;}+.width-61 {width:61%;}+.width-62 {width:62%;}+.width-63 {width:63%;}+.width-64 {width:64%;}+.width-65 {width:65%;}+.width-66 {width:66%;}+.width-67 {width:67%;}+.width-68 {width:68%;}+.width-69 {width:69%;}+.width-70 {width:70%;}+.width-71 {width:71%;}+.width-72 {width:72%;}+.width-73 {width:73%;}+.width-74 {width:74%;}+.width-75 {width:75%;}+.width-76 {width:76%;}+.width-77 {width:77%;}+.width-78 {width:78%;}+.width-79 {width:79%;}+.width-80 {width:80%;}+.width-81 {width:81%;}+.width-82 {width:82%;}+.width-83 {width:83%;}+.width-84 {width:84%;}+.width-85 {width:85%;}+.width-86 {width:86%;}+.width-87 {width:87%;}+.width-88 {width:88%;}+.width-89 {width:89%;}+.width-90 {width:90%;}+.width-91 {width:91%;}+.width-92 {width:92%;}+.width-93 {width:93%;}+.width-94 {width:94%;}+.width-95 {width:95%;}+.width-96 {width:96%;}+.width-97 {width:97%;}+.width-98 {width:98%;}+.width-99 {width:99%;}+.width-100 {width:100%;}++/* spacing and padding */.m-0 { margin:0!important; }.m-1 { margin:.25rem!important; }diff --git a/resources/views/accounts/reconcile/index.twig b/resources/views/accounts/reconcile/index.twigindex 9e81a96bb4..9f87688db4 100644--- a/resources/views/accounts/reconcile/index.twig+++ b/resources/views/accounts/reconcile/index.twig@@ -72,16 +72,16 @@<div class="update_balance_instruction">{{ 'update_balance_dates_instruction'|_ }}</div>- <div class="select_transactions_instruction" style="display:none;">+ <div class="select_transactions_instruction hidden">{{ 'select_transactions_instruction'|_ }}</div>- <div class="date_change_warning text-danger" style="display:none;">+ <div class="date_change_warning text-danger hidden">{{ 'date_change_instruction'|_ }}</div></td><td><a href="#" class="btn btn-default start_reconcile">{{ 'start_reconcile'|_ }}</a>- <a href="#" class="btn btn-default change_date_button" style="display: none;">{{ 'update_selection'|_ }}</a>+ <a href="#" class="btn btn-default change_date_button hidden">{{ 'update_selection'|_ }}</a></td></tr></tfoot>diff --git a/resources/views/accounts/reconcile/overview.twig b/resources/views/accounts/reconcile/overview.twigindex 914a897bf6..33d964455c 100644--- a/resources/views/accounts/reconcile/overview.twig+++ b/resources/views/accounts/reconcile/overview.twig@@ -8,7 +8,7 @@</h4></div>- <form style="display: inline;" class="form-horizontal" id="income" action="{{ route }}" method="POST">+ <form class="form-horizontal inline" id="income" action="{{ route }}" method="POST"><div class="modal-body"><input type="hidden" name="_token" value="{{ csrf_token() }}"/><input type="hidden" name="start" value="{{ start.format('Y-m-d') }}"/>diff --git a/resources/views/accounts/reconcile/show.twig b/resources/views/accounts/reconcile/show.twigindex 56e9713bdc..e151a1f6b0 100644--- a/resources/views/accounts/reconcile/show.twig+++ b/resources/views/accounts/reconcile/show.twig@@ -81,7 +81,7 @@<td>{% for tag in journal.tags %}- <h4 style="display: inline;"><a class="label label-success" href="{{ route('tags.show',tag) }}">+ <h4 class="inline"><a class="label label-success" href="{{ route('tags.show',tag) }}">{% if tag.tag_mode == 'nothing' %}<span class="fa fa-fw fa-tag"></span>{% endif %}diff --git a/resources/views/accounts/reconcile/transactions.twig b/resources/views/accounts/reconcile/transactions.twigindex 6d89f1e162..354048aff0 100644--- a/resources/views/accounts/reconcile/transactions.twig+++ b/resources/views/accounts/reconcile/transactions.twig@@ -101,7 +101,7 @@</td><td class="text-right">- <span style="margin-right:5px;">+ <span class="mr-1">{{ formatAmountBySymbol(journal.amount, journal.currency_symbol, journal.currency_decimal_places) }}{% if null != journal.foreign_amount %}({{ formatAmountBySymbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }})diff --git a/resources/views/bills/index.twig b/resources/views/bills/index.twigindex abb3a8f454..973dddc27a 100644--- a/resources/views/bills/index.twig+++ b/resources/views/bills/index.twig@@ -23,7 +23,7 @@</div></div><div class="box-body no-padding">- <div style="padding:8px;">+ <div class="m-1"><a class="btn btn-success" href="{{ route('subscriptions.create') }}"><span class="fa fa-plus fa-fw"></span> {{ 'create_new_bill'|_ }}</a></div>{% include 'list/bills' %}diff --git a/resources/views/budgets/budget-limits/create.twig b/resources/views/budgets/budget-limits/create.twigindex 112bd739e7..ad56f58b7b 100644--- a/resources/views/budgets/budget-limits/create.twig+++ b/resources/views/budgets/budget-limits/create.twig@@ -9,7 +9,7 @@</h4></div>- <form style="display: inline;" id="income" action="{{ route('budget-limits.store') }}" method="POST">+ <form class="inline" id="income" action="{{ route('budget-limits.store') }}" method="POST"><div class="modal-body"><input type="hidden" name="_token" value="{{ csrf_token() }}"/><input type="hidden" name="start" value="{{ start.format('Y-m-d') }}"/>diff --git a/resources/views/budgets/budget-limits/edit.twig b/resources/views/budgets/budget-limits/edit.twigindex 0a29b61b79..62247573df 100644--- a/resources/views/budgets/budget-limits/edit.twig+++ b/resources/views/budgets/budget-limits/edit.twig@@ -8,7 +8,7 @@</h4></div>- <form style="display: inline;" action="{{ route('budget-limits.update', [budgetLimit.id]) }}" method="POST">+ <form class="inline" action="{{ route('budget-limits.update', [budgetLimit.id]) }}" method="POST"><div class="modal-body"><input type="hidden" name="_token" value="{{ csrf_token() }}"/><input type="hidden" name="redirect" value="true"/>diff --git a/resources/views/budgets/show.twig b/resources/views/budgets/show.twigindex 0f4a0bf84d..f13da32c4d 100644--- a/resources/views/budgets/show.twig+++ b/resources/views/budgets/show.twig@@ -176,7 +176,7 @@{% endif %}</td></tr>- {% if limit.spent > 0 %}+ {% if 0 != bccomp('0', limit.spent) %}<tr><td colspan="2">{% set overspent = limit.amount + limit.spent < 0 %}@@ -184,18 +184,18 @@{% if overspent %}{% set pct = (limit.spent != 0 ? (limit.amount / (limit.spent*-1))*100 : 0) %} {# must have -1 here #}<div class="progress progress-striped">- <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="{{ pct|round }}"+ <div class="progress-bar progress-bar-warning width-{{ pct|round }}" role="progressbar" aria-valuenow="{{ pct|round }}"aria-valuemin="0"- aria-valuemax="100" style="width: {{ pct|round }}%;"></div>- <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="{{ (100-pct)|round }}"- aria-valuemin="0" aria-valuemax="100" style="width: {{ (100-pct)|round }}%;"></div>+ aria-valuemax="100"></div>+ <div class="progress-bar progress-bar-danger width-{{ 100-pct|round }}" role="progressbar" aria-valuenow="{{ (100-pct)|round }}"+ aria-valuemin="0" aria-valuemax="100"></div></div>{% else %}{% set pct = (limit.amount != 0 ? (((limit.spent*-1) / limit.amount)*100) : 0) %} {# must have -1 here #}<div class="progress progress-striped">- <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="{{ pct|round }}"+ <div class="progress-bar progress-bar-success width-{{ pct|round }}" role="progressbar" aria-valuenow="{{ pct|round }}"aria-valuemin="0"- aria-valuemax="100" style="width: {{ pct|round }}%;"></div>+ aria-valuemax="100"></div></div>{% endif %}</td>diff --git a/resources/views/errors/500.blade.php b/resources/views/errors/500.blade.phpindex 14bfb0c5fc..f47617549f 100644--- a/resources/views/errors/500.blade.php+++ b/resources/views/errors/500.blade.php@@ -52,7 +52,7 @@<h4>{{ trans('errors.stacktrace') }}</h4>- <div style="font-family: monospace;font-size:11px;">+ <div class="monospace">{!! nl2br($exception->getTraceAsString()) !!}</div></div>diff --git a/resources/views/errors/DatabaseException.blade.php b/resources/views/errors/DatabaseException.blade.phpindex ae65ae5fdf..de6e334de2 100644--- a/resources/views/errors/DatabaseException.blade.php+++ b/resources/views/errors/DatabaseException.blade.php@@ -52,7 +52,7 @@<h4>{{ trans('errors.stacktrace') }}</h4>- <div style="font-family: monospace;font-size:11px;">+ <div class="monospace">{!! nl2br($exception->getTraceAsString()) !!}</div></div>diff --git a/resources/views/errors/FireflyException.blade.php b/resources/views/errors/FireflyException.blade.phpindex d1311f1cb3..0ba68826ae 100644--- a/resources/views/errors/FireflyException.blade.php+++ b/resources/views/errors/FireflyException.blade.php@@ -66,7 +66,7 @@<h4>{{ trans('errors.stacktrace') }}</h4>- <div style="font-family: monospace;font-size:11px;">+ <div class="monospace">{!! nl2br($exception->getTraceAsString()) !!}</div></div>diff --git a/resources/views/form/assetAccountCheckList.twig b/resources/views/form/assetAccountCheckList.twigindex f0f2bdc025..f0e782c05d 100644--- a/resources/views/form/assetAccountCheckList.twig+++ b/resources/views/form/assetAccountCheckList.twig@@ -5,7 +5,7 @@{% for groupName, accounts in grouped %}<strong>{{ groupName }}</strong><br/>{% for id, account in accounts %}- <div class="checkbox" style="margin-left:2em;">+ <div class="checkbox ml-4"><label>{% if account in selected or (selected|length == 0 and options.select_all == true) %}{{ Html.checkbox(name~'[]',true, id).id(id) }}diff --git a/resources/views/install/index-old.twig b/resources/views/install/index-old.twigdeleted file mode 100644index e3c0a668b8..0000000000--- a/resources/views/install/index-old.twig+++ /dev/null@@ -1,26 +0,0 @@-{% extends "./layout/install" %}--{% block content %}- <div class="card mb-2">- <div class="card-body login-card-body">- <p class="login-box-msg">Please wait...</p>- <div class="row">- <div class="col-lg-12">- <div id="status-box" style="border:1px #ddd solid;padding:5px;">- <span class="fa fa-spin fa-spinner"></span> Waiting to start...- </div>- </div>- </div>- </div>- </div>-{% endblock %}-{% block scripts %}- <script type="text/javascript" nonce="{{ JS_NONCE }}">- var token = '{{ csrf_token() }}';- var index = 0;- var runCommandUrl = '{{ route('installer.runCommand') }}';- var homeUrl = '{{ route('flush') }}';- </script>- <script type="text/javascript" src="v1/js/ff/install/Xindex.js" nonce="{{ JS_NONCE }}"></script>-{% endblock %}-diff --git a/resources/views/install/index.blade.php b/resources/views/install/index.blade.phpindex 5b2de35b59..51c2a984ab 100644--- a/resources/views/install/index.blade.php+++ b/resources/views/install/index.blade.php@@ -83,7 +83,7 @@<p>The upgrade and installation is ongoing. Please track its progress through the box below.</p><div class="row"><div class="col-lg-12">- <div id="status-box" style="border:1px #ddd solid;padding:5px;">+ <div id="status-box p-3 install-box-border"><span class="fa fa-spin fa-spinner"></span> Waiting to start...</div></div>diff --git a/resources/views/json/piggy-banks.twig b/resources/views/json/piggy-banks.twigindex cd5750c43d..5a8e7b5061 100644--- a/resources/views/json/piggy-banks.twig+++ b/resources/views/json/piggy-banks.twig@@ -7,8 +7,7 @@{% for entry in info %}<strong>{{ entry.name }}</strong><br/><div class="progress">- <div class="progress-bar" role="progressbar" aria-valuenow="{{ entry.percentage }}" aria-valuemin="0" aria-valuemax="100"- style="width: {{ entry.percentage|round }}%;">+ <div class="progress-bar width-{{ entry.percentage|round }}" role="progressbar" aria-valuenow="{{ entry.percentage }}" aria-valuemin="0" aria-valuemax="100">{% if entry.percentage >=20 %}{% if convertToPrimary and 0 != avg.pc_amount %}{{ formatAmountBySymbol(entry.pc_amount, entry.primary_currency_symbol, entry.primary_currency_decimal_places, false) }}diff --git a/resources/views/layout/v2/error.blade.php b/resources/views/layout/v2/error.blade.phpindex ea4887609e..4c683f8f38 100644--- a/resources/views/layout/v2/error.blade.php+++ b/resources/views/layout/v2/error.blade.php@@ -63,6 +63,9 @@</script><meta name="viewport" content="width=device-width, initial-scale=1.0">@vite(['src/sass/app.scss'])+ <style nonce="{{ $JS_NONCE ?? '' }}">+ .monospace {font-family: monospace;font-size:11px;}+ </style></head><body class="container bg-body-secondary">diff --git a/resources/views/list/groups.twig b/resources/views/list/groups.twigindex eb33dba5ea..38ba197057 100644--- a/resources/views/list/groups.twig+++ b/resources/views/list/groups.twig@@ -8,10 +8,10 @@{% endif %}<td colspan="1" class="hidden-xs"><!-- Single button -->- <div class="btn-group btn-group-xs action-menu pull-right" style="display: none;">+ <div class="btn-group btn-group-xs action-menu pull-right hidden"><button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"aria-haspopup="true" aria-expanded="false">- {{ 'actions'|_ }} <span class="caret"></span>+ {{ 'actions'|_ }}<span class="caret"></span></button><ul class="dropdown-menu dropdown-menu-right"><li><a href="#" class="mass-edit"><span class="fa fa-fw fa-pencil"></span>@@ -424,7 +424,7 @@<td colspan="8"><div class="pull-right"><!-- Single button -->- <div class="btn-group action-menu btn-group-xs pull-right" style="display:none;">+ <div class="btn-group action-menu btn-group-xs pull-right hidden"><button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"aria-haspopup="true" aria-expanded="false">{{ 'actions'|_ }} <span class="caret"></span>diff --git a/resources/views/piggy-banks/add.twig b/resources/views/piggy-banks/add.twigindex 3f07365ed8..d7f7f7de86 100644--- a/resources/views/piggy-banks/add.twig+++ b/resources/views/piggy-banks/add.twig@@ -6,7 +6,7 @@<h4 class="modal-title">{{ trans('firefly.add_money_to_piggy_title', {name: piggyBank.name}) }}</h4></div>{% if total > 0 %}- <form style="display: inline;" id="add" action="{{ route('piggy-banks.add', piggyBank.id) }}" method="POST">+ <form class="inline" id="add" action="{{ route('piggy-banks.add', piggyBank.id) }}" method="POST"><div class="modal-body"><input type="hidden" name="_token" value="{{ csrf_token() }}"/>{% for account in accounts %}diff --git a/resources/views/piggy-banks/remove.twig b/resources/views/piggy-banks/remove.twigindex e4b381aa8d..4a2cafeba0 100644--- a/resources/views/piggy-banks/remove.twig+++ b/resources/views/piggy-banks/remove.twig@@ -1,6 +1,6 @@<div class="modal-dialog"><div class="modal-content">- <form style="display: inline;" id="remove" action="{{ route('piggy-banks.remove', piggyBank.id) }}" method="POST">+ <form class="inline" id="remove" action="{{ route('piggy-banks.remove', piggyBank.id) }}" method="POST"><input type="hidden" name="_token" value="{{ csrf_token() }}"/><div class="modal-header">diff --git a/resources/views/piggy-banks/show.twig b/resources/views/piggy-banks/show.twigindex dd854a6d30..68e391671d 100644--- a/resources/views/piggy-banks/show.twig+++ b/resources/views/piggy-banks/show.twig@@ -152,7 +152,7 @@</div>{% endif %}</div>- <form id="reset-form" action="{{ route('piggy-banks.reset', [piggyBank.id]) }}" method="POST" style="display: none;">+ <form id="reset-form" action="{{ route('piggy-banks.reset', [piggyBank.id]) }}" method="POST" class="hidden"><input type="hidden" name="_token" value="{{ csrf_token() }}"/></form>{% endblock %}diff --git a/resources/views/recurring/show.twig b/resources/views/recurring/show.twigindex ca2d49ee2e..b130bb2732 100644--- a/resources/views/recurring/show.twig+++ b/resources/views/recurring/show.twig@@ -92,7 +92,7 @@<td>{% if not occ.fired %}<form action="{{ route('recurring.trigger', [recurrence.id]) }}" method="post"- style="display: inline;">+ class="inline"><input type="hidden" name="_token" value="{{ csrf_token() }}"><input type="hidden" name="date"value="{{ occ.date.isoFormat('YYYY-MM-DD') }}">diff --git a/resources/views/search/index.twig b/resources/views/search/index.twigindex 4ae6daa910..11fdf5639f 100644--- a/resources/views/search/index.twig+++ b/resources/views/search/index.twig@@ -102,7 +102,7 @@<div class="row mass_edit_all hidden-xs hidden"><div class="col-lg-6 col-md-12 col-sm-12 col-xs-12">- <div class="mass_button_options btn-group btn-group" style="display:none;">+ <div class="mass_button_options btn-group btn-group hidden"><a href="#" class="btn btn-default mass_edit"><span class="fa fa-fw fa-pencil"></span> <span>{{ 'edit_selected'|_ }}</span></a><a href="#" class="btn btn-default bulk_edit"><span>{{ 'bulk_edit'|_ }}</span></a><a href="#" class="btn btn-danger mass_delete"><span class="fa fa-fw fa-trash"></span>@@ -114,7 +114,7 @@<div class="mass_buttons btn-group btn-group pull-right"><a href="#" class="btn btn-default mass_select"><spanclass="fa fa-fw fa-check-square-o"></span> {{ 'select_transactions'|_ }}</a>- <a href="#" class="btn btn-default mass_stop_select" style="display:none;"><span class="fa faw-fw fa-square-o"+ <a href="#" class="btn btn-default mass_stop_select hidden"><span class="fa faw-fw fa-square-o"></span> {{ 'stop_selection'|_ }}</a></div></div>diff --git a/resources/views/transactions/bulk/edit.twig b/resources/views/transactions/bulk/edit.twigindex 81a5cc75e4..4398e1642e 100644--- a/resources/views/transactions/bulk/edit.twig+++ b/resources/views/transactions/bulk/edit.twig@@ -77,7 +77,7 @@<td>{% for tag in journal.tags %}{% if 0 != tag.id %}- <span style="display: inline;"><a class="label label-success" href="{{ route('tags.show', [tag.id]) }}">+ <span class="inline"><a class="label label-success" href="{{ route('tags.show', [tag.id]) }}"><span class="fa fa-fw fa-tag"></span>{{ tag.name }}</a></span>diff --git a/resources/views/transactions/show.twig b/resources/views/transactions/show.twigindex 6191c25e3c..b44bb22d1e 100644--- a/resources/views/transactions/show.twig+++ b/resources/views/transactions/show.twig@@ -444,7 +444,7 @@<td>{% for tag in journal.tags %}{% if null != tag.id and '' != tag.id %}- <h4 style="display: inline;"><a class="label label-success" href="{{ route('tags.show', [tag.id]) }}"><span class="fa fa-fw fa-tag"></span>{{ tag.tag }}</a></h4>+ <h4 class="inline"><a class="label label-success" href="{{ route('tags.show', [tag.id]) }}"><span class="fa fa-fw fa-tag"></span>{{ tag.tag }}</a></h4>{% endif %}{% endfor %}</td>