Files
Umbraco-CMS/src/Umbraco.Web.UI.Client/src/views/dictionary/list.html

38 lines
1.5 KiB
HTML

<div ng-controller="Umbraco.Editors.Dictionary.ListController as vm">
<umb-load-indicator ng-if="vm.loading">
</umb-load-indicator>
<umb-editor-view ng-if="!vm.loading">
<umb-editor-header
name="vm.title"
hide-alias="true"
hide-description="true"
hide-icon="true"
name-locked="true">
</umb-editor-header>
<umb-editor-container>
<table class="table table-hover" ng-if="vm.items">
<thead>
<tr>
<th><localize key="general_name">Name</localize></th>
<th ng-repeat="column in vm.items[0].translations">{{column.displayName}}</th>
</th>
</thead>
<tbody>
<tr ng-repeat="item in vm.items track by item.id" ng-click="vm.clickItem(item.id)" style="cursor: pointer;">
<td>
<span class="bold" ng-style="item.style">{{item.name}}</span>
</td>
<td ng-repeat="column in item.translations">
<i ng-if="column.hasTranslation" class="icon-check color-green"></i>
<i ng-if="!column.hasTranslation" class="icon-alert color-red"></i>
</td>
</tr>
</tbody>
</table>
</umb-editor-container>
</umb-editor-view>
</div>