Sha256: 8b19d3d70ed68f03e9ea9dcddfe72a261867ceadbb3aec17f557a066240d2e68
Contents?: true
Size: 1.17 KB
Versions: 18
Compression:
Stored size: 1.17 KB
Contents
<script type="text/ng-template" id="promethee/components/collection/edit/move"> <%= render 'promethee/edit/move.header', type: 'collection' %> <div class="header">Collection</div> <div class="row" ng-controller="CollectionMoveController"> <div class="col-md-{{size}}" ng-repeat-start="component in components"> <ng-include src="'promethee/move/component'"></ng-include> </div> <div class="clearfix" ng-if="$index%itemsPerLine === itemsPerLine - 1" ng-repeat-end></div> <pre class="hidden">{{component.attributes.search = concatenateChildrenSearch(component)}}</pre> </div> </div> </div> </script> <script> promethee.controller('CollectionMoveController', ['$scope', function($scope) { $scope.parent_id = $scope.component.id; $scope.parent_type = $scope.component.type; $scope.components = $scope.component.children; Object.defineProperties($scope, { itemsPerLine: { get: function() { return $scope.component.attributes.items_per_line; } }, size: { get: function() { return Math.floor(12/$scope.itemsPerLine); } } }); }]); </script>
Version data entries
18 entries across 18 versions & 1 rubygems