Sha256: 615a326878e9cb7b019dbce490dbaa2b475c88d9bb07a4c829afcc92a94a1831

Contents?: true

Size: 1.08 KB

Versions: 38

Compression:

Stored size: 1.08 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>
      </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.value;
        }
      },
      size: {
        get: function() {
          return Math.floor(12/$scope.itemsPerLine);
        }
      }
    });
  }]);
</script>

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
promethee-4.1.28 app/views/promethee/components/collection/_edit.move.html.erb
promethee-4.1.27 app/views/promethee/components/collection/_edit.move.html.erb
promethee-4.1.26 app/views/promethee/components/collection/_edit.move.html.erb
promethee-4.1.25 app/views/promethee/components/collection/_edit.move.html.erb
promethee-4.1.24 app/views/promethee/components/collection/_edit.move.html.erb
promethee-4.1.23 app/views/promethee/components/collection/_edit.move.html.erb
promethee-4.1.22 app/views/promethee/components/collection/_edit.move.html.erb
promethee-4.1.21 app/views/promethee/components/collection/_edit.move.html.erb
promethee-4.1.20 app/views/promethee/components/collection/_edit.move.html.erb
promethee-4.1.19 app/views/promethee/components/collection/_edit.move.html.erb
promethee-4.1.18 app/views/promethee/components/collection/_edit.move.html.erb
promethee-4.1.17 app/views/promethee/components/collection/_edit.move.html.erb
promethee-4.1.16 app/views/promethee/components/collection/_edit.move.html.erb
promethee-4.1.15 app/views/promethee/components/collection/_edit.move.html.erb
promethee-4.1.14 app/views/promethee/components/collection/_edit.move.html.erb
promethee-4.1.13 app/views/promethee/components/collection/_edit.move.html.erb
promethee-4.1.12 app/views/promethee/components/collection/_edit.move.html.erb
promethee-4.1.11 app/views/promethee/components/collection/_edit.move.html.erb
promethee-4.1.10 app/views/promethee/components/collection/_edit.move.html.erb
promethee-4.1.9 app/views/promethee/components/collection/_edit.move.html.erb