Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Remove CSS, only chartJS remains
James Coleb8ebcdf1a851
diff --git a/public/v1/css/firefly.css b/public/v1/css/firefly.cssindex 53e101a3d3..046c0de78b 100644--- a/public/v1/css/firefly.css+++ b/public/v1/css/firefly.css@@ -47,8 +47,12 @@.empty-high-block {height:400px;}.fw-normal {font-weight: normal;}.position-relative {position: relative;}+.pointer {cursor:pointer;}+.big-line {line-height:1.7em;}+.bold-label {font-weight: normal;font-size:0.9em;}/** tables **/+th.five {width:5%;}th.ten {width:10%;}th.fifteen td.fifteen {width:15%;}td.twenty th.twenty {width:25%;}diff --git a/public/v1/js/ff/piggy-banks/show.js b/public/v1/js/ff/piggy-banks/show.jsindex a6756992fb..7a2935ca58 100644--- a/public/v1/js/ff/piggy-banks/show.js+++ b/public/v1/js/ff/piggy-banks/show.js@@ -25,6 +25,10 @@ $(function () {lineChart('chart/piggy-bank/' + piggyBankID, 'piggy-bank-history');}+ $('.confirm-history-delete').click(function() {+ return confirm(confirmText);+ });+// on submit of logout button:$('.reset-link').click(function(e) {console.log('here we are');diff --git a/public/v1/js/ff/tags/index.js b/public/v1/js/ff/tags/index.jsindex 0101e9dc55..652bde3595 100644--- a/public/v1/js/ff/tags/index.js+++ b/public/v1/js/ff/tags/index.js@@ -22,4 +22,7 @@$(function () {"use strict";+ $('.confirm-tag-delete').on('click', function() {+ return confirm(confirmText);+ });});diff --git a/resources/views/piggy-banks/show.twig b/resources/views/piggy-banks/show.twigindex 68e391671d..b66a7d54e7 100644--- a/resources/views/piggy-banks/show.twig+++ b/resources/views/piggy-banks/show.twig@@ -114,7 +114,7 @@</div><div class="box"><div class="box-header with-border">- <h3 class="box-title">{{ 'event_history'|_ }} (<a onclick="return confirm('{{ 'reset_history_confirm'|_|escape('js') }}');" class="reset-link" href="#">{{ 'reset_history'|_ }}</a>)</h3>+ <h3 class="box-title">{{ 'event_history'|_ }} (<a class="confirm-history-delete reset-link" href="#">{{ 'reset_history'|_ }}</a>)</h3></div><div class="box-body no-padding" id="piggyEvents">{% include 'list/piggy-bank-events' %}@@ -160,6 +160,7 @@{% block scripts %}<script type="text/javascript" nonce="{{ JS_NONCE }}">var piggyBankID = {{ piggyBank.id }};+ var confirmText= '{{ 'reset_history_confirm'|_|escape('js') }}';</script><script type="text/javascript" src="v1/js/lib/Chart.bundle.min.js?v={{ FF_BUILD_TIME }}" nonce="{{ JS_NONCE }}"></script>diff --git a/resources/views/profile/delete-account.twig b/resources/views/profile/delete-account.twigindex 839380e039..80a7b12d5a 100644--- a/resources/views/profile/delete-account.twig+++ b/resources/views/profile/delete-account.twig@@ -43,7 +43,7 @@</div></div><div class="box-footer">- <button type="submit" onclick="return confirm('{{ 'are_you_sure'|_ }}');" class="btn btn-danger pull-right">+ <button type="submit" class="btn btn-danger pull-right delete-profile">{{ 'delete_account_button'|_ }}</button></div>@@ -53,3 +53,15 @@</form>{% endblock %}+{% block scripts %}+ <!-- just a bit of inline code -->+ <script type="text/javascript" nonce="{{ JS_NONCE }}">+ var confirmText= '{{ 'are_you_sure'|_|escape('js') }}';+ $(function () {+ "use strict";+ $('.delete-profile').click(function () {+ return confirm(confirmText);+ });+ });+ </script>+{% endblock %}diff --git a/resources/views/reports/partials/top-transactions.twig b/resources/views/reports/partials/top-transactions.twigindex a28bd8bfac..5a64c8075d 100644--- a/resources/views/reports/partials/top-transactions.twig+++ b/resources/views/reports/partials/top-transactions.twig@@ -4,7 +4,7 @@<th data-defaultsign="az">{{ 'account'|_ }}</th><th data-defaultsign="az">{{ 'description'|_ }}</th><th data-defaultsign="month">{{ 'date'|_ }}</th>- <th style="width:25%;" class="hidden-xs" data-defaultsign="_19">{{ 'amount'|_ }}</th>+ <th class="quarter" class="hidden-xs" data-defaultsign="_19">{{ 'amount'|_ }}</th></tr></thead><tbody>@@ -19,7 +19,7 @@</td><!-- TODO i dont think transactionAmount will work. --><td class="text-right" data-value="{{ transaction.amount}}"><span- style="margin-right:5px;">+ class="mr-2">{{ formatAmountBySymbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }}{% if null != transaction.foreign_amount %}diff --git a/resources/views/rules/index.twig b/resources/views/rules/index.twigindex 2c3fff1d65..d447821bd8 100644--- a/resources/views/rules/index.twig+++ b/resources/views/rules/index.twig@@ -74,12 +74,12 @@<table class="table table-hover table-striped group-rules"><thead><tr>- <th style="width:5%;"> </th>+ <th class="five"> </th><th class="ten"> </th><th class="ten"> </th><th class="quarter">{{ 'rule_name'|_ }}</th>- <th style="width:25%;" class="hidden-xs">{{ 'rule_triggers'|_ }}</th>- <th style="width:25%;" class="hidden-xs">{{ 'rule_actions'|_ }}</th>+ <th class="quarter hidden-xs">{{ 'rule_triggers'|_ }}</th>+ <th class="quarter hidden-xs">{{ 'rule_actions'|_ }}</th></tr></thead><tbody class="rule-connected-list">@@ -152,7 +152,7 @@{% endif %}{% endfor %}</ul>- <ul class="small rule-triggers-show" style="cursor:pointer;display:none;" data-id="{{ rule.id }}">+ <ul class="small rule-triggers-show hidden pointer" data-id="{{ rule.id }}"><li data-id="{{ rule.id }}">{{ 'show_triggers'|_ }}</li></ul>{% endif %}@@ -172,7 +172,7 @@</li>{% endfor %}</ul>- <ul class="small rule-actions-show" style="cursor:pointer;display:none;" data-id="{{ rule.id }}">+ <ul class="small rule-actions-show hidden pointer" data-id="{{ rule.id }}"><li>{{ 'show_actions'|_ }}</li></ul>diff --git a/resources/views/rules/partials/action.twig b/resources/views/rules/partials/action.twigindex ac31ff8970..5d78b34bcf 100644--- a/resources/views/rules/partials/action.twig+++ b/resources/views/rules/partials/action.twig@@ -1,5 +1,5 @@<tr data-count="{{ count }}" class="rule-action-holder">- <td style="width:40px;">+ <td class="forty-px"><a href="#" class="btn btn-danger btn-sm remove-action"><span class="fa fa-trash"></span></a></td><td class="thirty">@@ -10,7 +10,7 @@{% endfor %}</select></td>- <td style="position: relative;">+ <td class="position-relative"><input autocomplete="off" type="text" value="{{ oldValue }}" name="actions[{{ count }}][value]"class="form-control">@@ -20,7 +20,7 @@</p>{% endif %}</td>- <td style="width:20%;">+ <td class="twenty"><div class="checkbox"><label><input type="checkbox" name="actions[{{ count }}][stop_processing]" value="1"diff --git a/resources/views/rules/partials/trigger.twig b/resources/views/rules/partials/trigger.twigindex e8d1be45ab..99d98f8f54 100644--- a/resources/views/rules/partials/trigger.twig+++ b/resources/views/rules/partials/trigger.twig@@ -1,5 +1,5 @@<tr data-count="{{ count }}" class="rule-trigger-holder">- <td style="width:40px;">+ <td class="forty-px"><a href="#" class="btn btn-danger btn-sm remove-trigger"><span class="fa fa-trash"></span></a></td><td class="thirty">@@ -13,7 +13,7 @@{% endfor %}</select></td>- <td style="width:40px;">+ <td class="forty-px"><div class="checkbox"><label><input type="checkbox" name="triggers[{{ count }}][prohibited]" value="1"@@ -31,7 +31,7 @@</p>{% endif %}</td>- <td style="width:20%;">+ <td class="twenty"><div class="checkbox"><label><input type="checkbox" class="trigger-stop-processing" name="triggers[{{ count }}][stop_processing]" value="1"diff --git a/resources/views/search/index.twig b/resources/views/search/index.twigindex 11fdf5639f..18fa1699b9 100644--- a/resources/views/search/index.twig+++ b/resources/views/search/index.twig@@ -91,10 +91,10 @@<h3 class="box-title">{{ 'transactions'|_ }}</h3></div><div class="box-body">- <p class="search_ongoing text-center" style="margin-top:70px;">+ <p class="search_ongoing text-center">{{ 'search_searching'|_ }}</p>- <div class="search_results" class="hidden"></div>+ <div class="search_results hidden"></div>{# loading indicator #}<div class="overlay"><span class="fa fa-refresh fa-spin"></span>@@ -123,7 +123,7 @@</div></div></div>- <div class="row error_row" style="display:none; ">+ <div class="row error_row hidden"><div class="col-lg-12 col-md-12 col-sm-12"><div class="box box-danger"><div class="box-header with-border">diff --git a/resources/views/settings/notifications/index.twig b/resources/views/settings/notifications/index.twigindex e8a60b6b43..c4d8e3a792 100644--- a/resources/views/settings/notifications/index.twig+++ b/resources/views/settings/notifications/index.twig@@ -23,7 +23,7 @@</label></div>{% endfor %}- <p style="margin-top:2em;">{{ 'channel_settings'|_ }}</p>+ <p class="mt-5">{{ 'channel_settings'|_ }}</p>{{ ExpandedForm.text('slack_webhook_url', slackUrl, {'label' : 'slack_url_label'|_, helpText: trans('firefly.slack_discord_double')}) }}{{ ExpandedForm.text('pushover_app_token', pushoverAppToken, {}) }}diff --git a/resources/views/settings/users/delete.twig b/resources/views/settings/users/delete.twigindex 8c0f2ee57d..baaf289006 100644--- a/resources/views/settings/users/delete.twig+++ b/resources/views/settings/users/delete.twig@@ -25,8 +25,8 @@</p></div><div class="box-footer">- <input type="submit" onclick="return confirm('{{ trans('firefly.are_you_sure')|escape('js') }}');" name="submit"- value="{{ trans('form.deletePermanently') }}" class="btn btn-danger pull-right"/>+ <input type="submit" name="submit"+ value="{{ trans('form.deletePermanently') }}" class="btn btn-danger pull-right delete-user"/><a href="{{ URL.previous() }}" class="btn-default btn">{{ trans('form.cancel') }}</a></div>@@ -36,3 +36,15 @@</div></form>{% endblock %}+{% block scripts %}+ <!-- just a bit of inline code -->+ <script type="text/javascript" nonce="{{ JS_NONCE }}">+ var confirmText= '{{ 'are_you_sure'|_|escape('js') }}';+ $(function () {+ "use strict";+ $('.delete-user').click(function () {+ return confirm(confirmText);+ });+ });+ </script>+{% endblock %}diff --git a/resources/views/tags/index.twig b/resources/views/tags/index.twigindex f823d7c23a..0afc5ff561 100644--- a/resources/views/tags/index.twig+++ b/resources/views/tags/index.twig@@ -30,11 +30,9 @@<div class="box-body"><div class="row">{% for tagInfo in entries %}- <div class="col-xs-6 col-sm-4 col-md-3 col-lg-2"- style="line-height: 1.7em;"- ><input type="checkbox" name="tags[]" value="{{ tagInfo.id }}"> <a- class="label label-success"- style="font-weight: normal;font-size:0.9em;"+ <div class="col-xs-6 col-sm-4 col-md-3 col-lg-2 big-line">+ <input type="checkbox" name="tags[]" value="{{ tagInfo.id }}"> <a+ class="label label-success bold-label"title="{{ tagInfo.created_at.isoFormat(monthAndDayFormat) }}"href="{{ route('tags.show',tagInfo.id) }}">{% if tagInfo.location %}<span class="fa fa-fw fa-map-marker"></span>{% endif %}<span class="fa fa-fw fa-tag"></span>{{ tagInfo.tag }}{% if tagInfo.attachments.count() > 0 %}<span class="fa fa-fw fa-paperclip"></span>{% endif %}</a></div>@@ -61,7 +59,7 @@<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"><p><a class="btn btn-success" href="{{ route('tags.create') }}"><span class="fa fa-plus fa-fw"></span> {{ ('no_tags_create_default')|_ }}</a>- <button type="submit" class="btn pull-right btn-danger" onclick="return confirm('{{ 'are_you_sure'|_|escape('js') }}');">+ <button type="submit" class="btn pull-right btn-danger confirm-tag-delete"><span class="fa fa-fw fa-trash"></span> {{ 'delete_all_selected_tags'|_ }}</button></p>@@ -72,5 +70,8 @@{% endblock %}{% block scripts %}+ <script nonce="{{ JS_NONCE }}">+ var confirmText = '{{ 'are_you_sure'|_|escape('js') }}';+ </script><script src="v1/js/ff/tags/index.js?v={{ FF_BUILD_TIME }}" nonce="{{ JS_NONCE }}"></script>{% endblock %}diff --git a/resources/views/transactions/convert.twig b/resources/views/transactions/convert.twigindex b44b3210ab..ad3a9e564b 100644--- a/resources/views/transactions/convert.twig+++ b/resources/views/transactions/convert.twig@@ -61,7 +61,7 @@<th class="quarter">Description</th><th class="quarter">Source account</th><th class="quarter">Destination account</th>- <th style="width:15%;">Amount</th>+ <th class="fifteen">Amount</th></tr>{% for transaction in groupArray.transactions %}<tr>diff --git a/resources/views/transactions/show.twig b/resources/views/transactions/show.twigindex b44bb22d1e..07c4bc6505 100644--- a/resources/views/transactions/show.twig+++ b/resources/views/transactions/show.twig@@ -466,7 +466,7 @@<table class="table">{% for link in links[journal.transaction_journal_id] %}<tr>- <td style="width:120px;">+ <td class="onetwenty"><div class="btn-group btn-group-xs"><a href="#" class="btn btn-default switch-link" data-id="{{ link.id }}"><spanclass="fa fa-fw fa-arrows-h"></span></a>