v8: Add no relations message (#4431)
This commit is contained in:
committed by
Sebastiaan Janssen
parent
0d507612cc
commit
822d6cb4c0
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user