Advertisement
Guest User

Untitled

a guest
May 26th, 2015
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. <div id="caseDrawer" class="case-drawer">
  2. <div class="drawer-head">
  3. <ng-include src="'views/case-panel/partials/summary-params.html'"></ng-include>
  4. </div>
  5. <span id="cardCount" class="card-count" ng-init="initCounter();" ng-if="displayCardCount > 1" ng-click="toggleExpandCards();">{{displayCardCount}}<br>Items</span>
  6. <div class="card-container">
  7. <div class="card" pin-unpin ng-repeat="card in displayCards" ng-click="setActive($event, card);" ng-class="{'active': selectedCard == card};" ng-hide="card.removed">
  8. <div class="card-inner">
  9. <ng-include src="'views/card-templates/partials/card-header.html'"></ng-include>
  10. <h1>{{card.type}}</h1>
  11.  
  12. <div class="cardTemplate">
  13.  
  14. <script type="text/ng-template" id="cardTemplate">
  15. <b>{{ item.name }}</b><span ng-if="!item.complex">: {{item.value}}</span>
  16. <ul ng-if="item.complex">
  17. <li ng-repeat="item in item.value" ng-include="'cardTemplate'">
  18. </li>
  19. </ul>
  20. </script>
  21.  
  22. <div class="data-list" ng-repeat="dataElement in card">
  23. <div class="contextual-info" ng-if="$index == 0">{{dataElement.name}} : {{dataElement.value}}</div>
  24. <ul ng-if="$index != 0 && !dataElement.table">
  25. <li ng-repeat="item in dataElement.value track by $index" ng-include="'cardTemplate'" class="{{item.name | lowercase}}"></li>
  26. </ul>
  27.  
  28. <div ng-if="$index != 0 && dataElement.table">
  29. <table>
  30. <div ng-repeat="item in dataElement.value track by $index">
  31. {{item.value}}
  32. <tr ng-repeat="anotherItem in item.value">
  33. <h1>there should be values below this</h1><td>{{anotherItem.name}}</td>
  34. </tr>
  35.  
  36. </div>
  37. </table>
  38. </div>
  39.  
  40.  
  41.  
  42. </div>
  43. </div>
  44. </div>
  45. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement