@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
40 lines (36 loc) • 1.34 kB
HTML
<div>
<div class="d-flex justify-content-center"><h5 class="mt-4 mb-2"><%-SchemaCamelName%></h5></div>
<div *ngIf="list.length === 0" class="no-records">
<span *ngIf="loaded">No records found.</span>
<span *ngIf="!loaded">Loading...</span>
</div>
<div class="container search">
<% let showExport = true; %>
<%_ let disableRefreshIcon = true; let disableSortSelection = true; let disableViewSwitch = true;
let pagiObj = {disableRefreshIcon, disableSortSelection, disableViewSwitch, showExport};
%><%-include(`/schema-list.pagination.html`, pagiObj)%>
</div>
<%_
let {
cardHasLink,
canUpdate, canDelete, canArchive, canCheck,
includeSubDetail,
cardHasSelect,
} = listViewObj;
%>
<div *ngIf="list.length > 0"><% for (let view of widgetDef.views) {%>
<ng-template [ngIf]="isShowListView('<%-view%>')">
<app-<%-schemaName%>-list-view-widget-<%-view%>
<%- include(`/widgets/list/view-component.inputs.html`)%>
>
</app-<%-schemaName%>-list-view-widget-<%-view%>>
</ng-template>
<%}%>
</div>
<div class="container">
<% showExport = false; %>
<%_ disableRefreshIcon = true; disableSortSelection = true; disableViewSwitch = true;
pagiObj = {disableRefreshIcon, disableSortSelection, disableViewSwitch, showExport};
%><%-include(`/schema-list.pagination.html`, pagiObj)%>
</div>
</div>