<%_ var keyPrefix = angularAppName + '.'+ entityTranslationKey + '.'; _%>

<%= entityClassPluralHumanized %>

<%_ if (searchEngine == 'elasticsearch') { _%>
<%_ } _%>

jh-sort="vm.predicate" ascending="vm.reverse" callback="vm.<%=pagination != 'infinite-scroll' ? 'transition' : 'reset'%>()"<% } %>> jh-sort-by="id"<% } %>>ID<% if (pagination != 'no') { %> <% } %> <%_ for (idx in fields) { _%> jh-sort-by="<%= fields[idx].fieldName%>"<% } %>><%= fields[idx].fieldNameHumanized %><% if (pagination != 'no') { %> <% } %> <%_ } _%> <%_ for (idx in relationships) { _%> <%_ if (relationships[idx].relationshipType == 'many-to-one' || (relationships[idx].relationshipType == 'one-to-one' && relationships[idx].ownerSide == true) || (relationships[idx].relationshipType == 'many-to-many' && relationships[idx].ownerSide == true && pagination == 'no')) { var fieldName = dto == 'no' ? "." + relationships[idx].otherEntityField : relationships[idx].otherEntityFieldCapitalized;_%> jh-sort-by="<%=relationships[idx].relationshipName + (fieldName)%>"<% } %>><%= relationships[idx].relationshipNameHumanized %><% if (pagination != 'no') { %> <% } %> <%_ } _%> <%_ } _%> infinite-scroll="vm.loadPage(vm.page + 1)" infinite-scroll-disabled="vm.page >= vm.links['last']"<% } %>> <%_ for (idx in fields) { var fieldName = fields[idx].fieldName; var fieldNameCapitalized = fields[idx].fieldNameCapitalized; var fieldType = fields[idx].fieldType; var fieldTypeBlobContent = fields[idx].fieldTypeBlobContent; _%> <%_ if ((fieldType == 'byte[]' || fieldType === 'ByteBuffer') && fieldTypeBlobContent == 'image') { _%> <%_ } else if ((fieldType === 'byte[]' || fieldType === 'ByteBuffer') && fieldTypeBlobContent == 'any') { _%> <%_ } else if (fields[idx].fieldIsEnum) { _%> <%_ } else if (fieldType == 'ZonedDateTime' || fieldType == 'Date') { _%> <%_ } else if (fieldType == 'LocalDate') { _%> <%_ } else { _%> <%_ } _%> <%_ } _%> <%_ for (idx in relationships) { var relationshipType = relationships[idx].relationshipType; var ownerSide = relationships[idx].ownerSide; var relationshipFieldName = relationships[idx].relationshipFieldName; var relationshipFieldNamePlural = relationships[idx].relationshipFieldNamePlural; var otherEntityName = relationships[idx].otherEntityName; var otherEntityStateName = relationships[idx].otherEntityStateName; var otherEntityField = relationships[idx].otherEntityField; var otherEntityFieldCapitalized = relationships[idx].otherEntityFieldCapitalized; _%> <%_ if (relationshipType == 'many-to-one' || (relationshipType == 'one-to-one' && ownerSide == true) || (relationshipType == 'many-to-many' && ownerSide == true && pagination == 'no')) { _%> <%_ } _%> <%_ } _%>
{{<%=entityInstance %>.id}} {{<%= entityInstance %>.<%= fieldName %>ContentType}}, {{vm.byteSize(<%= entityInstance %>.<%= fieldName %>)}} open {{<%= entityInstance %>.<%= fieldName %>ContentType}}, {{vm.byteSize(<%= entityInstance %>.<%= fieldName %>)}} {{<%= entityInstance %>.<%= fieldName %>}}{{<%=entityInstance %>.<%=fieldName%> | date:'medium'}}{{<%=entityInstance %>.<%=fieldName%> | date:'mediumDate'}}{{<%=entityInstance %>.<%=fieldName%>}} <%_ if (otherEntityName == 'user') { _%> <%_ if (relationshipType == 'many-to-many') { _%> {{<%= relationshipFieldName %>.<%= otherEntityField %>}}{{$last ? '' : ', '}} <%_ } else { _%> <%_ if (dto == 'no') { _%> {{<%= entityInstance + "." + relationshipFieldName + "." + otherEntityField %>}} <%_ } else { _%> {{<%= entityInstance + "." + relationshipFieldName + otherEntityFieldCapitalized %>}} <%_ } _%> <%_ } _%> <%_ } else { _%> <%_ if (relationshipType == 'many-to-many') { _%> {{<%= relationshipFieldName %>.<%= otherEntityField %>}}{{$last ? '' : ', '}} <%_ } else { _%> <%_ if (dto == 'no') { _%> })">{{<%= entityInstance + "." + relationshipFieldName + "." + otherEntityField %>}} <%_ } else { _%> })">{{<%= entityInstance + "." + relationshipFieldName + otherEntityFieldCapitalized %>}} <%_ } _%> <%_ } _%> <%_ } _%>
<%_ if (pagination == 'pager') { _%>
<%_ } else if (pagination == 'pagination') { _%>
<%_ } _%>