{{$actions := load_actions "index" }}
{{if $actions}}
  <div class="qor-page__header">
    {{$actions}}
  </div>
{{end}}

<div class="qor-page__body">
  {{render "shared/flashes"}}
  {{render "shared/errors"}}

  <div class="qor-table-container">
    {{render "index/table"}}
  </div>

  {{if has_create_permission .Resource}}
    <a class="mdl-button mdl-button--fab mdl-button--primary qor-button--new" href="{{new_resource_path .Resource}}" data-url="{{new_resource_path .Resource}}">
      <i class="material-icons">add</i>
    </a>
  {{end}}

  {{render "index/pagination"}}
</div>
