@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
38 lines (36 loc) • 1.88 kB
HTML
<div class="detail" *ngIf="detail">
<div *ngIf="!options['disableActionButtons']"><%- include('../../../schema-detail.d.actions.html') %></div>
<div class="card transparent-border"><%
{ let view = 'detail'; let largePicture = true;
field = detailView[0]; let fn = field.fieldName; let ft = field.type;
let fieldObj = {field, fn, ft, ref_link: true,};%>
<div class="post-head-picture" *ngIf="fieldHasValue(detail['<%-fn%>'])">
<%- include(`/ui/${uiFramework}/${uiDesign}/schema-display.field-wrap.html`, fieldObj); %>
</div><%
}%>
<div class="card-body"><%
{ let view = 'detail'; field = detailView[1]; let fn = field.fieldName; let ft = field.type;
let fieldObj = {field, fn, ft, ref_link: true,};%>
<h4 class="card-title"><%- include(`/ui/${uiFramework}/${uiDesign}/schema-display.field-wrap.html`, fieldObj); %></h4><%
}%>
<h6 class="card-subtitle mb-2 text-muted"><%
{ let view = 'detail'; field = detailView[2]; let fn = field.fieldName; let ft = field.type;
let fieldObj = {field, fn, ft, ref_link: true,};%>
<%- include(`/ui/${uiFramework}/${uiDesign}/schema-display.field-wrap.html`, fieldObj); %> <%
}%><%
{ let view = 'detail'; field = detailView[3]; let fn = field.fieldName; let ft = field.type;
let fieldObj = {field, fn, ft, ref_link: true,};%>
<%- include(`/ui/${uiFramework}/${uiDesign}/schema-display.field-wrap.html`, fieldObj); %><%
}%>
</h6>
<div class="card-text"><%
{ let view = 'detail'; field = detailView[4]; let fn = field.fieldName; let ft = field.type;
let fieldObj = {field, fn, ft, ref_link: true,};%>
<%- include(`/ui/${uiFramework}/${uiDesign}/schema-display.field-wrap.html`, fieldObj); %><%
}%>
</div>
</div>
</div>
<%- include('../../../schema-detail.d.pipeline.html') %>
<%- include('../../../schema-detail.d.ref.html') %>
</div>