Sha256: 83a8e9d3c4e8f5509adfac94505f017c9696834f4f8df019023aa8f13d63b300

Contents?: true

Size: 1.16 KB

Versions: 15

Compression:

Stored size: 1.16 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]">
                <div ng-bind-html="getTableCell(cellUid).attributes.text.value | htmlSafe"></div>
              </th>
            </tr>
          </thead>
          <tbody>
            <tr ng-repeat="row in component.attributes.structure.value" ng-if="$index > 0">
              <td ng-repeat="cellUid in row">
                <div ng-bind-html="getTableCell(cellUid).attributes.text.value | htmlSafe"></div>
              </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

15 entries across 15 versions & 1 rubygems

Version Path
promethee-4.1.28 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.1.27 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.1.26 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.1.25 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.1.24 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.1.23 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.1.22 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.1.21 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.1.20 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.1.19 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.1.18 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.1.17 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.1.16 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.1.15 app/views/promethee/components/table/_edit.move.html.erb
promethee-4.1.14 app/views/promethee/components/table/_edit.move.html.erb