Code to catch empty lists and nudge user in the right direction.

This commit is contained in:
James Cole
2017-02-23 07:24:05 +01:00
parent b3df1f3d26
commit 563c668e3f
11 changed files with 309 additions and 228 deletions

View File

@@ -2,19 +2,19 @@
<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>
<h3 class="box-title">{{ ('no_'~type~'_title_'~what)|_ }}</h3>
</div>
<div class="box-body table-responsive">
<p>
{{ ('empty_accounts_intro_'~what)|_ }}
{{ ('no_'~type~'_intro_'~what)|_ }}
</p>
<p>
{{ ('empty_accounts_imperative_'~what)|_ }}
{{ ('no_'~type~'_imperative_'~what)|_ }}
</p>
<p style="text-align: center;">
<a class="btn btn-lg btn-success" href="{{ route('accounts.create', [what]) }}">{{ ('empty_accounts_create_'~what)|_ }}</a>
<a class="btn btn-lg btn-success" href="{{ route }}">{{ ('no_'~type~'_create_'~what)|_ }}</a>
</p>
</div>