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

Version Path
promethee-1.6.14 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.6.13 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.6.12 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.6.11 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.6.10 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.6.8 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.6.7 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.6.6 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.6.5 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.6.4 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.6.3 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.6.2 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.6.1 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.6.0 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.5.4 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.5.3 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.5.2 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.5.0 app/views/promethee/components/collection/_edit.move.html.erb