Sha256: aeef4c8f115eaf2b7787d2f3bbd431ced8cdf1af4a52904e16e9edf53f43b371

Contents?: true

Size: 1.03 KB

Versions: 20

Compression:

Stored size: 1.03 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" ng-init="parent_id = component.id; parent_type = component.type; components = component.children">
        <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) {
    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

20 entries across 20 versions & 1 rubygems

Version Path
promethee-1.3.25 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.3.24 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.3.23 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.3.22 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.3.21 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.3.20 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.3.19 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.3.18 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.3.17 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.3.16 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.3.15 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.3.13 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.3.12 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.3.11 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.3.10 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.3.9 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.3.7 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.3.6 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.3.5 app/views/promethee/components/collection/_edit.move.html.erb
promethee-1.3.4 app/views/promethee/components/collection/_edit.move.html.erb