Skip to content

Firefly III: a personal finances manager

New stuff

Sander Dorigoeeada3504d95
diff --git a/resources/views/accounts/create.blade.php b/resources/views/accounts/create.blade.php
index 1bd76d3499..f6514b0676 100644
--- a/resources/views/accounts/create.blade.php
+++ b/resources/views/accounts/create.blade.php
@@ -19,17 +19,17 @@
<h3 class="card-title">{{ __('firefly.mandatoryFields') }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm::text('name') }}
+ {!! ExpandedForm::text('name') !!}
@if('asset' === $objectType || 'liabilities' === $objectType)
- {{ CurrencyForm::currencyList('currency_id', null, ['helpText' => __('firefly.account_default_currency')]) }}
+ {!! CurrencyForm::currencyList('currency_id', null, ['helpText' => __('firefly.account_default_currency')]) !!}
@endif
@if('liabilities' === $objectType)
- {{ ExpandedForm::select('liability_type_id', $liabilityTypes) }}
- {{ ExpandedForm::amountNoCurrency('opening_balance', null, ['label' => __('firefly.debt_start_amount')]) }}
- {{ ExpandedForm::select('liability_direction', $liabilityDirections) }}
- {{ ExpandedForm::date('opening_balance_date', null, ['label' => __('firefly.debt_start_date')]) }}
- {{ ExpandedForm::percentage('interest') }}
- {{ ExpandedForm::select('interest_period', $interestPeriods, null, ['helpText' => __('firefly.interest_period_help')]) }}
+ {!! ExpandedForm::select('liability_type_id', $liabilityTypes) !!}
+ {!! ExpandedForm::amountNoCurrency('opening_balance', null, ['label' => __('firefly.debt_start_amount')]) !!}
+ {!! ExpandedForm::select('liability_direction', $liabilityDirections) !!}
+ {!! ExpandedForm::date('opening_balance_date', null, ['label' => __('firefly.debt_start_date')]) !!}
+ {!! ExpandedForm::percentage('interest') !!}
+ {!! ExpandedForm::select('interest_period', $interestPeriods, null, ['helpText' => __('firefly.interest_period_help')]) !!}
@endif
</div>
</div>
@@ -42,22 +42,22 @@
</div>
<div class="card-body">
- {{ ExpandedForm::text('iban') }}
- {{ ExpandedForm::text('BIC', null, ['maxlength' => 11]) }}
- {{ ExpandedForm::text('account_number') }}
+ {!! ExpandedForm::text('iban') !!}
+ {!! ExpandedForm::text('BIC', null, ['maxlength' => 11]) !!}
+ {!! ExpandedForm::text('account_number') !!}
@if('asset' === $objectType)
- {{ ExpandedForm::amountNoCurrency('opening_balance') }}
- {{ ExpandedForm::date('opening_balance_date') }}
- {{ ExpandedForm::select('account_role', $roles,null,['helpText' => __('firefly.asset_account_role_help')]) }}
- {{ ExpandedForm::amountNoCurrency('virtual_balance') }}
+ {!! ExpandedForm::amountNoCurrency('opening_balance') !!}
+ {!! ExpandedForm::date('opening_balance_date') !!}
+ {!! ExpandedForm::select('account_role', $roles,null,['helpText' => __('firefly.asset_account_role_help')]) !!}
+ {!! ExpandedForm::amountNoCurrency('virtual_balance') !!}
@endif
@if($showNetWorth)
- {{ ExpandedForm::checkbox('include_net_worth', 1) }}
+ {!! ExpandedForm::checkbox('include_net_worth', 1) !!}
@endif
- {{ ExpandedForm::textarea('notes',null,['helpText' => trans('firefly.field_supports_markdown')]) }}
- {{ ExpandedForm::file('attachments[]', ['multiple' => 'multiple','helpText' => trans('firefly.upload_max_file_size', ['size' => $uploadSize ?? $filesize])]) }}
+ {!! ExpandedForm::textarea('notes',null,['helpText' => trans('firefly.field_supports_markdown')]) !!}
+ {!! ExpandedForm::file('attachments[]', ['multiple' => 'multiple','helpText' => trans('firefly.upload_max_file_size', ['size' => $uploadSize ?? $filesize])]) !!}
</div>
</div>
</div>
@@ -66,10 +66,10 @@
<div class="col-lg-6 col-md-6 col-sm-12">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'options'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.options') }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm::optionsList('create','account') }}
+ {!! ExpandedForm::optionsList('create','account') !!}
</div>
<div class="box-footer">
<button type="submit" class="btn pull-right btn-success">
diff --git a/resources/views/accounts/delete.twig b/resources/views/accounts/delete.twig
index d61e76329b..40497e8f48 100644
--- a/resources/views/accounts/delete.twig
+++ b/resources/views/accounts/delete.twig
@@ -1,10 +1,5 @@
-{% extends './layout/default' %}
-
-{% block breadcrumbs %}
- {{ Breadcrumbs.render(Route.getCurrentRoute.getName, account) }}
-{% endblock %}
-
-{% block content %}
+@extends('layout.v3.session')
+@section('content')
<form method="POST" action="{{ route('accounts.destroy',account.id) }}" accept-charset="UTF-8"
class="form-horizontal" id="destroy">
@@ -40,7 +35,7 @@
</p>
<p>
- {{ Html.select('move_account_before_delete', accountList, null).class('form-control') }}
+ {{ Html::select('move_account_before_delete', accountList, null).class('form-control') }}
</p>
{% else %}
<input type="hidden" name="move_account_before_delete" value="0"/>
@@ -57,4 +52,4 @@
</div>
</form>
-{% endblock %}
+@endsection
diff --git a/resources/views/accounts/edit.twig b/resources/views/accounts/edit.twig
index 46f876996a..01fdea32cc 100644
--- a/resources/views/accounts/edit.twig
+++ b/resources/views/accounts/edit.twig
@@ -1,10 +1,5 @@
-{% extends './layout/default' %}
-
-{% block breadcrumbs %}
- {{ Breadcrumbs.render(Route.getCurrentRoute().getName(), account) }}
-{% endblock %}
-
-{% block content %}
+@extends('layout.v3.session')
+@section('content')
<!-- set location data high up -->
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
var locations = {{ locations|json_encode|raw }};
@@ -102,7 +97,7 @@
{# panel for options #}
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'options'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.options') }}</h3>
</div>
<div class="card-body">
{{ ExpandedForm::optionsList('update','account') }}
@@ -116,8 +111,8 @@
</div>
</div>
</form>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
var iAmOwed = '{{ 'i_am_owed_amount'|_|escape('js') }}';
var iOwe = '{{ 'i_owe_amount'|_|escape('js') }}';
@@ -126,11 +121,11 @@
nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/lib/jquery-ui.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/accounts/edit.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
-{% block styles %}
+@section('styles')
<link href="v1/css/jquery-ui/jquery-ui.structure.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet"
media="all" nonce="{{ $JS_NONCE }}">
<link href="v1/css/jquery-ui/jquery-ui.theme.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet"
media="all" nonce="{{ $JS_NONCE }}">
-{% endblock %}
+@endsection
diff --git a/resources/views/accounts/reconcile/index.twig b/resources/views/accounts/reconcile/index.twig
index b7a8cd7a07..2dab645ef2 100644
--- a/resources/views/accounts/reconcile/index.twig
+++ b/resources/views/accounts/reconcile/index.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, account, start, end) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<div class="row">
<div class="col-lg-9 col-md-12 col-sm-12 col-xs-12">
@@ -120,9 +120,9 @@
</div>
</div>
</div>
-{% endblock %}
+@endsection
-{% block scripts %}
+@section('scripts')
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
currencySymbol = "{{ currency.symbol }}";
var accountID = {{ account.id }};
@@ -134,4 +134,4 @@
var selectRangeAndBalance = '{{ 'select_range_and_balance'|_|escape('js') }}';
</script>
<script src="v1/js/ff/accounts/reconcile.js?v={{ $FF_BUILD_TIME }}" type="text/javascript" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
diff --git a/resources/views/accounts/reconcile/show.twig b/resources/views/accounts/reconcile/show.twig
index d8693f6fc4..a6f6663dbb 100644
--- a/resources/views/accounts/reconcile/show.twig
+++ b/resources/views/accounts/reconcile/show.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, account, journal) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-12">
<div class="card">
@@ -104,6 +104,6 @@
</div>
</div>
-{% endblock %}
-{% block scripts %}
-{% endblock %}
+@endsection
+@section('scripts')
+@endsection
diff --git a/resources/views/accounts/show.twig b/resources/views/accounts/show.twig
index 0c4018a05e..dc303b2c5c 100644
--- a/resources/views/accounts/show.twig
+++ b/resources/views/accounts/show.twig
@@ -1,10 +1,5 @@
-{% extends './layout/default' %}
-
-{% block breadcrumbs %}
- {{ Breadcrumbs.render(Route.getCurrentRoute.getName, account, start, end) }}
-{% endblock %}
-
-{% block content %}
+@extends('layout.v3.session')
+@section('content')
<div class="row">
<div class="{% if attachments.count() == 0 %}col-lg-12 col-md-12 col-sm-12 col-xs-12{% else %}col-lg-8 col-md-6 col-sm-12 col-xs-12{% endif %}">
@@ -186,9 +181,9 @@
</div>
{% endif %}
</div>
-{% endblock %}
+@endsection
-{% block scripts %}
+@section('scripts')
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
// location stuff
{% if location %}
@@ -238,10 +233,10 @@
<script src="v1/js/ff/accounts/show.js?v={{ $FF_BUILD_TIME }}" type="text/javascript" nonce="{{ $JS_NONCE }}"></script>
{# required for groups.twig #}
<script type="text/javascript" src="v1/js/ff/list/groups.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
-{% block styles %}
+@section('styles')
{% if location %}
<link rel="stylesheet" href="v1/lib/leaflet/leaflet.css?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}">
{% endif %}
-{% endblock %}
+@endsection
diff --git a/resources/views/administrations/edit.twig b/resources/views/administrations/edit.twig
index 06586ce9da..edd6650ab9 100644
--- a/resources/views/administrations/edit.twig
+++ b/resources/views/administrations/edit.twig
@@ -1,8 +1,8 @@
{% set VUE_SCRIPT_NAME = 'administrations/edit' %}
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render }}
-{% endblock %}
-{% block content %}
+@endsection
+@section('content')
<div id="administrations_edit"></div>
-{% endblock %}
+@endsection
diff --git a/resources/views/administrations/index.twig b/resources/views/administrations/index.twig
index 58e9242075..62df04d9e5 100644
--- a/resources/views/administrations/index.twig
+++ b/resources/views/administrations/index.twig
@@ -1,8 +1,8 @@
{% set VUE_SCRIPT_NAME = 'administrations/index' %}
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render }}
-{% endblock %}
-{% block content %}
+@endsection
+@section('content')
<div id="administrations_index"></div>
-{% endblock %}
+@endsection
diff --git a/resources/views/attachments/delete.twig b/resources/views/attachments/delete.twig
index 73bf1a025b..13d3af8e3f 100644
--- a/resources/views/attachments/delete.twig
+++ b/resources/views/attachments/delete.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute().getName(), attachment) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('attachments.destroy',attachment.id) }}" accept-charset="UTF-8" class="form-horizontal" id="destroy">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@@ -31,4 +31,4 @@
</div>
</div>
</form>
-{% endblock %}
+@endsection
diff --git a/resources/views/attachments/edit.twig b/resources/views/attachments/edit.twig
index 97cceacfe1..882ade5778 100644
--- a/resources/views/attachments/edit.twig
+++ b/resources/views/attachments/edit.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute().getName(), attachment) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('attachments.update', attachment.id) }}" accept-charset="UTF-8"
class="form-horizontal" id="update">
@@ -44,7 +44,7 @@
{# panel for options #}
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'options'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.options') }}</h3>
</div>
<div class="card-body">
{{ ExpandedForm::optionsList('update','attachment') }}
@@ -60,4 +60,4 @@
</form>
-{% endblock %}
+@endsection
diff --git a/resources/views/attachments/index.twig b/resources/views/attachments/index.twig
index b02e3e8cc7..6c8e182fe1 100644
--- a/resources/views/attachments/index.twig
+++ b/resources/views/attachments/index.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
<div class="card">
@@ -66,12 +66,12 @@
</div>
</div>
</div>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" src="v1/js/lib/bootstrap-sortable.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
-{% block styles %}
+@section('styles')
<link rel="stylesheet" href="v1/css/bootstrap-sortable.css?v={{ $FF_BUILD_TIME }}" type="text/css" media="all" nonce="{{ $JS_NONCE }}">
-{% endblock %}
+@endsection
diff --git a/resources/views/bills/create.twig b/resources/views/bills/create.twig
index fcbffdd172..a40d428f4e 100644
--- a/resources/views/bills/create.twig
+++ b/resources/views/bills/create.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, piggyBank) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('subscriptions.store') }}" accept-charset="UTF-8" class="form-horizontal" id="store" enctype="multipart/form-data">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@@ -49,7 +49,7 @@
{# panel for options #}
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'options'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.options') }}</h3>
</div>
<div class="card-body">
{{ ExpandedForm::optionsList('create','bill') }}
@@ -65,14 +65,14 @@
</div>
</form>
-{% endblock %}
+@endsection
-{% block styles %}
+@section('styles')
<link href="v1/css/bootstrap-tagsinput.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet" media="all" nonce="{{ $JS_NONCE }}">
<link href="v1/css/jquery-ui/jquery-ui.structure.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet" media="all" nonce="{{ $JS_NONCE }}">
<link href="v1/css/jquery-ui/jquery-ui.theme.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet" media="all" nonce="{{ $JS_NONCE }}">
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" src="v1/js/lib/bootstrap-tagsinput.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/lib/modernizr-custom.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/lib/jquery-ui.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
@@ -81,4 +81,4 @@
{# auto complete for object groups #}
<script type="text/javascript" src="v1/js/lib/typeahead/typeahead.bundle.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/object-groups/create-edit.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
diff --git a/resources/views/bills/delete.twig b/resources/views/bills/delete.twig
index b8ab3f40ff..841a4aa3e7 100644
--- a/resources/views/bills/delete.twig
+++ b/resources/views/bills/delete.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, bill) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('subscriptions.destroy',bill.id) }}" accept-charset="UTF-8" class="form-horizontal" id="destroy">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@@ -37,4 +37,4 @@
</div>
</div>
</form>
-{% endblock %}
+@endsection
diff --git a/resources/views/bills/edit.twig b/resources/views/bills/edit.twig
index fbfb2682f8..f5b5cccebc 100644
--- a/resources/views/bills/edit.twig
+++ b/resources/views/bills/edit.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, bill) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="post" action="{{ route('subscriptions.update', bill.id) }}" class="form-horizontal" accept-charset="UTF-8"
enctype="multipart/form-data">
@@ -57,7 +57,7 @@
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'options'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.options') }}</h3>
</div>
<div class="card-body">
{{ ExpandedForm::optionsList('update','bill') }}
@@ -72,16 +72,16 @@
</div>
</form>
-{% endblock %}
-{% block styles %}
+@endsection
+@section('styles')
<link href="v1/css/bootstrap-tagsinput.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet" media="all"
nonce="{{ $JS_NONCE }}">
<link href="v1/css/jquery-ui/jquery-ui.structure.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet"
media="all" nonce="{{ $JS_NONCE }}">
<link href="v1/css/jquery-ui/jquery-ui.theme.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet"
media="all" nonce="{{ $JS_NONCE }}">
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" src="v1/js/lib/bootstrap-tagsinput.min.js?v={{ $FF_BUILD_TIME }}"
nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/lib/modernizr-custom.js?v={{ $FF_BUILD_TIME }}"
@@ -94,4 +94,4 @@
nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/object-groups/create-edit.js?v={{ $FF_BUILD_TIME }}"
nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
diff --git a/resources/views/bills/show.twig b/resources/views/bills/show.twig
index b3d436be4c..d65392362e 100644
--- a/resources/views/bills/show.twig
+++ b/resources/views/bills/show.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, bill) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<div class="row">
<div class="col-lg-6 col-sm-12 col-md-12">
@@ -181,9 +181,9 @@
</div>
</div>
-{% endblock %}
+@endsection
-{% block scripts %}
+@section('scripts')
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
var billCurrencySymbol = "{{ convertToPrimary ? primaryCurrency.symbol : object.data.currency.symbol }}";
var billUrl = '{{ route('chart.bill.single', [object.data.id]) }}';
@@ -194,4 +194,4 @@
<script type="text/javascript" src="v1/js/ff/bills/show.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
{# required for groups.twig #}
<script type="text/javascript" src="v1/js/ff/list/groups.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
diff --git a/resources/views/budgets/create.twig b/resources/views/budgets/create.twig
index a2209fe0da..3d3fea4922 100644
--- a/resources/views/budgets/create.twig
+++ b/resources/views/budgets/create.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('budgets.store') }}" accept-charset="UTF-8" class="form-horizontal" id="store" enctype="multipart/form-data">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@@ -42,7 +42,7 @@
{# panel for options #}
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'options'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.options') }}</h3>
</div>
<div class="card-body">
{{ ExpandedForm::optionsList('create','budget') }}
@@ -58,7 +58,7 @@
</form>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" src="v1/js/ff/budgets/create.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
diff --git a/resources/views/budgets/delete.twig b/resources/views/budgets/delete.twig
index 33e4f48d42..b3078c6202 100644
--- a/resources/views/budgets/delete.twig
+++ b/resources/views/budgets/delete.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, budget) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('budgets.destroy',budget.id) }}" accept-charset="UTF-8" class="form-horizontal" id="destroy">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@@ -41,4 +41,4 @@
</div>
</div>
</form>
-{% endblock %}
+@endsection
diff --git a/resources/views/budgets/edit.twig b/resources/views/budgets/edit.twig
index a3f4c65ad8..2fb225db89 100644
--- a/resources/views/budgets/edit.twig
+++ b/resources/views/budgets/edit.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, budget) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="post" action="{{ route('budgets.update',budget.id) }}" class="form-horizontal" accept-charset="UTF-8"
enctype="multipart/form-data">
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
@@ -45,7 +45,7 @@
{# panel for options #}
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'options'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.options') }}</h3>
</div>
<div class="card-body">
{{ ExpandedForm::optionsList('update','budget') }}
@@ -59,7 +59,7 @@
</form>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" src="v1/js/ff/budgets/edit.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
diff --git a/resources/views/budgets/no-budget.twig b/resources/views/budgets/no-budget.twig
index 4f79c0389b..d493774b56 100644
--- a/resources/views/budgets/no-budget.twig
+++ b/resources/views/budgets/no-budget.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, start, end) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
{# upper show-all instruction #}
{% if periods|length > 0 %}
@@ -57,8 +57,8 @@
</div>
{% endif %}
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
{# required for groups.twig #}
<script type="text/javascript" src="v1/js/ff/list/groups.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
diff --git a/resources/views/budgets/show.twig b/resources/views/budgets/show.twig
index f87c3dfb06..ed3e17204f 100644
--- a/resources/views/budgets/show.twig
+++ b/resources/views/budgets/show.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, budget, budgetLimit) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<div class="row">
<div class="{% if attachments.count() == 0 %}col-lg-12 col-md-12 col-sm-12 col-xs-12{% else %}col-lg-8 col-md-6 col-sm-12 col-xs-12{% endif %}">
<div class="card">
@@ -210,8 +210,8 @@
{% endif %}
</div>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
var budgetID = {{ budget.id }};
var budgetLimitID = 0;
@@ -236,4 +236,4 @@
<script type="text/javascript" src="v1/js/ff/budgets/show.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
{# required for groups.twig #}
<script type="text/javascript" src="v1/js/ff/list/groups.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
diff --git a/resources/views/categories/create.twig b/resources/views/categories/create.twig
index 0a4bae7ed3..2ca5a75805 100644
--- a/resources/views/categories/create.twig
+++ b/resources/views/categories/create.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('categories.store') }}" accept-charset="UTF-8" class="form-horizontal" id="store" enctype="multipart/form-data">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@@ -37,7 +37,7 @@
{# panel for options #}
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'options'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.options') }}</h3>
</div>
<div class="card-body">
{{ ExpandedForm::optionsList('create','category') }}
@@ -51,7 +51,7 @@
</div>
</div>
</form>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" src="v1/js/ff/budgets/create.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
diff --git a/resources/views/categories/delete.twig b/resources/views/categories/delete.twig
index 9e5d0adae6..4523be3c5d 100644
--- a/resources/views/categories/delete.twig
+++ b/resources/views/categories/delete.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, category) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('categories.destroy',category.id) }}" accept-charset="UTF-8" class="form-horizontal" id="destroy">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@@ -38,4 +38,4 @@
</div>
</form>
-{% endblock %}
+@endsection
diff --git a/resources/views/categories/edit.twig b/resources/views/categories/edit.twig
index 85743dedd8..f45164bcef 100644
--- a/resources/views/categories/edit.twig
+++ b/resources/views/categories/edit.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, category) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="post" action="{{ route('categories.update',category.id) }}" class="form-horizontal"
accept-charset="UTF-8"
@@ -43,7 +43,7 @@
{# panel for options #}
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'options'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.options') }}</h3>
</div>
<div class="card-body">
{{ ExpandedForm::optionsList('update','category') }}
@@ -57,7 +57,7 @@
</div>
</div>
</form>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" src="v1/js/ff/categories/edit.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
diff --git a/resources/views/categories/no-category.twig b/resources/views/categories/no-category.twig
index 7a864ca70e..82c304dd83 100644
--- a/resources/views/categories/no-category.twig
+++ b/resources/views/categories/no-category.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, start, end) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
{# upper show-all instruction #}
{% if periods|length > 0 %}
@@ -57,8 +57,8 @@
</div>
{% endif %}
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
{# required for groups.twig #}
<script type="text/javascript" src="v1/js/ff/list/groups.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
diff --git a/resources/views/categories/show.twig b/resources/views/categories/show.twig
index 19fd28236d..d58ee1ec92 100644
--- a/resources/views/categories/show.twig
+++ b/resources/views/categories/show.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, category, start, end) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<div class="row">
{% if Route.getCurrentRoute.getName == 'categories.show' %}
{# both charts #}
@@ -106,8 +106,8 @@
{% endif %}
</div>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
var current = '{{ route('chart.category.current', [category.id]) }}';
var everything = '{{ route('chart.category.all', [category.id]) }}';
@@ -119,4 +119,4 @@
<script type="text/javascript" src="v1/js/ff/categories/show.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
{# required for groups.twig #}
<script type="text/javascript" src="v1/js/ff/list/groups.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
diff --git a/resources/views/currencies/create.twig b/resources/views/currencies/create.twig
index 9c2c7dd9a3..279fd3e46a 100644
--- a/resources/views/currencies/create.twig
+++ b/resources/views/currencies/create.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('currencies.store') }}" accept-charset="UTF-8" class="form-horizontal" id="store">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
<div class="row">
@@ -29,7 +29,7 @@
{# panel for options #}
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'options'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.options') }}</h3>
</div>
<div class="card-body">
{{ ExpandedForm::optionsList('create','currency') }}
@@ -44,4 +44,4 @@
</div>
</div>
</form>
-{% endblock %}
+@endsection
diff --git a/resources/views/currencies/delete.twig b/resources/views/currencies/delete.twig
index 3629cf6237..8bcabe2ada 100644
--- a/resources/views/currencies/delete.twig
+++ b/resources/views/currencies/delete.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, currency) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('currencies.destroy',currency.id) }}" accept-charset="UTF-8" class="form-horizontal" id="destroy">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@@ -32,4 +32,4 @@
</div>
</form>
-{% endblock %}
+@endsection
diff --git a/resources/views/currencies/edit.twig b/resources/views/currencies/edit.twig
index 75f7665439..987e971341 100644
--- a/resources/views/currencies/edit.twig
+++ b/resources/views/currencies/edit.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, currency) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="post" action="{{ route('currencies.update',currency.id) }}" class="form-horizontal"
accept-charset="UTF-8"
enctype="multipart/form-data">
@@ -33,7 +33,7 @@
{# panel for options #}
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'options'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.options') }}</h3>
</div>
<div class="card-body">
{{ ExpandedForm::optionsList('update','currency') }}
@@ -48,4 +48,4 @@
</div>
</div>
</form>
-{% endblock %}
+@endsection
diff --git a/resources/views/error-old.twig b/resources/views/error-old.twig
index 05f883edf0..b5cb95c7f3 100644
--- a/resources/views/error-old.twig
+++ b/resources/views/error-old.twig
@@ -1,6 +1,6 @@
{% extends "./layout/guest" %}
-{% block content %}
+@section('content')
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
@@ -29,4 +29,4 @@
<p><a href="{{ route('index') }}">Follow this link back to the index.</a></p>
</div>
</div>
-{% endblock %}
+@endsection
diff --git a/resources/views/exchange-rates/rates.twig b/resources/views/exchange-rates/rates.twig
index 0155a2962a..eddec6e182 100644
--- a/resources/views/exchange-rates/rates.twig
+++ b/resources/views/exchange-rates/rates.twig
@@ -1,13 +1,13 @@
{% set VUE_SCRIPT_NAME = 'exchange-rates/rates' %}
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, from, to) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<div id="exchange_rates_rates"></div>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
-{% endblock %}
+@endsection
diff --git a/resources/views/form/amount-no-currency.blade.php b/resources/views/form/amount-no-currency.blade.php
new file mode 100644
index 0000000000..627bb60a1e
--- /dev/null
+++ b/resources/views/form/amount-no-currency.blade.php
@@ -0,0 +1,10 @@
+<div class="row mb-3" id="{{ $name }}_holder">
+ <div class="input-group has-validation">
+ <label for="{{ $options['id'] }}" class="col-sm-3 col-form-label has-validation">{{ $label }}</label>
+ <div class="col-sm-9">
+ {{ Html::input('number', $name, $value)->id($options['id'])->class($errors->has($name) ? 'is-invalid form-control' : 'form-control')->attribute('step','any')->attribute('autocomplete','off')->attribute('spellcheck','false')->attribute('placeholder',$options['placeholder'] ?? '') }}
+ @include('form.feedback')
+ @include('form.help')
+ </div>
+ </div>
+</div>
diff --git a/resources/views/form/amount-no-currency.twig b/resources/views/form/amount-no-currency.twig
deleted file mode 100644
index c2cc386e14..0000000000
--- a/resources/views/form/amount-no-currency.twig
+++ /dev/null
@@ -1,8 +0,0 @@
-<div class="{{ classes }}" id="{{ name }}_holder">
- <label for="{{ options.id }}" class="col-sm-4 control-label">{{ label }}</label>
- <div class="col-sm-8">
- {{ Html.input('number', name, value).id(options.id).class('form-control').attribute('step','any').attribute('autocomplete','off').attribute('spellcheck','false').attribute('placeholder',options.placeholder) }}
- {% include 'form.help' %}
- {% include 'form.feedback' %}
- </div>
-</div>
diff --git a/resources/views/form/assetAccountCheckList.twig b/resources/views/form/assetAccountCheckList.twig
index f0e782c05d..71f81ef700 100644
--- a/resources/views/form/assetAccountCheckList.twig
+++ b/resources/views/form/assetAccountCheckList.twig
@@ -17,8 +17,8 @@
</div>
{% endfor %}
{% endfor %}
- {% include 'form.help' %}
- {% include 'form.feedback' %}
+ @include('form.help')
+ @include('form.feedback')
</div>
</div>
diff --git a/resources/views/form/balance.twig b/resources/views/form/balance.twig
index dcf798a04f..37b19eecb7 100644
--- a/resources/views/form/balance.twig
+++ b/resources/views/form/balance.twig
@@ -23,11 +23,11 @@
{% endfor %}
</ul>
</div>
- {{ Html.input('number', name, value).class('form-control').attribute('step','any') }}
+ {{ Html::input('number', name, value).class('form-control').attribute('step','any') }}
</div>
- {% include 'form.feedback' %}
+ @include('form.feedback')
</div>
<input type="hidden" name="amount_currency_id_{{ name }}" value="{{ primaryCurrency.id }}"/>
diff --git a/resources/views/form/checkbox.blade.php b/resources/views/form/checkbox.blade.php
index a1dc33bd48..75c7287fb0 100644
--- a/resources/views/form/checkbox.blade.php
+++ b/resources/views/form/checkbox.blade.php
@@ -7,10 +7,10 @@
{{ $label }}
</label>
@if(array_key_exists('small', $options) && true === $options['small'])
- TODO SMALL!!!!!!!
+ TODO SMALL!!!!!!
@endif
@include('form.help')
- {% include 'form.feedback' %}
+ @include('form.feedback')
</div>
</div>
</div>
diff --git a/resources/views/form/date.blade.php b/resources/views/form/date.blade.php
new file mode 100644
index 0000000000..991458063a
--- /dev/null
+++ b/resources/views/form/date.blade.php
@@ -0,0 +1,17 @@
+<div class="{{ $classes }}" id="{{ $name }}_holder">
+ <label for="{{ $options['id'] }}" class="col-sm-4 control-label">{{ $label }}</label>
+
+
+ <div class="col-sm-8">
+ <div class="input-group">
+ <div class="input-group-addon">
+ <span class="bi bi-calendar"></span>
+ </div>
+ {{ Html::input('date', $name, $value)->id($options['id'])->class('form-control')->attribute('autocomplete','off')->attribute('spellcheck','false')
+ ->attribute('min', $options['min'] ?? null)
+ }}
+ </div>
+ @include('form.help')
+ @include('form.feedback')
+ </div>
+</div>
diff --git a/resources/views/form/date.twig b/resources/views/form/date.twig
deleted file mode 100644
index c6c87f6cea..0000000000
--- a/resources/views/form/date.twig
+++ /dev/null
@@ -1,17 +0,0 @@
-<div class="{{ classes }}" id="{{ name }}_holder">
- <label for="{{ options.id }}" class="col-sm-4 control-label">{{ label }}</label>
-
-
- <div class="col-sm-8">
- <div class="input-group">
- <div class="input-group-addon">
- <span class="bi bi-calendar"></span>
- </div>
- {{ Html.input('date', name, value).id(options.id).class('form-control').attribute('autocomplete','off').attribute('spellcheck','false')
- .attribute('min', options.min)
- }}
- </div>
- {% include 'form.help' %}
- {% include 'form.feedback' %}
- </div>
-</div>
diff --git a/resources/views/form/file.blade.php b/resources/views/form/file.blade.php
new file mode 100644
index 0000000000..690a8d764e
--- /dev/null
+++ b/resources/views/form/file.blade.php
@@ -0,0 +1,9 @@
+<div class="{{ $classes }}" id="{{ $name }}_holder">
+ <label for="{{ $options['id'] }}" class="col-sm-4 control-label">{{ $label }}</label>
+
+ <div class="col-sm-8">
+ {{ Html::input('file',$name)->id($options['id'])->attribute('multiple','multiple')->class('form-control') }}
+ @include('form.help')
+ @include('form.feedback')
+ </div>
+</div>
diff --git a/resources/views/form/file.twig b/resources/views/form/file.twig
deleted file mode 100644
index b45a4606bb..0000000000
--- a/resources/views/form/file.twig
+++ /dev/null
@@ -1,9 +0,0 @@
-<div class="{{ classes }}" id="{{ name }}_holder">
- <label for="{{ options.id }}" class="col-sm-4 control-label">{{ label }}</label>
-
- <div class="col-sm-8">
- {{ Html.input('file',name).id(options.id).attribute('multiple','multiple').class('form-control') }}
- {% include 'form.help' %}
- {% include 'form.feedback' %}
- </div>
-</div>
diff --git a/resources/views/form/help.blade.php b/resources/views/form/help.blade.php
index 0e6217ea5c..1749d93939 100644
--- a/resources/views/form/help.blade.php
+++ b/resources/views/form/help.blade.php
@@ -1,3 +1,3 @@
@if(array_key_exists('helpText', $options) && '' !== $options['helpText'])
- <p class="help-block">{{ $options['helpText'] }}</p>
+ <p class="form-text"{{ $options['helpText'] }}</p>
@endif
diff --git a/resources/views/form/integer.twig b/resources/views/form/integer.twig
index 924e339d6c..ea2c448f20 100644
--- a/resources/views/form/integer.twig
+++ b/resources/views/form/integer.twig
@@ -2,8 +2,8 @@
<label for="{{ options.id }}" class="col-sm-4 control-label">{{ label }}</label>
<div class="col-sm-8">
- {{ Html.input('number', name, value).id(options.id).attribute('step',options.step).attribute('autocomplete','off').attribute('spellcheck', 'false').class('form-control').attribute('placeholder',options.placeholder) }}
- {% include 'form.help' %}
- {% include 'form.feedback' %}
+ {{ Html::input('number', name, value).id(options.id).attribute('step',options.step).attribute('autocomplete','off').attribute('spellcheck', 'false').class('form-control').attribute('placeholder',options.placeholder) }}
+ @include('form.help')
+ @include('form.feedback')
</div>
</div>
diff --git a/resources/views/form/multi-select.twig b/resources/views/form/multi-select.twig
index d21a4734b6..46786f8d22 100644
--- a/resources/views/form/multi-select.twig
+++ b/resources/views/form/multi-select.twig
@@ -3,8 +3,8 @@
<div class="col-sm-8">
{{ Html.multiselect(name~"[]", list, selected).id(options.id).attribute('size',12).class('form-control').attribute('autocomplete','off').attribute('spellcheck','false').attribute('placeholder', options.placeholder) }}
- {% include 'form.help' %}
- {% include 'form.feedback' %}
+ @include('form.help')
+ @include('form.feedback')
</div>
</div>
diff --git a/resources/views/form/object_group.twig b/resources/views/form/object_group.twig
index e1a9e3e341..7bf22103a4 100644
--- a/resources/views/form/object_group.twig
+++ b/resources/views/form/object_group.twig
@@ -2,8 +2,8 @@
<label for="{{ options.id }}" class="col-sm-4 control-label">{{ label }}</label>
<div class="col-sm-8">
- {{ Html.input('text', name, value).id(options.id).class('form-control').attribute('autocomplete','off').attribute('spellcheck','false').attribute('placeholder',options.placeholder) }}
- {% include 'form.help' %}
- {% include 'form.feedback' %}
+ {{ Html::input('text', name, value).id(options.id).class('form-control').attribute('autocomplete','off').attribute('spellcheck','false').attribute('placeholder',options.placeholder) }}
+ @include('form.help')
+ @include('form.feedback')
</div>
</div>
diff --git a/resources/views/form/password.twig b/resources/views/form/password.twig
index 7524a4bb2b..860a2a91e2 100644
--- a/resources/views/form/password.twig
+++ b/resources/views/form/password.twig
@@ -2,8 +2,8 @@
<label for="{{ options.id }}" class="col-sm-4 control-label">{{ label }}</label>
<div class="col-sm-8">
- {{ Html.input('password', name, value).id(options.id).class('form-control').attribute('placeholder',options.placeholder).attribute('autocomplete','off').attribute('spellcheck','false') }}
- {% include 'form.help' %}
- {% include 'form.feedback' %}
+ {{ Html::input('password', name, value).id(options.id).class('form-control').attribute('placeholder',options.placeholder).attribute('autocomplete','off').attribute('spellcheck','false') }}
+ @include('form.help')
+ @include('form.feedback')
</div>
</div>
diff --git a/resources/views/form/percentage.blade.php b/resources/views/form/percentage.blade.php
new file mode 100644
index 0000000000..084b637870
--- /dev/null
+++ b/resources/views/form/percentage.blade.php
@@ -0,0 +1,13 @@
+<div class="row mb-3" id="{{ $name }}_holder">
+ <div class="input-group has-validation">
+ <label for="{{ $options['id'] }}" class="col-sm-4 control-label">{{ $label }}</label>
+ <div class="col-sm-9">
+ <div class="input-group">
+ {{ Html::input('number', $name, $value)->id($options['id'])->attribute('step',$options['step'])->attribute('autocomplete','off')->attribute('spellcheck', 'false')->class('form-control')->attribute('placeholder',$options['placeholder'] ?? '') }}
+ <div class="input-group-addon">%</div>
+ </div>
+ @include('form.help')
+ @include('form.feedback')
+ </div>
+</div>
+</div>
diff --git a/resources/views/form/percentage.twig b/resources/views/form/percentage.twig
deleted file mode 100644
index d22ca11c17..0000000000
--- a/resources/views/form/percentage.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-<div class="{{ classes }}" id="{{ name }}_holder">
- <label for="{{ options.id }}" class="col-sm-4 control-label">{{ label }}</label>
-
- <div class="col-sm-8">
- <div class="input-group">
- {{ Html.input('number', name, value).id(options.id).attribute('step',options.step).attribute('autocomplete','off').attribute('spellcheck', 'false').class('form-control').attribute('placeholder',options.placeholder) }}
- <div class="input-group-addon">%</div>
- </div>
- {% include 'form.help' %}
- {% include 'form.feedback' %}
- </div>
-</div>
diff --git a/resources/views/form/select.blade.php b/resources/views/form/select.blade.php
new file mode 100644
index 0000000000..78c5a53ef5
--- /dev/null
+++ b/resources/views/form/select.blade.php
@@ -0,0 +1,10 @@
+<div class="row mb-3" id="{{ $name }}_holder">
+ <div class="input-group has-validation">
+ <label for="{{ $options['id'] }}" class="col-sm-3 col-form-label has-validation">{{ $label }}</label>
+ <div class="col-sm-9">
+ {{ Html::select($name, $list, $selected)->id($options['id'])->class($errors->has($name) ? 'is-invalid form-select' : 'form-select')->attribute('autocomplete','off')->attribute('spellcheck','false')->attribute('placeholder', $options['placeholder'] ?? '') }}
+ @include('form.help')
+ @include('form.feedback')
+ </div>
+ </div>
+</div>
diff --git a/resources/views/form/select.twig b/resources/views/form/select.twig
deleted file mode 100644
index bbd5588aec..0000000000
--- a/resources/views/form/select.twig
+++ /dev/null
@@ -1,10 +0,0 @@
-<div class="{{ classes }}" id="{{ name }}_holder">
- <label for="{{ options.id }}" class="col-sm-4 control-label">{{ label }}</label>
-
- <div class="col-sm-8">
- {{ Html.select(name, list, selected).id(options.id).class('form-control').attribute('autocomplete','off').attribute('spellcheck','false').attribute('placeholder', options.placeholder) }}
- {% include 'form.help' %}
- {% include 'form.feedback' %}
-
- </div>
-</div>
diff --git a/resources/views/form/text.blade.php b/resources/views/form/text.blade.php
index 0bfdf6fa6a..c10de81c52 100644
--- a/resources/views/form/text.blade.php
+++ b/resources/views/form/text.blade.php
@@ -1,9 +1,10 @@
-<div class="{{ $classes }}" id="{{ $name }}_holder">
- <label for="{{ $options['id'] }}" class="col-sm-4 control-label">{{ $label }}</label>
-
- <div class="col-sm-8">
- {{ Html::input('text', $name, $value)->id($options['id'])->class('form-control')->attribute('autocomplete','off')->attribute('spellcheck','false')->attribute('placeholder',$options['placeholder']) }}
+<div class="row mb-3" id="{{ $name }}_holder">
+ <div class="input-group has-validation">
+ <label for="{{ $options['id'] }}" class="col-sm-3 col-form-label has-validation">{{ $label }}</label>
+ <div class="col-sm-9">
+ {{ Html::input('text', $name, $value)->id($options['id'])->class($errors->has($name) ? 'is-invalid form-control' : 'form-control')->attribute('autocomplete','off')->attribute('spellcheck','false')->attribute('placeholder',$options['placeholder']) }}
+ @include('form.feedback')
@include('form.help')
- {% include 'form.feedback' %}
+ </div>
</div>
</div>
diff --git a/resources/views/form/textarea.twig b/resources/views/form/textarea.twig
index d8f647db29..0ff8a5a083 100644
--- a/resources/views/form/textarea.twig
+++ b/resources/views/form/textarea.twig
@@ -3,7 +3,7 @@
<div class="col-sm-8">
{{ Html.textarea(name, value).id(options.id).attribute('rows', options.rows).class('form-control').attribute('autocomplete','off').attribute('spellcheck','false').attribute('placeholder',options.placeholder) }}
- {% include 'form.help' %}
- {% include 'form.feedback' %}
+ @include('form.help')
+ @include('form.feedback')
</div>
</div>
diff --git a/resources/views/layout/default.twig b/resources/views/layout/default.twig
index 5fce2dab1d..f5122e0333 100644
--- a/resources/views/layout/default.twig
+++ b/resources/views/layout/default.twig
@@ -81,7 +81,7 @@
{% endif %}
{# Any local custom CSS. #}
- {% block styles %}{% endblock %}
+ @section('styles')@endsection
<!--[if lt IE 9]>
<script src="v1/js/lib/html5shiv.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script src="v1/js/lib/respond.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
@@ -172,7 +172,7 @@
<div class="content-wrapper">
<section class="content-header">
{% include('partials.page-header') %}
- {% block breadcrumbs %}{% endblock %}
+ {% block breadcrumbs %}@endsection
</section>
<section class="content">
@@ -188,7 +188,7 @@
{% include('partials.flashes') %}
- {% block content %}{% endblock %}
+ @section('content')@endsection
</section>
</div>
<footer class="main-footer">
@@ -231,7 +231,7 @@
{# Java libraries and stuff: #}
-{% block definitions %}{% endblock %}
+{% block definitions %}@endsection
{# Moment JS #}
<script src="v1/js/lib/moment.min.js?v={{ $FF_BUILD_TIME }}" type="text/javascript" nonce="{{ $JS_NONCE }}"></script>
@@ -272,7 +272,7 @@
<script type="text/javascript" src="v1/js/ff/intro/intro.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
{% endif %}
-{% block scripts %}{% endblock %}
+@section('scripts')@endsection
{% if config('firefly.tracker_site_id') != '' and config('firefly.tracker_url') != '' %}
<!-- This tracker tag is only here because this instance of Firefly III was purposefully configured to include it -->
diff --git a/resources/views/layout/empty.twig b/resources/views/layout/empty.twig
index 784aec71c0..daf9f401ad 100644
--- a/resources/views/layout/empty.twig
+++ b/resources/views/layout/empty.twig
@@ -61,7 +61,7 @@
<div class="login-logo">
<a href="{{ route('index') }}"><strong>Firefly</strong>III</a>
</div>
- {% block content %}{% endblock %}
+ @section('content')@endsection
</div>
<script src="v1/js/app.js?v={{ $FF_BUILD_TIME }}" type="text/javascript" nonce="{{ $JS_NONCE }}"></script>
diff --git a/resources/views/layout/guest.twig b/resources/views/layout/guest.twig
index 8da9284399..b6f89204cc 100644
--- a/resources/views/layout/guest.twig
+++ b/resources/views/layout/guest.twig
@@ -70,7 +70,7 @@
<div class="login-logo">
<a href="{{ route('index') }}"><strong>Firefly</strong>III</a>
</div>
- {% block content %}{% endblock %}
+ @section('content')@endsection
</div>
<div class="text-center text-muted">
<small>
diff --git a/resources/views/layout/install.twig b/resources/views/layout/install.twig
index c770bc753a..bb726e3731 100644
--- a/resources/views/layout/install.twig
+++ b/resources/views/layout/install.twig
@@ -29,7 +29,7 @@
<strong>Firefly</strong>III<br/>
<span class="install-box-title">installation and upgrade</span>
</div>
- {% block content %}{% endblock %}
+ @section('content')@endsection
</div>
<div class="text-center text-muted">
<small>
@@ -38,7 +38,7 @@
</div>
<script src="v1/js/app.js?v={{ $FF_BUILD_TIME }}" type="text/javascript" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/guest.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% block scripts %}{% endblock %}
+@section('scripts')@endsection
{% if config('firefly.tracker_site_id') != '' and config('firefly.tracker_url') != '' %}
<!-- This tracker tag is only here because this instance of Firefly III was purposefully configured to include it -->
<!-- Your own installation will NOT include it, unless you explicitly configure it to have it. -->
diff --git a/resources/views/new-user/index.twig b/resources/views/new-user/index.twig
index 35677d59de..e915fbbfca 100644
--- a/resources/views/new-user/index.twig
+++ b/resources/views/new-user/index.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form action="{{ route('new-user.submit') }}" method="post" id="store" class="form-horizontal">
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
@@ -70,4 +70,4 @@
</form>
-{% endblock %}
+@endsection
diff --git a/resources/views/object-groups/delete.twig b/resources/views/object-groups/delete.twig
index 6598e852da..2d503c94c1 100644
--- a/resources/views/object-groups/delete.twig
+++ b/resources/views/object-groups/delete.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, objectGroup) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('object-groups.destroy',objectGroup.id) }}" accept-charset="UTF-8" class="form-horizontal">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@@ -39,4 +39,4 @@
</div>
</form>
-{% endblock %}
+@endsection
diff --git a/resources/views/object-groups/edit.twig b/resources/views/object-groups/edit.twig
index 0dff738a7d..bb26e98a72 100644
--- a/resources/views/object-groups/edit.twig
+++ b/resources/views/object-groups/edit.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, objectGroup) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="post" action="{{ route('object-groups.update',objectGroup.id) }}" class="form-horizontal"
accept-charset="UTF-8"
enctype="multipart/form-data">
@@ -30,7 +30,7 @@
{# panel for options #}
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'options'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.options') }}</h3>
</div>
<div class="card-body">
{{ ExpandedForm::optionsList('update','object group') }}
@@ -45,8 +45,8 @@
</div>
</div>
</form>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" src="v1/js/lib/modernizr-custom.js?v={{ $FF_BUILD_TIME }}"
nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/lib/jquery-ui.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
@@ -57,11 +57,11 @@
nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/object-groups/create-edit.js?v={{ $FF_BUILD_TIME }}"
nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
-{% block styles %}
+@section('styles')
<link href="v1/css/jquery-ui/jquery-ui.structure.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet"
media="all" nonce="{{ $JS_NONCE }}">
<link href="v1/css/jquery-ui/jquery-ui.theme.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet"
media="all" nonce="{{ $JS_NONCE }}">
-{% endblock %}
+@endsection
diff --git a/resources/views/partials/menu-sidebar.twig b/resources/views/partials/menu-sidebar.twig
index 24ebba15e3..901bc523bf 100644
--- a/resources/views/partials/menu-sidebar.twig
+++ b/resources/views/partials/menu-sidebar.twig
@@ -200,7 +200,7 @@
id="option-menu">
<a href="#">
<em class="fa fa-sliders"></em>
- <span>{{ 'options'|_ }}</span>
+ <span>{{ __('firefly.options') }}</span>
<span class="pull-right-container">
<span class="fa fa-angle-left pull-right"></span>
</span>
diff --git a/resources/views/piggy-banks/add-mobile.twig b/resources/views/piggy-banks/add-mobile.twig
index 31bfe82a95..3a32241dda 100644
--- a/resources/views/piggy-banks/add-mobile.twig
+++ b/resources/views/piggy-banks/add-mobile.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, piggyBank) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('piggy-banks.add', piggyBank.id) }}" accept-charset="UTF-8" class="form-horizontal" id="store">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
<div class="row">
@@ -41,4 +41,4 @@
</div>
</form>
-{% endblock %}
+@endsection
diff --git a/resources/views/piggy-banks/create.twig b/resources/views/piggy-banks/create.twig
index 865ab22190..056c8d9019 100644
--- a/resources/views/piggy-banks/create.twig
+++ b/resources/views/piggy-banks/create.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('piggy-banks.store') }}" accept-charset="UTF-8" class="form-horizontal" id="store" enctype="multipart/form-data">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@@ -42,7 +42,7 @@
{# panel for options #}
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'options'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.options') }}</h3>
</div>
<div class="card-body">
{{ ExpandedForm::optionsList('create','piggy bank') }}
@@ -57,8 +57,8 @@
</div>
</div>
</form>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" src="v1/js/lib/modernizr-custom.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/lib/jquery-ui.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/piggy-banks/create.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
@@ -66,9 +66,9 @@
{# auto complete for object groups #}
<script type="text/javascript" src="v1/js/lib/typeahead/typeahead.bundle.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/object-groups/create-edit.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
-{% block styles %}
+@section('styles')
<link href="v1/css/jquery-ui/jquery-ui.structure.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet" media="all" nonce="{{ $JS_NONCE }}">
<link href="v1/css/jquery-ui/jquery-ui.theme.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet" media="all" nonce="{{ $JS_NONCE }}">
-{% endblock %}
+@endsection
diff --git a/resources/views/piggy-banks/delete.twig b/resources/views/piggy-banks/delete.twig
index 553e2662b5..08b2b724eb 100644
--- a/resources/views/piggy-banks/delete.twig
+++ b/resources/views/piggy-banks/delete.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, piggyBank) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('piggy-banks.destroy',piggyBank.id) }}" accept-charset="UTF-8" class="form-horizontal" id="destroy">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@@ -32,4 +32,4 @@
</div>
</form>
-{% endblock %}
+@endsection
diff --git a/resources/views/piggy-banks/edit.twig b/resources/views/piggy-banks/edit.twig
index 2720874830..a6e5dae5aa 100644
--- a/resources/views/piggy-banks/edit.twig
+++ b/resources/views/piggy-banks/edit.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, piggyBank) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="post" action="{{ route('piggy-banks.update', piggyBank.id) }}" class="form-horizontal"
accept-charset="UTF-8"
enctype="multipart/form-data">
@@ -50,7 +50,7 @@
{# panel for options #}
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'options'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.options') }}</h3>
</div>
<div class="card-body">
{{ ExpandedForm::optionsList('update','piggy bank') }}
@@ -65,8 +65,8 @@
</div>
</div>
</form>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" src="v1/js/lib/modernizr-custom.js?v={{ $FF_BUILD_TIME }}"
nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/lib/jquery-ui.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
@@ -77,11 +77,11 @@
nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/object-groups/create-edit.js?v={{ $FF_BUILD_TIME }}"
nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
-{% block styles %}
+@section('styles')
<link href="v1/css/jquery-ui/jquery-ui.structure.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet"
media="all" nonce="{{ $JS_NONCE }}">
<link href="v1/css/jquery-ui/jquery-ui.theme.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet"
media="all" nonce="{{ $JS_NONCE }}">
-{% endblock %}
+@endsection
diff --git a/resources/views/piggy-banks/remove-mobile.twig b/resources/views/piggy-banks/remove-mobile.twig
index b5325e211f..46f83a4a73 100644
--- a/resources/views/piggy-banks/remove-mobile.twig
+++ b/resources/views/piggy-banks/remove-mobile.twig
@@ -1,9 +1,9 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, piggyBank) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form id="remove" class="form-horizontal" action="{{ route('piggy-banks.remove', piggyBank.id) }}" method="POST">
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
<div class="row">
@@ -39,4 +39,4 @@
</div>
</form>
-{% endblock %}
+@endsection
diff --git a/resources/views/piggy-banks/show.twig b/resources/views/piggy-banks/show.twig
index 1764dd3ee5..9104f3d4df 100644
--- a/resources/views/piggy-banks/show.twig
+++ b/resources/views/piggy-banks/show.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, piggyBank) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<div class="row">
<div class="col-lg-8 col-md-8 col-sm-6">
<div class="box" id="piggyChart">
@@ -155,9 +155,9 @@
<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 %}
+@endsection
-{% block scripts %}
+@section('scripts')
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
var piggyBankID = {{ piggyBank.id }};
var confirmText= '{{ 'reset_history_confirm'|_|escape('js') }}';
@@ -167,4 +167,4 @@
<script type="text/javascript" src="v1/js/ff/charts.defaults.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/charts.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/piggy-banks/show.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
diff --git a/resources/views/preferences/index.twig b/resources/views/preferences/index.twig
index c3ca40a6ec..82ec81ac8e 100644
--- a/resources/views/preferences/index.twig
+++ b/resources/views/preferences/index.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('preferences.update') }}" accept-charset="UTF-8" class="form-horizontal"
id="preferences">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@@ -419,8 +419,8 @@
</div>
</div>
</form>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
var postUrl = "{{ route('preferences.test-notification') }}";
</script>
@@ -429,11 +429,11 @@
<script type="text/javascript" src="v1/js/lib/jquery-ui.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/preferences/index.js?v={{ $FF_BUILD_TIME }}"
nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
-{% block styles %}
+@section('styles')
<link href="v1/css/jquery-ui/jquery-ui.structure.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet"
media="all" nonce="{{ $JS_NONCE }}">
<link href="v1/css/jquery-ui/jquery-ui.theme.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet"
media="all" nonce="{{ $JS_NONCE }}">
-{% endblock %}
+@endsection
diff --git a/resources/views/profile/change-email.twig b/resources/views/profile/change-email.twig
index 66acc16b05..bd62a57bdf 100644
--- a/resources/views/profile/change-email.twig
+++ b/resources/views/profile/change-email.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('profile.change-email.post') }}" accept-charset="UTF-8" class="form-horizontal" id="change-password">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@@ -44,4 +44,4 @@
</div>
</div>
</form>
-{% endblock %}
+@endsection
diff --git a/resources/views/profile/change-password.twig b/resources/views/profile/change-password.twig
index 4ff77619ac..ae6cdf32f9 100644
--- a/resources/views/profile/change-password.twig
+++ b/resources/views/profile/change-password.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('profile.change-password.post') }}" accept-charset="UTF-8" class="form-horizontal" id="change-password">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@@ -66,4 +66,4 @@
</div>
</form>
{% include 'partials.password-modal-twig' %}
-{% endblock %}
+@endsection
diff --git a/resources/views/profile/delete-account.twig b/resources/views/profile/delete-account.twig
index 69a2fb6b91..e253b8b57a 100644
--- a/resources/views/profile/delete-account.twig
+++ b/resources/views/profile/delete-account.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('profile.delete-account.post') }}" accept-charset="UTF-8" class="form-horizontal" id="delete-account">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@@ -52,8 +52,8 @@
</div>
</form>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<!-- just a bit of inline code -->
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
var confirmText= '{{ 'are_you_sure'|_|escape('js') }}';
@@ -64,4 +64,4 @@
});
});
</script>
-{% endblock %}
+@endsection
diff --git a/resources/views/profile/index.twig b/resources/views/profile/index.twig
index 545433088f..2953e4cb1e 100644
--- a/resources/views/profile/index.twig
+++ b/resources/views/profile/index.twig
@@ -1,11 +1,11 @@
{% set VUE_SCRIPT_NAME = 'profile' %}
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<div class="row">
<div class="col-lg-8 offset-lg-2 col-md-12 col-sm-12">
@@ -14,7 +14,7 @@
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active">
<a href="{{ route('profile.index') }}#options" aria-controls="home" role="tab"
- data-toggle="tab">{{ 'options'|_ }}</a>
+ data-toggle="tab">{{ __('firefly.options') }}</a>
</li>
<li role="presentation">
<a href="#cmd" aria-controls="profile" role="tab" data-toggle="tab">{{ 'command_line_token'|_ }}</a>
@@ -260,8 +260,8 @@
</div>
</div>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
var deleteAPIRoute = '{{ route('api.v1.data.destroy') }}';
var confirmText = '{{ trans('firefly.are_you_sure')|escape('js') }}';
@@ -304,4 +304,4 @@
});
});
</script>
-{% endblock %}
+@endsection
diff --git a/resources/views/profile/logout-other-sessions.twig b/resources/views/profile/logout-other-sessions.twig
index 06a6573c59..b718517f9a 100644
--- a/resources/views/profile/logout-other-sessions.twig
+++ b/resources/views/profile/logout-other-sessions.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('profile.logout-others.post') }}" accept-charset="UTF-8" class="form-horizontal">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@@ -32,4 +32,4 @@
</div>
</form>
{% include 'partials.password-modal' %}
-{% endblock %}
+@endsection
diff --git a/resources/views/profile/mfa/backup-codes-intro.twig b/resources/views/profile/mfa/backup-codes-intro.twig
index 9321a97048..9bf0fdc07c 100644
--- a/resources/views/profile/mfa/backup-codes-intro.twig
+++ b/resources/views/profile/mfa/backup-codes-intro.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('profile.mfa.backup-codes.post') }}" accept-charset="UTF-8" class="form-horizontal" id="preferences_code">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
<div class="row">
@@ -43,4 +43,4 @@
</form>
-{% endblock %}
+@endsection
diff --git a/resources/views/profile/mfa/backup-codes-post.twig b/resources/views/profile/mfa/backup-codes-post.twig
index 08991a2427..7c58a9361c 100644
--- a/resources/views/profile/mfa/backup-codes-post.twig
+++ b/resources/views/profile/mfa/backup-codes-post.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<div class="row">
<div class="col-lg-6 col-lg-offset-3 col-md-12 col-sm-12 col-xs-12">
<div class="card">
@@ -25,4 +25,4 @@
</div>
</div>
</div>
-{% endblock %}
+@endsection
diff --git a/resources/views/profile/mfa/disable-mfa.twig b/resources/views/profile/mfa/disable-mfa.twig
index c9f546556b..3700a93720 100644
--- a/resources/views/profile/mfa/disable-mfa.twig
+++ b/resources/views/profile/mfa/disable-mfa.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('profile.mfa.disableMFA.post') }}" accept-charset="UTF-8" class="form-horizontal">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
<div class="row">
@@ -35,8 +35,8 @@
</div>
</div>
</form>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
$(function () {
"use strict";
@@ -45,4 +45,4 @@
$("form#preferences_code input:enabled:visible:first").first().select();
});
</script>
-{% endblock %}
+@endsection
diff --git a/resources/views/profile/mfa/enable-mfa.twig b/resources/views/profile/mfa/enable-mfa.twig
index 6b94653eb6..9b3e5c37e0 100644
--- a/resources/views/profile/mfa/enable-mfa.twig
+++ b/resources/views/profile/mfa/enable-mfa.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('profile.mfa.enableMFA.post') }}" accept-charset="UTF-8" class="form-horizontal" id="preferences_code">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
<div class="row">
@@ -46,8 +46,8 @@
</div>
</div>
</form>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
$(function () {
"use strict";
@@ -56,4 +56,4 @@
$("form#preferences_code input:enabled:visible:first").first().select();
});
</script>
-{% endblock %}
+@endsection
diff --git a/resources/views/profile/mfa/index.twig b/resources/views/profile/mfa/index.twig
index 7304d565cf..d414c64f6e 100644
--- a/resources/views/profile/mfa/index.twig
+++ b/resources/views/profile/mfa/index.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<div class="row">
<div class="col-lg-8 offset-lg-2 col-md-12 col-sm-12">
@@ -45,4 +45,4 @@
</div>
</div>
</div>
-{% endblock %}
+@endsection
diff --git a/resources/views/profile/new-backup-codes.twig b/resources/views/profile/new-backup-codes.twig
index c77fe8efb2..324bbc20a3 100644
--- a/resources/views/profile/new-backup-codes.twig
+++ b/resources/views/profile/new-backup-codes.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<div class="row">
<div class="col-lg-6 col-lg-offset-3 col-md-12 col-sm-12 col-xs-12">
<div class="card">
@@ -26,4 +26,4 @@
</div>
</div>
-{% endblock %}
+@endsection
diff --git a/resources/views/profile/oauth/index.twig b/resources/views/profile/oauth/index.twig
index 770dc781dc..fc44c9ca14 100644
--- a/resources/views/profile/oauth/index.twig
+++ b/resources/views/profile/oauth/index.twig
@@ -1,11 +1,11 @@
{% set VUE_SCRIPT_NAME = 'profile' %}
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<div class="row">
<div class="col-lg-8 offset-lg-2 col-md-12 col-sm-12">
@@ -29,8 +29,8 @@
</div>
</div>
</div>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
var deleteAPIRoute = '{{ route('api.v1.data.destroy') }}';
var confirmText = '{{ trans('firefly.are_you_sure')|escape('js') }}';
@@ -73,4 +73,4 @@
});
});
</script>
-{% endblock %}
+@endsection
diff --git a/resources/views/recurring/create.twig b/resources/views/recurring/create.twig
index 4971e49b4e..ce64c164e2 100644
--- a/resources/views/recurring/create.twig
+++ b/resources/views/recurring/create.twig
@@ -1,8 +1,8 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
-{% endblock %}
-{% block content %}
+@endsection
+@section('content')
<form action="{{ route('recurring.store') }}" method="post" id="store" class="form-horizontal"
enctype="multipart/form-data">
@@ -155,7 +155,7 @@
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'options'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.options') }}</h3>
</div>
<div class="card-body">
{{ ExpandedForm::optionsList('create','recurrence') }}
@@ -203,8 +203,8 @@
</div>
</div>
</div>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" src="v1/js/lib/modernizr-custom.js?v={{ $FF_BUILD_TIME }}"
nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/lib/typeahead/typeahead.bundle.min.js?v={{ $FF_BUILD_TIME }}"
@@ -224,9 +224,9 @@
</script>
<script type="text/javascript" src="v1/js/ff/recurring/create.js?v={{ $FF_BUILD_TIME }}"
nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
-{% block styles %}
+@section('styles')
<link href="v1/css/bootstrap-tagsinput.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet" media="all"
nonce="{{ $JS_NONCE }}">
<link href="v1/css/jquery-ui/jquery-ui.structure.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet"
@@ -235,4 +235,4 @@
media="all" nonce="{{ $JS_NONCE }}">
<link href="v1/lib/fc/fullcalendar.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet" media="all"
nonce="{{ $JS_NONCE }}">
-{% endblock %}
+@endsection
diff --git a/resources/views/recurring/delete.twig b/resources/views/recurring/delete.twig
index 651491b147..59ddd30c48 100644
--- a/resources/views/recurring/delete.twig
+++ b/resources/views/recurring/delete.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, recurrence) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('recurring.destroy',recurrence.id) }}" accept-charset="UTF-8" class="form-horizontal" id="destroy">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@@ -38,4 +38,4 @@
</div>
</form>
-{% endblock %}
+@endsection
diff --git a/resources/views/recurring/edit.twig b/resources/views/recurring/edit.twig
index 04d6085217..5cf5e4c765 100644
--- a/resources/views/recurring/edit.twig
+++ b/resources/views/recurring/edit.twig
@@ -1,8 +1,8 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, recurrence) }}
-{% endblock %}
-{% block content %}
+@endsection
+@section('content')
<form method="post" action="{{ route('recurring.update', recurrence.id) }}" class="form-horizontal"
accept-charset="UTF-8"
@@ -154,7 +154,7 @@
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'options'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.options') }}</h3>
</div>
<div class="card-body">
{{ ExpandedForm::optionsList('update','recurrence') }}
@@ -202,8 +202,8 @@
</div>
</div>
</div>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" src="v1/js/lib/modernizr-custom.js?v={{ $FF_BUILD_TIME }}"
nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/lib/typeahead/typeahead.bundle.min.js?v={{ $FF_BUILD_TIME }}"
@@ -222,9 +222,9 @@
var currentRepType = "{{ currentRepType }}";
</script>
<script type="text/javascript" src="v1/js/ff/recurring/edit.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
-{% block styles %}
+@section('styles')
<link href="v1/css/bootstrap-tagsinput.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet" media="all"
nonce="{{ $JS_NONCE }}">
<link href="v1/css/jquery-ui/jquery-ui.structure.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet"
@@ -233,4 +233,4 @@
media="all" nonce="{{ $JS_NONCE }}">
<link href="v1/lib/fc/fullcalendar.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet" media="all"
nonce="{{ $JS_NONCE }}">
-{% endblock %}
+@endsection
diff --git a/resources/views/recurring/old-index.twig b/resources/views/recurring/old-index.twig
index 6682b536d2..2d458c4131 100644
--- a/resources/views/recurring/old-index.twig
+++ b/resources/views/recurring/old-index.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<!-- block with list of recurring transaction -->
{% if total > 0 %}
<div class="row">
@@ -155,12 +155,12 @@
{% if total == 0 and page == 1 %}
{% include 'partials.empty' with {objectType: 'default', type: 'recurring',route: route('recurring.create')} %}
{% endif %}
-{% endblock %}
+@endsection
-{% block styles %}
+@section('styles')
<link rel="stylesheet" href="v1/css/bootstrap-sortable.css?v={{ $FF_BUILD_TIME }}" type="text/css" media="all" nonce="{{ $JS_NONCE }}">
-{% endblock %}
+@endsection
-{% block scripts %}
+@section('scripts')
<script type="text/javascript" src="v1/js/lib/bootstrap-sortable.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
diff --git a/resources/views/recurring/show.twig b/resources/views/recurring/show.twig
index 71f13769b2..f86a5e5a86 100644
--- a/resources/views/recurring/show.twig
+++ b/resources/views/recurring/show.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, recurrence) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<div class="row">
<!-- basic info -->
<div class="col-lg-8 col-md-12 col-sm-12">
@@ -210,16 +210,16 @@
</div>
</div>
</div>
- {% endblock %}
+ @endsection
- {% block styles %}
+ @section('styles')
<link rel="stylesheet" href="v1/css/bootstrap-sortable.css?v={{ $FF_BUILD_TIME }}" type="text/css" media="all"
nonce="{{ $JS_NONCE }}">
- {% endblock %}
+ @endsection
- {% block scripts %}
+ @section('scripts')
<script type="text/javascript" src="v1/js/lib/bootstrap-sortable.js?v={{ $FF_BUILD_TIME }}"
nonce="{{ $JS_NONCE }}"></script>
{# required for groups.twig #}
<script type="text/javascript" src="v1/js/ff/list/groups.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
- {% endblock %}
+ @endsection
diff --git a/resources/views/reports/audit/report.twig b/resources/views/reports/audit/report.twig
index 20cc50474d..cb4956e7ee 100644
--- a/resources/views/reports/audit/report.twig
+++ b/resources/views/reports/audit/report.twig
@@ -1,16 +1,16 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, accountIds, start, end) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<div class="row no-print">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="box" id="optionsBox">
<div class="card-header">
- <h3 class="card-title">{{ 'options'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.options') }}</h3>
</div>
<div class="card-body">
<ul class="list-inline">
@@ -80,13 +80,13 @@
</div>
{% endfor %}
-{% endblock %}
-{% block styles %}
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('styles')
+@endsection
+@section('scripts')
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
var hideable = {{ hideable|json_encode|raw }};
</script>
<script type="text/javascript" src="v1/js/ff/reports/all.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/reports/audit/all.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
diff --git a/resources/views/reports/budget/month.twig b/resources/views/reports/budget/month.twig
index ee7050a208..e64394090a 100644
--- a/resources/views/reports/budget/month.twig
+++ b/resources/views/reports/budget/month.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, accountIds, budgetIds, start, end) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
@@ -156,9 +156,9 @@
</div>
</div>
-{% endblock %}
+@endsection
-{% block scripts %}
+@section('scripts')
<script type="text/javascript" src="v1/js/lib/Chart.bundle.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/charts.defaults.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/charts.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
@@ -188,8 +188,8 @@
<script type="text/javascript" src="v1/js/ff/reports/all.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/reports/budget/month.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
-{% block styles %}
+@section('styles')
<link rel="stylesheet" href="v1/css/bootstrap-sortable.css?v={{ $FF_BUILD_TIME }}" type="text/css" media="all" nonce="{{ $JS_NONCE }}">
-{% endblock %}
+@endsection
diff --git a/resources/views/reports/category/month.twig b/resources/views/reports/category/month.twig
index a8b2fa28b9..aba512e235 100644
--- a/resources/views/reports/category/month.twig
+++ b/resources/views/reports/category/month.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, accountIds, categoryIds, start, end) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
@@ -225,9 +225,9 @@
</div>
</div>
-{% endblock %}
+@endsection
-{% block scripts %}
+@section('scripts')
<script type="text/javascript" src="v1/js/lib/Chart.bundle.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/charts.defaults.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/charts.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
@@ -263,8 +263,8 @@
</script>
<script type="text/javascript" src="v1/js/ff/reports/category/month.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
-{% block styles %}
+@section('styles')
<link rel="stylesheet" href="v1/css/bootstrap-sortable.css?v={{ $FF_BUILD_TIME }}" type="text/css" media="all" nonce="{{ $JS_NONCE }}">
-{% endblock %}
+@endsection
diff --git a/resources/views/reports/default/month.twig b/resources/views/reports/default/month.twig
index a9383a6414..969ddbc49f 100644
--- a/resources/views/reports/default/month.twig
+++ b/resources/views/reports/default/month.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, accountIds, start, end) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
{# chart #}
<div class="row">
@@ -156,11 +156,11 @@
</div>
</div>
</div>
-{% endblock %}
-{% block styles %}
+@endsection
+@section('styles')
<link rel="stylesheet" href="v1/css/bootstrap-sortable.css?v={{ $FF_BUILD_TIME }}" type="text/css" media="all" nonce="{{ $JS_NONCE }}">
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" src="v1/js/lib/bootstrap-sortable.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/lib/Chart.bundle.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
@@ -191,4 +191,4 @@
<script type="text/javascript" src="v1/js/ff/reports/all.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/reports/default/all.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/reports/default/month.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
diff --git a/resources/views/reports/default/multi-year.twig b/resources/views/reports/default/multi-year.twig
index a78c4f1cba..975d129774 100644
--- a/resources/views/reports/default/multi-year.twig
+++ b/resources/views/reports/default/multi-year.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, accountIds, start, end) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
{# charts #}
<div class="row">
@@ -197,11 +197,11 @@
</div>
</div>
-{% endblock %}
-{% block styles %}
+@endsection
+@section('styles')
<link rel="stylesheet" href="v1/css/bootstrap-sortable.css?v={{ $FF_BUILD_TIME }}" type="text/css" media="all" nonce="{{ $JS_NONCE }}">
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" src="v1/js/lib/bootstrap-sortable.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/lib/Chart.bundle.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
@@ -233,4 +233,4 @@
<script type="text/javascript" src="v1/js/ff/reports/all.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/reports/default/all.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/reports/default/multi-year.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
diff --git a/resources/views/reports/default/year.twig b/resources/views/reports/default/year.twig
index df4a73661b..ed06a91bcd 100644
--- a/resources/views/reports/default/year.twig
+++ b/resources/views/reports/default/year.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, accountIds, start, end) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
{# charts #}
<div class="row">
@@ -196,8 +196,8 @@
</div>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" src="v1/js/lib/bootstrap-sortable.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/lib/Chart.bundle.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/charts.defaults.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
@@ -228,7 +228,7 @@
<script type="text/javascript" src="v1/js/ff/reports/default/all.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/reports/default/year.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
-{% block styles %}
+@endsection
+@section('styles')
<link rel="stylesheet" href="v1/css/bootstrap-sortable.css?v={{ $FF_BUILD_TIME }}" type="text/css" media="all" nonce="{{ $JS_NONCE }}">
-{% endblock %}
+@endsection
diff --git a/resources/views/reports/double/report.twig b/resources/views/reports/double/report.twig
index e43e6e4dc3..1538b38d12 100644
--- a/resources/views/reports/double/report.twig
+++ b/resources/views/reports/double/report.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, accountIds, doubleIds, start, end) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<div class="row">
<div class="col-lg-6 col-md-12 col-sm-12 col-xs-12">
@@ -201,9 +201,9 @@
</div>
</div>
-{% endblock %}
+@endsection
-{% block scripts %}
+@section('scripts')
<script type="text/javascript" src="v1/js/lib/Chart.bundle.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/charts.defaults.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/charts.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
@@ -237,8 +237,8 @@
<script type="text/javascript" src="v1/js/ff/reports/all.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/reports/double/month.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
-{% block styles %}
+@section('styles')
<link rel="stylesheet" href="v1/css/bootstrap-sortable.css?v={{ $FF_BUILD_TIME }}" type="text/css" media="all" nonce="{{ $JS_NONCE }}">
-{% endblock %}
+@endsection
diff --git a/resources/views/reports/tag/month.twig b/resources/views/reports/tag/month.twig
index ae18cd68c9..a481f53ebf 100644
--- a/resources/views/reports/tag/month.twig
+++ b/resources/views/reports/tag/month.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, accountIds, tagIds, start, end) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
@@ -256,9 +256,9 @@
</div>
</div>
-{% endblock %}
+@endsection
-{% block scripts %}
+@section('scripts')
<script type="text/javascript" src="v1/js/lib/Chart.bundle.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/charts.defaults.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/charts.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
@@ -296,8 +296,8 @@
</script>
<script type="text/javascript" src="v1/js/ff/reports/tag/month.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
-{% block styles %}
+@section('styles')
<link rel="stylesheet" href="v1/css/bootstrap-sortable.css?v={{ $FF_BUILD_TIME }}" type="text/css" media="all" nonce="{{ $JS_NONCE }}">
-{% endblock %}
+@endsection
diff --git a/resources/views/rules/old-index.twig b/resources/views/rules/old-index.twig
index 95e87e7ff2..f13847bc9a 100644
--- a/resources/views/rules/old-index.twig
+++ b/resources/views/rules/old-index.twig
@@ -1,8 +1,8 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
-{% endblock %}
-{% block content %}
+@endsection
+@section('content')
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
@@ -206,12 +206,12 @@
</div>
</div>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
var moveRuleGroupUrl = '{{ route('rule-groups.move') }}';
var duplicateRuleUrl = '{{ route('rules.duplicate') }}';
</script>
<script type="text/javascript" src="v1/js/lib/jquery-ui.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/rules/index.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
diff --git a/resources/views/rules/rule-group/create.twig b/resources/views/rules/rule-group/create.twig
index 617e6fea72..01e6045b0b 100644
--- a/resources/views/rules/rule-group/create.twig
+++ b/resources/views/rules/rule-group/create.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('rule-groups.store') }}" accept-charset="UTF-8" class="form-horizontal" id="store">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
<div class="row">
@@ -36,7 +36,7 @@
{# panel for options #}
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'options'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.options') }}</h3>
</div>
<div class="card-body">
{{ ExpandedForm::optionsList('create','rule-group') }}
@@ -50,7 +50,7 @@
</div>
</form>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" src="v1/js/ff/rule-groups/create.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
diff --git a/resources/views/rules/rule-group/delete.twig b/resources/views/rules/rule-group/delete.twig
index bd278d461f..fa9e515e87 100644
--- a/resources/views/rules/rule-group/delete.twig
+++ b/resources/views/rules/rule-group/delete.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, ruleGroup) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('rule-groups.destroy',ruleGroup.id) }}" accept-charset="UTF-8" class="form-horizontal" id="destroy">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@@ -51,4 +51,4 @@
</div>
</div>
</form>
-{% endblock %}
+@endsection
diff --git a/resources/views/rules/rule-group/edit.twig b/resources/views/rules/rule-group/edit.twig
index 3d7c189f10..aba8f01b31 100644
--- a/resources/views/rules/rule-group/edit.twig
+++ b/resources/views/rules/rule-group/edit.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, ruleGroup) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="post" action="{{ route('rule-groups.update',ruleGroup.id) }}" class="form-horizontal"
accept-charset="UTF-8"
enctype="multipart/form-data">
@@ -44,7 +44,7 @@
{# panel for options #}
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'options'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.options') }}</h3>
</div>
<div class="card-body">
{{ ExpandedForm::optionsList('update','rule-group') }}
@@ -58,8 +58,8 @@
</form>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" src="v1/js/ff/rule-groups/edit.js?v={{ $FF_BUILD_TIME }}"
nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
diff --git a/resources/views/rules/rule-group/select-transactions.twig b/resources/views/rules/rule-group/select-transactions.twig
index 1eb65fe59c..99abb256f4 100644
--- a/resources/views/rules/rule-group/select-transactions.twig
+++ b/resources/views/rules/rule-group/select-transactions.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, ruleGroup) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('rule-groups.execute', ruleGroup.id) }}" accept-charset="UTF-8"
class="form-horizontal" id="execute-rule-group">
@@ -39,18 +39,18 @@
</div>
</div>
</form>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" src="v1/js/lib/modernizr-custom.js?v={{ $FF_BUILD_TIME }}"
nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/lib/jquery-ui.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/rules/select-transactions.js?v={{ $FF_BUILD_TIME }}"
nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
-{% block styles %}
+@section('styles')
<link href="v1/css/jquery-ui/jquery-ui.structure.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet"
media="all" nonce="{{ $JS_NONCE }}">
<link href="v1/css/jquery-ui/jquery-ui.theme.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet"
media="all" nonce="{{ $JS_NONCE }}">
-{% endblock %}
+@endsection
diff --git a/resources/views/rules/rule/create.twig b/resources/views/rules/rule/create.twig
index 8516981a82..7d3ea86f46 100644
--- a/resources/views/rules/rule/create.twig
+++ b/resources/views/rules/rule/create.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, ruleGroup) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('rules.store') }}" accept-charset="UTF-8" class="form-horizontal" id="store">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@@ -129,7 +129,7 @@
{# panel for options #}
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'options'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.options') }}</h3>
</div>
<div class="card-body">
{{ ExpandedForm::checkbox('run_after_form',1,null, {helpText: trans('firefly.rule_run_after_creation')}) }}
@@ -145,8 +145,8 @@
</div>
</form>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" src="v1/js/lib/typeahead/typeahead.bundle.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
var triggerCount = {{ triggerCount }};
@@ -155,6 +155,6 @@
</script>
<script type="text/javascript" src="v1/js/ff/rules/create-edit.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
-{% block styles %}
-{% endblock %}
+@endsection
+@section('styles')
+@endsection
diff --git a/resources/views/rules/rule/delete.twig b/resources/views/rules/rule/delete.twig
index bc4f0c4b45..9b2fca8b2f 100644
--- a/resources/views/rules/rule/delete.twig
+++ b/resources/views/rules/rule/delete.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, rule) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('rules.destroy',rule.id) }}" accept-charset="UTF-8" class="form-horizontal" id="destroy">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@@ -31,4 +31,4 @@
</div>
</div>
</form>
-{% endblock %}
+@endsection
diff --git a/resources/views/rules/rule/edit.twig b/resources/views/rules/rule/edit.twig
index aade36b3ca..db3ede34a7 100644
--- a/resources/views/rules/rule/edit.twig
+++ b/resources/views/rules/rule/edit.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, rule) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="post" action="{{ route('rules.update', rule.id) }}" class="form-horizontal" accept-charset="UTF-8"
enctype="multipart/form-data">
@@ -115,7 +115,7 @@
{# panel for options #}
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'options'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.options') }}</h3>
</div>
<div class="card-body">
{{ ExpandedForm::checkbox('run_after_form',1,null, {helpText: trans('firefly.rule_run_after_edit')}) }}
@@ -132,8 +132,8 @@
</form>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" src="v1/js/lib/typeahead/typeahead.bundle.min.js?v={{ $FF_BUILD_TIME }}"
nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
@@ -144,4 +144,4 @@
<script type="text/javascript" src="v1/js/ff/rules/create-edit.js?v={{ $FF_BUILD_TIME }}"
nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
diff --git a/resources/views/rules/rule/select-transactions.twig b/resources/views/rules/rule/select-transactions.twig
index 5a4eeb88cb..a5ba2092ff 100644
--- a/resources/views/rules/rule/select-transactions.twig
+++ b/resources/views/rules/rule/select-transactions.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, rule) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('rules.execute', rule.id) }}" accept-charset="UTF-8" class="form-horizontal" id="execute-rule">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@@ -37,14 +37,14 @@
</div>
</div>
</form>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" src="v1/js/lib/modernizr-custom.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/lib/jquery-ui.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/rules/select-transactions.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
-{% block styles %}
+@section('styles')
<link href="v1/css/jquery-ui/jquery-ui.structure.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet" media="all" nonce="{{ $JS_NONCE }}">
<link href="v1/css/jquery-ui/jquery-ui.theme.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet" media="all" nonce="{{ $JS_NONCE }}">
-{% endblock %}
+@endsection
diff --git a/resources/views/search/index.twig b/resources/views/search/index.twig
index fb7d5d3d40..43af6f7810 100644
--- a/resources/views/search/index.twig
+++ b/resources/views/search/index.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, fullQuery) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<div class="row">
<div class="col-lg-12">
<div class="card">
@@ -155,8 +155,8 @@
</div>
{% endif %}
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
var edit_selected_txt = "{{ trans('firefly.edit')|escape('js') }}";
var delete_selected_txt = "{{ trans('firefly.delete')|escape('js') }}";
@@ -172,4 +172,4 @@
<script type="text/javascript" src="v1/js/ff/list/groups.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/search/index.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
diff --git a/resources/views/settings/link/create.twig b/resources/views/settings/link/create.twig
index 7133b590f1..46ce732b5f 100644
--- a/resources/views/settings/link/create.twig
+++ b/resources/views/settings/link/create.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('settings.links.store') }}" accept-charset="UTF-8" class="form-horizontal">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@@ -27,7 +27,7 @@
{# panel for options #}
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'options'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.options') }}</h3>
</div>
<div class="card-body">
{{ ExpandedForm::optionsList('create','link_type') }}
@@ -43,4 +43,4 @@
</form>
-{% endblock %}
+@endsection
diff --git a/resources/views/settings/link/delete.twig b/resources/views/settings/link/delete.twig
index ca55982241..dc1316f098 100644
--- a/resources/views/settings/link/delete.twig
+++ b/resources/views/settings/link/delete.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, linkType) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('settings.links.destroy',linkType.id) }}" accept-charset="UTF-8"
class="form-horizontal" id="destroy">
@@ -35,7 +35,7 @@
</p>
<p>
- {{ Html.select('move_link_type_before_delete', moveTo).class('form-control') }}
+ {{ Html::select('move_link_type_before_delete', moveTo).class('form-control') }}
</p>
{% else %}
<input type="hidden" name="move_link_type_before_delete" value="0"/>
@@ -52,4 +52,4 @@
</div>
</form>
-{% endblock %}
+@endsection
diff --git a/resources/views/settings/link/edit.twig b/resources/views/settings/link/edit.twig
index 138f14b776..6ab3c7cc09 100644
--- a/resources/views/settings/link/edit.twig
+++ b/resources/views/settings/link/edit.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, linkType) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="post" action="{{ route('settings.links.update', linkType.id) }}" class="form-horizontal"
accept-charset="UTF-8"
@@ -31,7 +31,7 @@
{# panel for options #}
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'options'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.options') }}</h3>
</div>
<div class="card-body">
{{ ExpandedForm::optionsList('update','link_type') }}
@@ -49,4 +49,4 @@
</form>
-{% endblock %}
+@endsection
diff --git a/resources/views/settings/link/index.twig b/resources/views/settings/link/index.twig
index 802aa90d81..15f7c1a392 100644
--- a/resources/views/settings/link/index.twig
+++ b/resources/views/settings/link/index.twig
@@ -1,9 +1,9 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render }}
-{% endblock %}
-{% block content %}
+@endsection
+@section('content')
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="card">
@@ -57,12 +57,12 @@
</div>
</div>
</div>
-{% endblock %}
+@endsection
-{% block scripts %}
+@section('scripts')
<script type="text/javascript" src="v1/js/lib/bootstrap-sortable.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
-{% block styles %}
+@section('styles')
<link rel="stylesheet" href="v1/css/bootstrap-sortable.css?v={{ $FF_BUILD_TIME }}" type="text/css" media="all" nonce="{{ $JS_NONCE }}">
-{% endblock %}
+@endsection
diff --git a/resources/views/settings/link/show.twig b/resources/views/settings/link/show.twig
index dfa153f76a..5540c7a6d7 100644
--- a/resources/views/settings/link/show.twig
+++ b/resources/views/settings/link/show.twig
@@ -1,9 +1,9 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, linkType) }}
-{% endblock %}
-{% block content %}
+@endsection
+@section('content')
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="card">
@@ -55,8 +55,8 @@
</div>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" src="v1/js/lib/bootstrap-sortable.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script nonce="{{ $JS_NONCE }}">
$('.switch-link').on('click', switchLink);
@@ -81,8 +81,8 @@
}
</script>
-{% endblock %}
+@endsection
-{% block styles %}
+@section('styles')
<link rel="stylesheet" href="v1/css/bootstrap-sortable.css?v={{ $FF_BUILD_TIME }}" type="text/css" media="all" nonce="{{ $JS_NONCE }}">
-{% endblock %}
+@endsection
diff --git a/resources/views/settings/notifications/index.twig b/resources/views/settings/notifications/index.twig
index 1a4a24e23c..75b5805fe2 100644
--- a/resources/views/settings/notifications/index.twig
+++ b/resources/views/settings/notifications/index.twig
@@ -1,9 +1,9 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render }}
-{% endblock %}
-{% block content %}
+@endsection
+@section('content')
<div class="row">
<div class="col-lg-6 col-md-12 col-sm-12 col-xs-12">
<form action="{{ route('settings.notification.post') }}" method="post">
@@ -84,4 +84,4 @@
</form>
</div>
-{% endblock %}
+@endsection
diff --git a/resources/views/settings/update/index.twig b/resources/views/settings/update/index.twig
index cff3aa5211..7ed5c6931c 100644
--- a/resources/views/settings/update/index.twig
+++ b/resources/views/settings/update/index.twig
@@ -1,9 +1,9 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render }}
-{% endblock %}
-{% block content %}
+@endsection
+@section('content')
<form action="{{ route('settings.update-check.post') }}" method="post" id="store" class="form-horizontal">
<div class="row">
@@ -66,10 +66,10 @@
</form>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
var updateCheckUrl = '{{ route('settings.update-check.manual') }}';
</script>
<script type="text/javascript" src="v1/js/ff/admin/update/index.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
diff --git a/resources/views/settings/users/delete.twig b/resources/views/settings/users/delete.twig
index 793df8593c..57c741c12a 100644
--- a/resources/views/settings/users/delete.twig
+++ b/resources/views/settings/users/delete.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, user) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('settings.users.destroy',user.id) }}" accept-charset="UTF-8" class="form-horizontal" id="destroy">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@@ -35,8 +35,8 @@
</div>
</div>
</form>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<!-- just a bit of inline code -->
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
var confirmText= '{{ 'are_you_sure'|_|escape('js') }}';
@@ -47,4 +47,4 @@
});
});
</script>
-{% endblock %}
+@endsection
diff --git a/resources/views/settings/users/edit.twig b/resources/views/settings/users/edit.twig
index c6286031fc..30c138c9f4 100644
--- a/resources/views/settings/users/edit.twig
+++ b/resources/views/settings/users/edit.twig
@@ -1,9 +1,9 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, user) }}
-{% endblock %}
-{% block content %}
+@endsection
+@section('content')
<form method="post" action="{{ route('settings.users.update',user.id) }}" class="form-horizontal"
accept-charset="UTF-8"
@@ -42,7 +42,7 @@
{# panel for options #}
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'options'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.options') }}</h3>
</div>
<div class="card-body">
{{ ExpandedForm::optionsList('update','account') }}
@@ -56,4 +56,4 @@
</div>
</div>
</form>
-{% endblock %}
+@endsection
diff --git a/resources/views/settings/users/index.twig b/resources/views/settings/users/index.twig
index 50803264b7..d710352f5c 100644
--- a/resources/views/settings/users/index.twig
+++ b/resources/views/settings/users/index.twig
@@ -1,9 +1,9 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render }}
-{% endblock %}
-{% block content %}
+@endsection
+@section('content')
{% if allowInvites %}
<div class="row">
<div class="col-lg-6">
@@ -172,12 +172,12 @@
</div>
{% endif %}
-{% endblock %}
-{% block styles %}
+@endsection
+@section('styles')
<link rel="stylesheet" href="v1/css/bootstrap-sortable.css?v={{ $FF_BUILD_TIME }}" type="text/css" media="all"
nonce="{{ $JS_NONCE }}">
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" src="v1/js/lib/bootstrap-sortable.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/admin/users.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
diff --git a/resources/views/settings/users/show.twig b/resources/views/settings/users/show.twig
index d51ae2fc34..5273c73a39 100644
--- a/resources/views/settings/users/show.twig
+++ b/resources/views/settings/users/show.twig
@@ -1,9 +1,9 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, user) }}
-{% endblock %}
-{% block content %}
+@endsection
+@section('content')
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<div class="card">
@@ -118,4 +118,4 @@
</div>
</div>
</div>
-{% endblock %}
+@endsection
diff --git a/resources/views/tags/create.twig b/resources/views/tags/create.twig
index 91eec15c60..4f4b17617e 100644
--- a/resources/views/tags/create.twig
+++ b/resources/views/tags/create.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<!-- set location data high up -->
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
var locations = {{ locations|json_encode|raw }};
@@ -44,7 +44,7 @@
{# panel for options #}
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'options'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.options') }}</h3>
</div>
<div class="card-body">
{{ ExpandedForm::optionsList('create','tag') }}
@@ -59,16 +59,16 @@
</div>
</div>
</form>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" src="v1/js/lib/modernizr-custom.js?v={{ $FF_BUILD_TIME }}"
nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/lib/jquery-ui.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script src="v1/js/ff/tags/create-edit.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
-{% block styles %}
+@endsection
+@section('styles')
<link href="v1/css/jquery-ui/jquery-ui.structure.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet"
media="all" nonce="{{ $JS_NONCE }}">
<link href="v1/css/jquery-ui/jquery-ui.theme.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet"
media="all" nonce="{{ $JS_NONCE }}">
-{% endblock %}
+@endsection
diff --git a/resources/views/tags/delete.twig b/resources/views/tags/delete.twig
index 3fcaf5ffac..60548f380c 100644
--- a/resources/views/tags/delete.twig
+++ b/resources/views/tags/delete.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, tag) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('tags.destroy',tag.id) }}" accept-charset="UTF-8" class="form-horizontal" id="destroy">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@@ -37,4 +37,4 @@
</div>
</div>
</form>
-{% endblock %}
+@endsection
diff --git a/resources/views/tags/edit.twig b/resources/views/tags/edit.twig
index a78b2fcc0e..296900da7a 100644
--- a/resources/views/tags/edit.twig
+++ b/resources/views/tags/edit.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, tag) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<!-- set location data high up -->
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
var locations = {{ locations|json_encode|raw }};
@@ -48,7 +48,7 @@
{# panel for options #}
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'options'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.options') }}</h3>
</div>
<div class="card-body">
{{ ExpandedForm::optionsList('update','tag') }}
@@ -65,16 +65,16 @@
</form>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" src="v1/js/lib/modernizr-custom.js?v={{ $FF_BUILD_TIME }}"
nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/lib/jquery-ui.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script src="v1/js/ff/tags/create-edit.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
-{% block styles %}
+@endsection
+@section('styles')
<link href="v1/css/jquery-ui/jquery-ui.structure.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet"
media="all" nonce="{{ $JS_NONCE }}">
<link href="v1/css/jquery-ui/jquery-ui.theme.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet"
media="all" nonce="{{ $JS_NONCE }}">
-{% endblock %}
+@endsection
diff --git a/resources/views/tags/show.twig b/resources/views/tags/show.twig
index d176dab264..632ceb4c2b 100644
--- a/resources/views/tags/show.twig
+++ b/resources/views/tags/show.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, tag, start, end) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<div class="card">
@@ -286,11 +286,11 @@
</div>
{% endif %}
-{% endblock %}
-{% block styles %}
+@endsection
+@section('styles')
<link rel="stylesheet" href="v1/lib/leaflet/leaflet.css?v={{ $FF_BUILD_TIME }}"/>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
// location stuff
{% if location %}
@@ -302,4 +302,4 @@
<script src="v1/lib/leaflet/leaflet.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script src="v1/js/ff/tags/show.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/list/groups.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
diff --git a/resources/views/transactions/bulk/edit.twig b/resources/views/transactions/bulk/edit.twig
index 11f86e2af8..a9623c4e32 100644
--- a/resources/views/transactions/bulk/edit.twig
+++ b/resources/views/transactions/bulk/edit.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, journals) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('transactions.bulk.update') }}" accept-charset="UTF-8" class="form-horizontal" id="update">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@@ -184,8 +184,8 @@
</div>
</form>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
var what = "";
</script>
@@ -193,7 +193,7 @@
<script type="text/javascript" src="v1/js/ff/common/autocomplete.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/lib/bootstrap-tagsinput.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/transactions/mass/edit-bulk.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
-{% block styles %}
+@endsection
+@section('styles')
<link href="v1/css/bootstrap-tagsinput.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet" media="all" nonce="{{ $JS_NONCE }}">
-{% endblock %}
+@endsection
diff --git a/resources/views/transactions/convert.twig b/resources/views/transactions/convert.twig
index 8ce908be4d..cc634f48de 100644
--- a/resources/views/transactions/convert.twig
+++ b/resources/views/transactions/convert.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, group, groupTitle) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('transactions.convert.index.post', [destinationType.type|lower, group.id]) }}"
accept-charset="UTF-8"
class="form-horizontal"
@@ -72,7 +72,7 @@
{% if sourceType.type == 'Withdrawal' and destinationType.type == 'Deposit' %}
{# NEW DESTINATION = Asset, SOURCE MUST BE [Revenue, Cash, Loan, Debt, Mortgage] #}
{% if transaction.source_type == 'Asset account' %}
- {{ Html.select('source_id['~transaction.transaction_journal_id~']', validDepositSources).class('form-control') }}
+ {{ Html::select('source_id['~transaction.transaction_journal_id~']', validDepositSources).class('form-control') }}
{% endif %}
{# NEW DESTINATION = [Loan, Debt, Mortgage], SOURCE MUST BE [Revenue] #}
@@ -117,12 +117,12 @@
{% if sourceType.type == 'Deposit' and destinationType.type == 'Transfer' %}
{# if new destination is asset, then asset #}
{% if transaction.destination_type == 'Asset account' %}
- {{ Html.select('source_id['~transaction.transaction_journal_id~']', assets).class('form-control') }}
+ {{ Html::select('source_id['~transaction.transaction_journal_id~']', assets).class('form-control') }}
{% endif %}
{% if transaction.destination_type == 'Loan' or
transaction.destination_type == 'Debt' or
transaction.destination_type == 'Mortgage' %}
- {{ Html.select('source_id['~transaction.transaction_journal_id~']', liabilities).class('form-control') }}
+ {{ Html::select('source_id['~transaction.transaction_journal_id~']', liabilities).class('form-control') }}
{% endif %}
{# if new destination liability, then liability. #}
@@ -145,7 +145,7 @@
{# NEW DESTINATION = Asset, SOURCE MUST BE [Revenue, Cash, Loan, Debt, Mortgage] #}
{% if
transaction.source_type == 'Asset account' %}
- {{ Html.select('source_id['~transaction.transaction_journal_id~']', validDepositSources).class('form-control') }}
+ {{ Html::select('source_id['~transaction.transaction_journal_id~']', validDepositSources).class('form-control') }}
{% endif %}
{# NEW DESTINATION = [Debt, Mortgage, Load], SOURCE MUST BE [Revenue] #}
{% if
@@ -184,12 +184,12 @@
transaction.source_type == 'Loan' or
transaction.source_type == 'Debt' or
transaction.source_type == 'Mortgage' %}
- {{ Html.select('destination_id['~transaction.transaction_journal_id~']', liabilities).class('form-control') }}
+ {{ Html::select('destination_id['~transaction.transaction_journal_id~']', liabilities).class('form-control') }}
{% endif %}
{# if the source is an asset, destination can only be an asset. #}
{% if transaction.source_type == 'Asset account' %}
- {{ Html.select('destination_id['~transaction.transaction_journal_id~']', assets).class('form-control') }}
+ {{ Html::select('destination_id['~transaction.transaction_journal_id~']', assets).class('form-control') }}
{% endif %}
{% endif %}
@@ -198,7 +198,7 @@
{# if new source is Asset, destination must be [Expense, Loan, Debt or Mortgage] #}
{% if transaction.destination_type == 'Asset account' %}
- {{ Html.select('destination_id['~transaction.transaction_journal_id~']', validWithdrawalDests).class('form-control') }}
+ {{ Html::select('destination_id['~transaction.transaction_journal_id~']', validWithdrawalDests).class('form-control') }}
{% endif %}
{% if transaction.destination_type == 'Loan' or
transaction.destination_type == 'Debt' or
@@ -231,7 +231,7 @@
{% if sourceType.type == 'Transfer' and destinationType.type == 'Withdrawal' %}
{% if transaction.source_type == 'Asset account' %}
- {{ Html.select('destination_id['~transaction.transaction_journal_id~']', validWithdrawalDests).class('form-control') }}
+ {{ Html::select('destination_id['~transaction.transaction_journal_id~']', validWithdrawalDests).class('form-control') }}
{% endif %}
{% if transaction.source_type == 'Loan' or
transaction.source_type == 'Debt' or
@@ -291,10 +291,10 @@
</div>
</form>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" src="v1/js/lib/typeahead/typeahead.bundle.min.js?v={{ $FF_BUILD_TIME }}"
nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/transactions/convert.js?v={{ $FF_BUILD_TIME }}"
nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
diff --git a/resources/views/transactions/delete.twig b/resources/views/transactions/delete.twig
index f5b4ec294c..8c9dcf14b3 100644
--- a/resources/views/transactions/delete.twig
+++ b/resources/views/transactions/delete.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, group) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('transactions.destroy',group.id) }}" accept-charset="UTF-8" class="form-horizontal" id="destroy">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@@ -32,4 +32,4 @@
</div>
</form>
-{% endblock %}
+@endsection
diff --git a/resources/views/transactions/links/delete.twig b/resources/views/transactions/links/delete.twig
index 020c41005f..d97b9d4caa 100644
--- a/resources/views/transactions/links/delete.twig
+++ b/resources/views/transactions/links/delete.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, link) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('transactions.link.destroy', [link.id]) }}" accept-charset="UTF-8" class="form-horizontal" id="destroy">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@@ -30,4 +30,4 @@
</div>
</div>
</form>
-{% endblock %}
+@endsection
diff --git a/resources/views/transactions/mass/delete.twig b/resources/views/transactions/mass/delete.twig
index 0c0c5da6d8..34522ee04d 100644
--- a/resources/views/transactions/mass/delete.twig
+++ b/resources/views/transactions/mass/delete.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, journals) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('transactions.mass.destroy') }}" accept-charset="UTF-8" class="form-horizontal" id="destroy">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@@ -106,4 +106,4 @@
</div>
</div>
</form>
-{% endblock %}
+@endsection
diff --git a/resources/views/transactions/mass/edit.twig b/resources/views/transactions/mass/edit.twig
index c4a47b73c4..8dce317ce7 100644
--- a/resources/views/transactions/mass/edit.twig
+++ b/resources/views/transactions/mass/edit.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, journals) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('transactions.mass.update') }}" accept-charset="UTF-8" class="form-horizontal" id="destroy">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@@ -179,12 +179,12 @@
</div>
</div>
</form>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
var what = "";
</script>
<script type="text/javascript" src="v1/js/lib/typeahead/typeahead.bundle.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/common/autocomplete.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/transactions/mass/edit.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
diff --git a/resources/views/transactions/old-create.twig b/resources/views/transactions/old-create.twig
index 1b78c6d43a..aff03d1c9e 100644
--- a/resources/views/transactions/old-create.twig
+++ b/resources/views/transactions/old-create.twig
@@ -1,13 +1,13 @@
{% set VUE_SCRIPT_NAME = 'create_transaction' %}
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, objectType) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<div id="create_transaction"></div>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
var allowedOpposingTypes = {{ allowedOpposingTypes|json_encode|raw }};
var accountToTypes = {{ accountToTypes|json_encode|raw }};
@@ -17,4 +17,4 @@
window.sourceId = {{ sourceId }};
window.destinationId = {{ destinationId }};
</script>
-{% endblock %}
+@endsection
diff --git a/resources/views/transactions/old-edit.twig b/resources/views/transactions/old-edit.twig
index cd181f041b..7f98d595e4 100644
--- a/resources/views/transactions/old-edit.twig
+++ b/resources/views/transactions/old-edit.twig
@@ -1,12 +1,12 @@
{% set VUE_SCRIPT_NAME = 'edit_transaction' %}
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, transactionGroup) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<div id="edit_transaction"></div>
-{% endblock %}
+@endsection
{% block definitions %}
@@ -19,10 +19,10 @@
var cashAccountId = {{ cash.id }};
var previousUrl = '{{ previousUrl }}';
</script>
-{% endblock %}
+@endsection
-{% block scripts %}
+@section('scripts')
-{% endblock %}
-{% block styles %}
-{% endblock %}
+@endsection
+@section('styles')
+@endsection
diff --git a/resources/views/transactions/old-index.twig b/resources/views/transactions/old-index.twig
index a9513143ec..f65a910884 100644
--- a/resources/views/transactions/old-index.twig
+++ b/resources/views/transactions/old-index.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, objectType, start, end) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
{# upper show-all instruction #}
{% if periods|length > 0 %}
@@ -118,8 +118,8 @@
</div>
{% endif %}
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
{# required for groups.twig #}
<script type="text/javascript" src="v1/js/ff/list/groups.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
@@ -137,4 +137,4 @@
<script type="text/javascript" src="v1/js/ff/charts.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/transactions/index.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
diff --git a/resources/views/transactions/show.twig b/resources/views/transactions/show.twig
index df1c1b87c9..e00dbfeba9 100644
--- a/resources/views/transactions/show.twig
+++ b/resources/views/transactions/show.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, transactionGroup) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<div class="row">
<div class="col-lg-6">
<div class="card">
@@ -550,8 +550,8 @@
{# modal for linking journals. Will be filled by AJAX #}
<div class="modal fade" tabindex="-1" role="dialog" id="linkJournalModal">
</div>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
var modalDialogURL = '{{ route('transactions.link.modal', ['%JOURNAL%']) }}';
var acURL = '{{ route('api.v1.autocomplete.transactions-with-id') }}';
@@ -599,5 +599,5 @@
nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/transactions/show.js?v={{ $FF_BUILD_TIME }}"
nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
+@endsection
diff --git a/resources/views/transactions/single/delete.twig b/resources/views/transactions/single/delete.twig
index 42bb32b4c7..5a9d2da68f 100644
--- a/resources/views/transactions/single/delete.twig
+++ b/resources/views/transactions/single/delete.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, journal) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<form method="POST" action="{{ route('transactions.destroy',journal.id) }}" accept-charset="UTF-8" class="form-horizontal" id="destroy">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
@@ -40,4 +40,4 @@
</div>
</form>
-{% endblock %}
+@endsection
diff --git a/resources/views/webhooks/create.twig b/resources/views/webhooks/create.twig
index 82dfe395d2..f2c2046706 100644
--- a/resources/views/webhooks/create.twig
+++ b/resources/views/webhooks/create.twig
@@ -1,14 +1,14 @@
{% set VUE_SCRIPT_NAME = 'webhooks/create' %}
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<div id="webhooks_create"></div>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
var previousUrl = '{{ previousUrl }}';
</script>
-{% endblock %}
+@endsection
diff --git a/resources/views/webhooks/delete.twig b/resources/views/webhooks/delete.twig
index d6602fa6f6..3fcc646196 100644
--- a/resources/views/webhooks/delete.twig
+++ b/resources/views/webhooks/delete.twig
@@ -1,10 +1,10 @@
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, webhook) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<div class="row">
<div class="col-lg-6 col-lg-offset-3 col-md-12 col-sm-12">
<div class="box box-danger">
@@ -28,8 +28,8 @@
</div>
</div>
</div>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script nonce="{{ $JS_NONCE }}">
$(function () {
"use strict";
@@ -41,4 +41,4 @@
});
});
</script>
-{% endblock %}
+@endsection
diff --git a/resources/views/webhooks/edit.twig b/resources/views/webhooks/edit.twig
index 39d83e0366..38ad4c3739 100644
--- a/resources/views/webhooks/edit.twig
+++ b/resources/views/webhooks/edit.twig
@@ -1,14 +1,14 @@
{% set VUE_SCRIPT_NAME = 'webhooks/edit' %}
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, webhook) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<div id="webhooks_edit"></div>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
var previousUrl = '{{ route('webhooks.index') }}';
</script>
-{% endblock %}
+@endsection
diff --git a/resources/views/webhooks/show.twig b/resources/views/webhooks/show.twig
index bfeba7e148..c40f629c1e 100644
--- a/resources/views/webhooks/show.twig
+++ b/resources/views/webhooks/show.twig
@@ -1,14 +1,14 @@
{% set VUE_SCRIPT_NAME = 'webhooks/show' %}
-{% extends './layout/default' %}
+@extends('layout.v3.session')
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, webhook) }}
-{% endblock %}
+@endsection
-{% block content %}
+@section('content')
<div id="webhooks_show"></div>
-{% endblock %}
-{% block scripts %}
+@endsection
+@section('scripts')
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
var previousUrl = '{{ previousUrl }}';
</script>
-{% endblock %}
+@endsection