.row
  .col-md-12(collapse="notFilter")
    include {{schema}}_filter
  .col-md-12
    button.btn.btn-default.btn-block.btn-xs(ng-click="notFilter = !notFilter")=__('FILTER')
.row(style="margin-top: 5px;")
  .col-md-12
    .row
      .col-md-3(ng-repeat="{{ schema | lower }} in dataList.data")
        .thumbnail
          .caption
      {%- for fieldName, field in fields %}{%- if field.isList %}
            p {% if !field.ref || !field.refLabel %}{{ '{{' }} {{ schema | lower }}.{{ fieldName }} }}{% else %}{% if field.isArray != true %}{{ '{{' }}{{ schema | lower }}.{{ fieldName }}.{{ field.refLabel }} }}{% else %}
            span(ng-repeat="{{ field.ref | lower }} in {{ schema | lower }}.{{ fieldName }}"){{ ' {{' }} {{ field.ref | lower }}.{{ field.refLabel }} }}{% endif %}{% endif %} 
      {%- endif %}{%- endfor %}
            button.btn.btn-primary.btn-sm.icon.icon-edit(type='button', ng-click='select{{ schema | capitalize }}($index); share.window("createOrUpdate{{ schema | capitalize }}");')=__('Edit')
            | 
            button.btn.btn-danger.btn-sm.icon.icon-trash(type='button', ng-click='destroy{{ schema | capitalize }}ByIndex($index); query{{ schema | capitalize }}();')=__('Remove')
            | 
            button.btn.btn-info.btn-sm.icon.icon-plus(type='button', ng-click='select{{ schema | capitalize }}($index); share.window("show{{ schema | capitalize }}");')=__('Show')
.row
  .col-md-12.text-right
    p=__('Listing ') 
      | {{ ' {{' }} dataList.status.listing }} 
      =__('of ') 
      | {{ ' {{' }} dataList.status.filtered }} 
      =__('filtered on ') 
      | {{ ' {{' }} dataList.status.totality }}
      =__(' registers')
  .col-md-12
    button.btn.btn-default.btn-lg.btn-block(ng-click='queryMore{{ schema | capitalize }}(); count{{ schema | capitalize }}();')=__('MORE')