2016-11-06 01:11:43 -06:00
|
|
|
{% extends "./layout/default" %}
|
2015-06-19 13:59:14 -05:00
|
|
|
|
|
|
|
{% block breadcrumbs %}
|
2015-06-27 01:06:24 -05:00
|
|
|
{{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName, what) }}
|
2015-06-19 13:59:14 -05:00
|
|
|
{% endblock %}
|
|
|
|
|
2015-05-01 15:44:35 -05:00
|
|
|
{% block content %}
|
2017-02-22 14:40:27 -06:00
|
|
|
{% 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>
|
|
|
|
|
|
|
|
<!-- 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>
|
2015-06-27 01:06:24 -05:00
|
|
|
</div>
|
2017-02-22 14:40:27 -06:00
|
|
|
|
|
|
|
|
2015-05-01 15:44:35 -05:00
|
|
|
</div>
|
|
|
|
|
2017-02-22 14:40:27 -06:00
|
|
|
<div class="box-body table-responsive no-padding">
|
|
|
|
{% include 'list.accounts' %}
|
|
|
|
</div>
|
2015-05-01 15:44:35 -05:00
|
|
|
|
2015-06-27 01:06:24 -05:00
|
|
|
</div>
|
2015-06-20 00:48:44 -05:00
|
|
|
</div>
|
2015-05-01 15:44:35 -05:00
|
|
|
</div>
|
2017-02-22 14:40:27 -06:00
|
|
|
{% else %}
|
2017-02-23 00:02:28 -06:00
|
|
|
{% include 'partials.empty' with {what: what, type: 'accounts',route: route('accounts.create', [what])} %}
|
2017-02-22 14:40:27 -06:00
|
|
|
{% endif %}
|
2015-05-01 15:44:35 -05:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block styles %}
|
2015-06-27 01:06:24 -05:00
|
|
|
<link rel="stylesheet" href="css/bootstrap-sortable.css" type="text/css" media="all"/>
|
2015-05-01 15:44:35 -05:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block scripts %}
|
2015-06-27 01:06:24 -05:00
|
|
|
<script type="text/javascript">
|
2016-11-25 09:54:13 -06:00
|
|
|
var what = '{{ what|escape }}';
|
2015-06-27 01:06:24 -05:00
|
|
|
</script>
|
2016-04-10 10:51:51 -05:00
|
|
|
<script type="text/javascript" src="js/lib/bootstrap-sortable.js"></script>
|
2015-05-01 15:44:35 -05:00
|
|
|
{% endblock %}
|