Sha256: 0e4c5adaf4599d6fd736937c0bddfaf15bd743a25de9059cea03179cded97855

Contents?: true

Size: 1.47 KB

Versions: 1

Compression:

Stored size: 1.47 KB

Contents

<div class="promethee-edit__move" ng-show="promethee.mode == 'move'">
  <div class="promethee-edit__move__columns row">
    <% 12.times do %>
      <div class="col col-md-1"><div class="color"></div></div>
    <% end %>
  </div>
  <div class="promethee-edit__move__page">
    <ng-include src="'promethee/move/components'"></ng-include>
  </div>
</div>

<script type="text/ng-template" id="promethee/move/component">
  <div class="promethee-edit__move__component">
    <ng-include src="'promethee/components/' + component.type + '/edit/move'"></ng-include>
  </div>
</script>

<script type="text/ng-template" id="promethee/move/components">
  <div ng-init="type = component.type; components = component.children">
    <div 
      droppable
      class=" promethee-edit__move__droppable 
              promethee-edit__move__droppable--{{type}} 
              promethee-edit__move__droppable--{{type}}--first"
      data-index="0"
      >
    </div>
    <div
      draggable
      ng-repeat="component in components"
      class=" promethee-edit__move__draggable
              promethee-edit__move__draggable--{{type}}"
      data-index="{{$index}}"
      data-type="{{component.type}}"
      >
      <ng-include src="'promethee/move/component'"></ng-include>
      <div
        droppable
        class=" promethee-edit__move__droppable 
                promethee-edit__move__droppable--{{type}}"
        data-index="{{$index+1}}"
        data-type="{{type}}"
        >
      </div>
    </div>
  </div>
</script>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
promethee-1.2.2 app/views/promethee/edit/_move.html.erb