Sha256: db3f630c5699be903e55969a02a89f37ca5daa034ed8e555b179b1b1b63924c8

Contents?: true

Size: 1.07 KB

Versions: 154

Compression:

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

Version data entries

154 entries across 154 versions & 1 rubygems

Version Path
promethee-3.0.2 app/views/promethee/components/collection/_edit.move.html.erb
promethee-3.0.1 app/views/promethee/components/collection/_edit.move.html.erb
promethee-3.0.0 app/views/promethee/components/collection/_edit.move.html.erb
promethee-2.1.3 app/views/promethee/components/collection/_edit.move.html.erb
promethee-2.1.2 app/views/promethee/components/collection/_edit.move.html.erb
promethee-2.1.1 app/views/promethee/components/collection/_edit.move.html.erb
promethee-2.1.0 app/views/promethee/components/collection/_edit.move.html.erb
promethee-2.0.9 app/views/promethee/components/collection/_edit.move.html.erb
promethee-2.0.8 app/views/promethee/components/collection/_edit.move.html.erb
promethee-2.0.7 app/views/promethee/components/collection/_edit.move.html.erb
promethee-2.0.6 app/views/promethee/components/collection/_edit.move.html.erb
promethee-2.0.5 app/views/promethee/components/collection/_edit.move.html.erb
promethee-2.0.4 app/views/promethee/components/collection/_edit.move.html.erb
promethee-2.0.3 app/views/promethee/components/collection/_edit.move.html.erb
promethee-2.0.2 app/views/promethee/components/collection/_edit.move.html.erb
promethee-2.0.1 app/views/promethee/components/collection/_edit.move.html.erb
promethee-2.0.0 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.11.29 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.11.28 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.11.27 app/views/promethee/components/collection/_edit.move.html.erb