Sha256: 84f1a0428133f65cc0e8f92dbbf26e238107210d83156e5b909c800484fcf39d

Contents?: true

Size: 1.07 KB

Versions: 24

Compression:

Stored size: 1.07 KB

Contents

<script type="text/ng-template" id="promethee/components/slider/edit/move">
  <%= render 'promethee/edit/move.header', type: 'slider' %>
      <div class="header">Slider</div>
      <div class="row" ng-controller="SliderMoveController">
        <div class="col-md-2" ng-repeat-start="component in components">
          <ng-include src="'promethee/move/component'"></ng-include>
        </div>
        <div class="clearfix" ng-if="$index%6 === 5" ng-repeat-end></div>
      </div>
    </div>
  </div>
</script>

<script>
  promethee.controller('SliderMoveController', ['$scope', function($scope) {
    $scope.parent_id = $scope.component.id;
    $scope.parent_type = $scope.component.type;
    $scope.components = $scope.component.children;

    $scope.$watch('component.children.length', function() {
      var keys = $scope.component.children.map(function(component) {
        return 'content-' + component.id;
      });

      for(var key in $scope.component.attributes.contents) {
        if(!keys.includes(key)) delete $scope.component.attributes.contents[key];
      }
    });
  }]);
</script>

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
promethee-1.4.29 app/views/promethee/components/slider/_edit.move.html.erb
promethee-1.4.28 app/views/promethee/components/slider/_edit.move.html.erb
promethee-1.4.27 app/views/promethee/components/slider/_edit.move.html.erb
promethee-1.4.26 app/views/promethee/components/slider/_edit.move.html.erb
promethee-1.4.25 app/views/promethee/components/slider/_edit.move.html.erb
promethee-1.4.24 app/views/promethee/components/slider/_edit.move.html.erb
promethee-1.4.23 app/views/promethee/components/slider/_edit.move.html.erb
promethee-1.4.22 app/views/promethee/components/slider/_edit.move.html.erb
promethee-1.4.21 app/views/promethee/components/slider/_edit.move.html.erb
promethee-1.4.20 app/views/promethee/components/slider/_edit.move.html.erb
promethee-1.4.19 app/views/promethee/components/slider/_edit.move.html.erb
promethee-1.4.18 app/views/promethee/components/slider/_edit.move.html.erb
promethee-1.4.17 app/views/promethee/components/slider/_edit.move.html.erb
promethee-1.4.16 app/views/promethee/components/slider/_edit.move.html.erb
promethee-1.4.15 app/views/promethee/components/slider/_edit.move.html.erb
promethee-1.4.14 app/views/promethee/components/slider/_edit.move.html.erb
promethee-1.4.13 app/views/promethee/components/slider/_edit.move.html.erb
promethee-1.4.12 app/views/promethee/components/slider/_edit.move.html.erb
promethee-1.4.11 app/views/promethee/components/slider/_edit.move.html.erb
promethee-1.4.10 app/views/promethee/components/slider/_edit.move.html.erb