v8: Add no relations message (#4431)

This commit is contained in:
Bjarne Fyrstenborg
2019-02-14 16:33:09 +01:00
committed by Sebastiaan Janssen
parent 0d507612cc
commit 822d6cb4c0
4 changed files with 37 additions and 3 deletions

View File

@@ -1,15 +1,20 @@
<umb-box>
<umb-box-content>
<umb-box-content class="block-form">
<umb-empty-state size="small" ng-if="model.relationType.relations.length === 0">
<localize key="relationType_noRelations">No relations for this relation type.</localize>
</umb-empty-state>
<!-- Relations -->
<umb-control-group label="@relationType_relations" ng-if="model.relationType.relations.length > 0">
<div>
<table class="table">
<thead>
<tr>
<th><localize key="relationType_parent">Parent</localize></th>
<th><localize key="relationType_child">Child</localize></th>
<th><localize key="relationType_created">Created</localize></th>
<th><localize key="relationType_comment">Comment</localize></th>
</thead>
</tr>
<tr ng-repeat="relation in model.relationType.relations">
<td>{{relation.parentName}}</td>
<td>{{relation.childName}}</td>