h3=__('{{ schema | capitalize }}')
  small {{ ' {{' }} {{ schema | lower }}._id }}
.table-responsive
  table.table.table-striped
  {%- for fieldName, field in fields %}
    tr
      td=__('{{ field.label || fieldName }}')
      td {% 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 %} 
  {%- endfor %}
.form-group
  button.btn.btn-primary(type='button', ng-click='share.window("createOrUpdate{{ schema | capitalize }}");')=__('Edit')
  | 
  button.btn.btn-danger(type='button', ng-click='{{ schema | lower }}.$delete(); clear{{ schema | capitalize }}(); query{{ schema | capitalize }}(); count{{ schema | capitalize }}(); share.window("list{{ schema | capitalize }}");')=__('Remove')
  | 
  button.btn.btn-default(type='button', ng-click='clear{{ schema | capitalize }}(); query{{ schema | capitalize }}(); share.window("list{{ schema | capitalize }}")')=__('List')