UNPKG

@hicoder/angular-cli

Version:

Angular UI componenets and service generator. It works with the mean-rest-express package to generate the end to end web application. The input to this generator is the Mongoose schema defined for the express application. mean-rest-express exposes the Res

36 lines (35 loc) 1.71 kB
<div class="detail" *ngIf="detail"> <div *ngIf="!options['disableActionButtons']"><%- include('../../../schema-detail.d.actions.html') %></div> <div class="card text-left transparent-border " [ngStyle]="style['card']"> <div class="grid-fields"> <div class="card-header grid-head" [ngStyle]="style['card-header']"><%_{ let view='detail'; let largePicture=true; let field = detailView[0]; let fn = field.fieldName; let ft = field.type; let fieldObj = {field, fn, ft, ref_link: true,};%> <div *ngIf="fieldHasValue(detail['<%-fn%>'])" class="grid-head-picture"><%- include(`/ui/${uiFramework}/${uiDesign}/schema-display.field-wrap.html`, fieldObj); %> </div><%_}%> <div class="ms-1"> <h2><%_{ let view='detail'; let largePicture=true; let field = detailView[1]; let fn = field.fieldName; let ft = field.type; let fieldObj = {field, fn, ft, ref_link: true,};%> <div class="me-1 ms-2 mt-3 d-inline-block" [ngStyle]="style['header-field']"> <%- include(`/ui/${uiFramework}/${uiDesign}/schema-display.field-wrap.html`, fieldObj); %> </div><%_}%> </h2> </div> </div> <div class="card-body" [ngStyle]="style['card-body']"><%_{ let view='detail'; let largePicture=true; let field = detailView[2]; let fn = field.fieldName; let ft = field.type; let fieldObj = {field, fn, ft, ref_link: true,};%> <div> <h4 class="info-description-text" [ngStyle]="style['body-field']"><%- include(`/ui/${uiFramework}/${uiDesign}/schema-display.field-wrap.html`, fieldObj); %> </h4> </div><%_ }%> </div> </div> </div> <%- include('../../../schema-detail.d.pipeline.html') %> <%- include('../../../schema-detail.d.ref.html') %> </div>