mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-03 20:14:31 +00:00
First code for #588
This commit is contained in:
@@ -5,32 +5,38 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% if accounts.count > 0 %}
|
||||
<div class="row">
|
||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
||||
<div class="box" id="account-index-{{ what }}">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{ subTitle }}</h3>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
||||
<div class="box" id="account-index-{{ what }}">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{ subTitle }}</h3>
|
||||
|
||||
<!-- ACTIONS MENU -->
|
||||
<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">
|
||||
<li><a href="{{ route('accounts.create', what) }}"><i class="fa fa-plus fa-fw"></i> {{ ('make_new_' ~ what ~ '_account')|_ }}
|
||||
</a></li>
|
||||
</ul>
|
||||
<!-- ACTIONS MENU -->
|
||||
<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">
|
||||
<li><a href="{{ route('accounts.create', what) }}"><i
|
||||
class="fa fa-plus fa-fw"></i> {{ ('make_new_' ~ what ~ '_account')|_ }}
|
||||
</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="box-body table-responsive no-padding">
|
||||
{% include 'list.accounts' %}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="box-body table-responsive no-padding">
|
||||
{% include 'list.accounts' %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% else %}
|
||||
{% include 'empty.accounts' with {what: what} %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block styles %}
|
||||
|
||||
23
resources/views/empty/accounts.twig
Normal file
23
resources/views/empty/accounts.twig
Normal file
@@ -0,0 +1,23 @@
|
||||
<div class="row">
|
||||
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12 col-lg-offset-3 col-md-offset-3">
|
||||
<div class="box box-success">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{ ('empty_accounts_title_'~what)|_ }}</h3>
|
||||
</div>
|
||||
|
||||
<div class="box-body table-responsive">
|
||||
<p>
|
||||
{{ ('empty_accounts_intro_'~what)|_ }}
|
||||
</p>
|
||||
<p>
|
||||
{{ ('empty_accounts_imperative_'~what)|_ }}
|
||||
|
||||
</p>
|
||||
<p style="text-align: center;">
|
||||
<a class="btn btn-lg btn-success" href="{{ route('accounts.create', ['asset']) }}">{{ ('empty_accounts_create_'~what)|_ }}</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user