Sha256: 322e133fdb9d64ac76321ed55c8a921e7177f9086c7c82ed0307f48f358a6334
Contents?: true
Size: 1.88 KB
Versions: 42
Compression:
Stored size: 1.88 KB
Contents
<script type="text/ng-template" id="promethee/components/slider/edit/inspect"> <div ui-sortable="{handle: '.handle'}" ng-model="promethee.inspected.children"> <div class="panel panel-default" ng-repeat="component in promethee.inspected.children" > <div class="panel-body"> <div class="row handle"> <div class="col-xs-9"> <span class="label label-default">#{{$index + 1}}</span> <span class="label label-info">{{component.type}}</span> </div> <div class="col-xs-3"> <ng-include src="'promethee/move/component'"></ng-include> </div> </div> <div class="row"> <div class="col-xs-12"> <div class="form-group"> <label class="label-control">Text</label> <summernote config="summernoteConfig" ng-model="promethee.inspected.attributes.contents['content-' + component.id]"></summernote> </div> </div> </div> </div> </div> </div> <div class="pull-right btn-toolbar" ng-controller="SliderInspectorController"> <span ng-repeat="definition in itemDefinitions" class="btn btn-default" ng-click="addItem(definition)">Add {{definition.name}}</span> </div> </script> <script> promethee.controller('SliderInspectorController', ['$scope', 'identifier', function($scope, identifier) { var availableComponents = ['image', 'video']; $scope.itemDefinitions = $scope.promethee.definitions.filter(function(definition) { return availableComponents.includes(definition.data.type); }); var clone = function(object) { return JSON.parse(JSON.stringify(object)); }; $scope.addItem = function(definition) { var item = JSON.parse(JSON.stringify(definition.data)); item.id = identifier.generate(); $scope.promethee.inspected.children.push(item); } }]) </script>
Version data entries
42 entries across 42 versions & 1 rubygems