Files
firefly-iii/resources/views/v1/accounts/index.twig

83 lines
3.9 KiB
Twig
Raw Normal View History

2016-11-06 08:11:43 +01:00
{% extends "./layout/default" %}
2015-06-19 20:59:14 +02:00
{% block breadcrumbs %}
2019-06-22 10:25:34 +02:00
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, objectType) }}
2015-06-19 20:59:14 +02:00
{% endblock %}
2015-05-01 22:44:35 +02:00
{% block content %}
2017-02-22 21:40:27 +01:00
{% if accounts.count > 0 %}
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
2019-06-22 10:25:34 +02:00
<div class="box" id="account-index-{{ objectType }}">
2017-02-22 21:40:27 +01:00
<div class="box-header with-border">
2018-01-13 18:01:53 +01:00
<h3 class="box-title">
{{ subTitle }}
</h3>
2017-02-22 21:40:27 +01:00
<div class="box-tools pull-right">
<div class="btn-group">
<button class="btn btn-box-tool dropdown-toggle" data-toggle="dropdown"><i class="fa fa-ellipsis-v"></i></button>
<ul class="dropdown-menu" role="menu">
2019-06-22 10:25:34 +02:00
<li><a href="{{ route('accounts.create', objectType) }}"><i
class="fa fa-plus fa-fw"></i> {{ ('make_new_' ~ objectType ~ '_account')|_ }}
2017-02-22 21:40:27 +01:00
</a></li>
</ul>
</div>
2015-06-27 08:06:24 +02:00
</div>
2017-02-22 21:40:27 +01:00
2015-05-01 22:44:35 +02:00
</div>
2017-02-22 21:40:27 +01:00
<div class="box-body table-responsive no-padding">
2018-01-13 18:01:53 +01:00
<div style="padding:8px;">
2019-06-22 10:25:34 +02:00
<a href="{{ route('accounts.create', objectType) }}" class="btn btn-success"><i class="fa fa-plus fa-fw"></i> {{ ('make_new_' ~ objectType ~ '_account')|_ }}</a>
2018-01-13 18:01:53 +01:00
</div>
2017-02-22 21:40:27 +01:00
{% include 'list.accounts' %}
</div>
2018-01-13 18:01:53 +01:00
<div class="box-footer">
2019-10-19 19:17:14 +02:00
<p>
<a href="{{ route('accounts.create', objectType) }}" class="btn btn-success"><i
class="fa fa-plus fa-fw"></i> {{ ('make_new_' ~ objectType ~ '_account')|_ }}</a>
</p>
{% if inactiveCount > 0 %}
<p><small>
<em>
<a href="{{ route('accounts.inactive.index', objectType) }}" class="text-muted">
{{ trans('firefly.inactive_account_link', {count: inactiveCount}) }}
</a>
</em>
</small>
</p>
{% endif %}
{% if inactivePage %}
<p><small class="text-muted">
<em>
{{ 'all_accounts_inactive'|_ }}
<a href="{{ route('accounts.index', objectType) }}">
{{ trans('firefly.active_account_link', {count: inactiveCount}) }}
</a>
</em>
</small>
</p>
{% endif %}
2018-01-13 18:01:53 +01:00
</div>
2015-06-27 08:06:24 +02:00
</div>
2015-06-20 07:48:44 +02:00
</div>
2015-05-01 22:44:35 +02:00
</div>
{% endif %}
2018-01-03 19:17:30 +01:00
{% if accounts.count == 0 and page == 1 %}
2019-06-22 10:25:34 +02:00
{% include 'partials.empty' with {objectType: objectType, type: 'accounts',route: route('accounts.create', [objectType])} %}
2017-02-22 21:40:27 +01:00
{% endif %}
2015-05-01 22:44:35 +02:00
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="v1/css/bootstrap-sortable.css?v={{ FF_VERSION }}" type="text/css" media="all"/>
2015-05-01 22:44:35 +02:00
{% endblock %}
{% block scripts %}
2020-01-04 11:00:44 +01:00
<script type="text/javascript" nonce="{{ JS_NONCE }}">
2019-06-22 10:25:34 +02:00
var objectType = '{{ objectType|escape }}';
2015-06-27 08:06:24 +02:00
</script>
2020-01-04 11:16:14 +01:00
<script type="text/javascript" src="v1/js/lib/bootstrap-sortable.js?v={{ FF_VERSION }}" nonce="{{ JS_NONCE }}"></script>
2015-05-01 22:44:35 +02:00
{% endblock %}