Sha256: 09e841712813e30ef8145b931f70310cb17a353284204bff52fc7d1c10cd9000

Contents?: true

Size: 522 Bytes

Versions: 1

Compression:

Stored size: 522 Bytes

Contents

angular.module("hyperadmin")
  .directive "resourceTable", ->
    template: """
<table class="table table-striped">
  <thead>
    <tr>
      <th ng-repeat="attribute in resourceClass.attributes">
        {{ attribute.human }}
      </th>
      <th>Actions</th>
    </tr>
  </thead>
  <tbody>
    <tr table-row attributes="resourceClass.attributes"
      ng-repeat="resource in resources" resource="resource">
    </tr>
  </tbody>
</table>
    """
    scope:
      resourceClass: "="
      resources: "="
    restrict: "E"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hyper_admin-0.3.0 app/assets/javascripts/hyper_admin/angularjs/directives/table/resource_table.js.coffee