Merge pull request #117 from Adarnof/hrapplicationfix

Added error handling for missing corp models.
This commit is contained in:
Adarnof
2015-12-01 23:53:18 -05:00
3 changed files with 33 additions and 22 deletions

View File

@@ -8,7 +8,7 @@
<h1 class="page-header text-center">Corporation Stats</h1>
{% if perms.auth.member %}
<div class="col-lg-12 container" id="example">
{% if corp %}
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
@@ -63,7 +63,15 @@
</div>
</div>
</div>
{% else %}
<div class="container-fluid">
<div class="col-md-4 col-md-offset-4">
<div class="row">
<div class="alert alert-danger text-center" role="alert">No corporation model found. Contact your admin.</div>
</div>
</div>
</div>
{% endif %}
</div>
</div>
{% else %}