of <%=entityInstancePlural %> ;trackBy: trackId">
', <%= entityInstance %>.id ]">{{<%=entityInstance %>.id}} |
<%_ for (idx in fields) {
const fieldName = fields[idx].fieldName;
const fieldNameCapitalized = fields[idx].fieldNameCapitalized;
const fieldType = fields[idx].fieldType;
const fieldTypeBlobContent = fields[idx].fieldTypeBlobContent; _%>
<%_ if ((fieldType == 'byte[]' || fieldType === 'ByteBuffer') && fieldTypeBlobContent == 'image') { _%>
.<%= fieldName %>" (click)="openFile(<%= entityInstance %>.<%= fieldName %>ContentType, <%= entityInstance %>.<%= fieldName %>)">
.<%=fieldName%>ContentType + ';base64,' + <%=entityInstance %>.<%=fieldName%>" style="max-height: 30px;" alt="<%=entityInstance %> image"/>
.<%= fieldName %>">{{<%= entityInstance %>.<%= fieldName %>ContentType}}, {{byteSize(<%= entityInstance %>.<%= fieldName %>)}}
|
<%_ } else if ((fieldType === 'byte[]' || fieldType === 'ByteBuffer') && fieldTypeBlobContent == 'any') { _%>
.<%= fieldName %>" (click)="openFile(<%= entityInstance %>.<%= fieldName %>ContentType, <%= entityInstance %>.<%= fieldName %>)" jhiTranslate="entity.action.open">open
.<%= fieldName %>">{{<%= entityInstance %>.<%= fieldName %>ContentType}}, {{byteSize(<%= entityInstance %>.<%= fieldName %>)}}
|
<%_ } else if (fields[idx].fieldIsEnum) { _%>
{{<%= entityInstance %>.<%= fieldName %>}} |
<%_ } else if (fieldType == 'ZonedDateTime') { _%>
{{<%=entityInstance %>.<%=fieldName%> | date:'medium'}} |
<%_ } else if (fieldType == 'LocalDate') { _%>
{{<%=entityInstance %>.<%=fieldName%> | date:'mediumDate'}} |
<%_ } else { _%>
{{<%=entityInstance %>.<%=fieldName%>}} |
<%_ } _%>
<%_ } _%>
<%_ for (idx in relationships) {
const relationshipType = relationships[idx].relationshipType;
const ownerSide = relationships[idx].ownerSide;
const relationshipFieldName = relationships[idx].relationshipFieldName;
const relationshipFieldNamePlural = relationships[idx].relationshipFieldNamePlural;
const otherEntityName = relationships[idx].otherEntityName;
const otherEntityStateName = relationships[idx].otherEntityStateName;
const otherEntityField = relationships[idx].otherEntityField;
const otherEntityFieldCapitalized = relationships[idx].otherEntityFieldCapitalized; _%>
<%_ if (relationshipType == 'many-to-one'
|| (relationshipType == 'one-to-one' && ownerSide == true)
|| (relationshipType == 'many-to-many' && ownerSide == true && pagination == 'no')) { _%>
<%_ if (otherEntityName == 'user') { _%>
<%_ if (relationshipType == 'many-to-many') { _%>
of <%= entityInstance %>.<%= relationshipFieldNamePlural %>; let last = last">
{{<%= relationshipFieldName %>.<%= otherEntityField %>}}{{last ? '' : ', '}}
<%_ } else { _%>
<%_ if (dto == 'no') { _%>
{{<%= entityInstance + "." + relationshipFieldName + "?." + otherEntityField %>}}
<%_ } else { _%>
{{<%= entityInstance + "." + relationshipFieldName + otherEntityFieldCapitalized %>}}
<%_ } _%>
<%_ } _%>
<%_ } else { _%>
<%_ if (relationshipType == 'many-to-many') { _%>
of <%= entityInstance %>.<%= relationshipFieldNamePlural %>; let last = last">
', <%= relationshipFieldName %>?.id ]">{{<%= relationshipFieldName %>.<%= otherEntityField %>}}{{last ? '' : ', '}}
<%_ } else { _%>
<%_ if (dto == 'no') { _%>
<%_ } else { _%>
<%_ } _%>
<%_ } _%>
<%_ } _%>
|
<%_ } _%>
<%_ } _%>
|