client-side icons update

This commit is contained in:
perploug
2013-09-03 14:25:25 +02:00
parent f6f6da2f21
commit 6c4fba1a4e
3 changed files with 30 additions and 32 deletions

View File

@@ -9,9 +9,8 @@
function contentCreateController($scope, $routeParams, contentTypeResource, iconHelper) {
contentTypeResource.getAllowedTypes($scope.currentNode.id).then(function(data) {
$scope.allowedTypes = iconHelper.formatContentTypeThumbnails(data);
$scope.allowedTypes = iconHelper.formatContentTypeIcons(data);
});
}
angular.module('umbraco').controller("Umbraco.Editors.Content.CreateController", contentCreateController);

View File

@@ -1,37 +1,36 @@
<div class="umb-dialog" ng-controller="Umbraco.Editors.Content.CreateController">
<div class="umb-dialog-body" auto-scale="90">
<p class="umb-abstract">Create a page under {{currentNode.name}}</p>
<h5>Create a page under {{currentNode.name}}</h5>
<ul class="umb-actions">
<li class="action">
<ul class="umb-actions-child">
<ul class="umb-actions umb-actions-child">
<li ng-repeat="docType in allowedTypes">
<a href="#content/content/edit/{{currentNode.id}}?doctype={{docType.alias}}&create=true" ng-click="nav.hideNavigation()">
<i class="icon-large {{docType.cssClass}}" style="{{docType.style}}"></i>
<span class="menu-label">
{{docType.name}}
<small>
{{docType.description}}
</small>
</span>
</a>
</li>
<li ng-repeat="docType in allowedTypes">
<a href="#content/content/edit/{{currentNode.id}}?doctype={{docType.alias}}&create=true" ng-click="nav.hideNavigation()">
<i class="large {{docType.icon}}"></i>
<li class="add">
<a href="#settings/documenttype/create/{{currentNode.id}}?doctype={{docType.alias}}&create=true" ng-click="nav.hideNavigation()">
<i class="icon-large icon-plus"></i>
<span class="menu-label">
Create a new document type
<small>
Design and configure a new document type
</small>
</span>
</a>
</li>
</ul>
</li>
</ul>
<span class="menu-label">
{{docType.name}}
<small>
{{docType.description}}
</small>
</span>
</a>
</li>
<li class="add">
<a href="#settings/documenttype/create/{{currentNode.id}}?doctype={{docType.alias}}&create=true" ng-click="nav.hideNavigation()">
<i class="large icon-add"></i>
<span class="menu-label">
Create a new document type
<small>
Design and configure a new document type
</small>
</span>
</a>
</li>
</ul>
</div>
<div class="btn-toolbar umb-btn-toolbar">

View File

@@ -1,7 +1,7 @@
<div ng-controller="Umbraco.Editors.UrlListController">
<ul class="nav nav-stacked">
<li ng-repeat="value in renderModel">
<a href="{{value.url}}" target="{{value.urlTarget}}"><i class="icon-external-link"></i> {{value.url}}</a>
<a href="{{value.url}}" target="{{value.urlTarget}}"><i class="icon-out"></i> {{value.url}}</a>
</li>
</ul>
</div>