Sha256: 8bba035c3429654baf5c775a76412681b338c08d4c5a413a1d812c7702d7a97b

Contents?: true

Size: 1.09 KB

Versions: 23

Compression:

Stored size: 1.09 KB

Contents

<script type="text/ng-template" id="promethee/components/table/edit/move">
  <%= render 'promethee/edit/move.header', type: 'table' %>
      <div class="table-responsive" ng-controller="TableMoveController">
        <table class="table">
          <thead>
            <tr>
              <th ng-repeat="cellUid in component.attributes.structure.value[0]">
                {{getTableCell(cellUid).attributes.text.value}}
              </th>
            </tr>
          </thead>
          <tbody>
            <tr ng-repeat="row in component.attributes.structure.value" ng-if="$index > 0">
              <td ng-repeat="cellUid in row">
                {{getTableCell(cellUid).attributes.text.value}}
              </td>
            </tr>
          </tbody>
        </table>
      </div>
    </div>
  </div>
</script>

<script>
  promethee.controller('TableMoveController', ['$scope', 'uidService', function($scope, uidService) {
    $scope.getTableCell = function (uid) {
      return this.component.children.filter(function (childComponent) {
        return childComponent.id === uid;
      })[0];
    }
  }]);
</script>

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
promethee-4.1.13 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.1.12 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.1.11 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.1.10 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.1.9 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.1.8 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.1.7 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.1.6 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.1.5 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.1.4 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.1.3 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.1.2 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.1.1 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.1.0 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.0.8 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.0.7 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.0.6 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.0.5 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.0.4 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.0.3 app/views/promethee/components/table/_edit.move.html.erb