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>

View File

@@ -1532,4 +1532,31 @@ Mange hilsner fra Umbraco robotten
<key alias="itemCannotBeRestoredHelpText">Der er ikke nogen placering hvor dette element automatisk kan genoprettes. Du kan flytte elementet manuelt i træet nedenfor.</key>
<key alias="wasRestored">blev genoprettet under</key>
</area>
<area alias="relationType">
<key alias="direction">Retning</key>
<key alias="parentToChild">Forælder til barn</key>
<key alias="bidirectional">Tovejs</key>
<key alias="parent">Forælder</key>
<key alias="child">Barn</key>
<key alias="count">Antal</key>
<key alias="relations">Relationer</key>
<key alias="created">Oprettet</key>
<key alias="comment">Kommentar</key>
<key alias="name">Navn</key>
<key alias="noRelations">Der er ingen relationer for denne relationstype.</key>
<key alias="tabRelationType">Relationstype</key>
<key alias="tabRelations">Relationer</key>
</area>
<area alias="dashboardTabs">
<key alias="contentIntro">Kom godt i gang</key>
<key alias="contentRedirectManager">Redirects håndtering</key>
<key alias="mediaFolderBrowser">Indhold</key>
<key alias="settingsWelcome">Velkommen</key>
<key alias="settingsExamine">Examine Management</key>
<key alias="settingsPublishedStatus">Published Status</key>
<key alias="settingsModelsBuilder">Models Builder</key>
<key alias="settingsHealthCheck">Health Check</key>
<key alias="memberIntro">Kom godt i gang</key>
<key alias="formsInstall">Installer Umbraco Forms</key>
</area>
</language>

View File

@@ -2056,6 +2056,7 @@ To manage your website, simply open the Umbraco back office and start adding con
<key alias="created">Created</key>
<key alias="comment">Comment</key>
<key alias="name">Name</key>
<key alias="noRelations">No relations for this relation type.</key>
<key alias="tabRelationType">Relation Type</key>
<key alias="tabRelations">Relations</key>
</area>

View File

@@ -2069,6 +2069,7 @@ To manage your website, simply open the Umbraco back office and start adding con
<key alias="created">Created</key>
<key alias="comment">Comment</key>
<key alias="name">Name</key>
<key alias="noRelations">No relations for this relation type.</key>
<key alias="tabRelationType">Relation Type</key>
<key alias="tabRelations">Relations</key>
</area>