Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5c276faf78 | |||
| 95b17947b2 | |||
| f20635e10e | |||
| 8d4d64076a |
@@ -117,6 +117,10 @@ p {
|
|||||||
text-align: justify;
|
text-align: justify;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
li {
|
||||||
|
margin: 16px 0;
|
||||||
|
}
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
page-break-inside: avoid;
|
page-break-inside: avoid;
|
||||||
|
|||||||
@@ -78,23 +78,12 @@ export class ContractsCardComponent extends BaseContractsComponent{
|
|||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
template: `
|
template: `
|
||||||
<ngb-accordion #acc="ngbAccordion" activeIds="ngb-panel-1">
|
<div>
|
||||||
<ngb-panel>
|
|
||||||
<ng-template ngbPanelTitle>
|
|
||||||
<span i18n>Preview</span>
|
|
||||||
</ng-template>
|
|
||||||
<ng-template ngbPanelContent>
|
|
||||||
<iframe width="100%"
|
<iframe width="100%"
|
||||||
[src]="getPreview()"
|
[src]="getPreview()"
|
||||||
onload='javascript:(function(o){o.style.height=o.contentWindow.document.body.scrollHeight+"px";o.style.width=o.contentWindow.document.body.scrollWidth+"px";}(this));' style="height:200px;width:100%;border:none;overflow:hidden;"></iframe>
|
onload='javascript:(function(o){o.style.height=o.contentWindow.document.body.scrollHeight+"px";o.style.width=o.contentWindow.document.body.scrollWidth+"px";}(this));' style="height:200px;width:100%;border:none;overflow:hidden;">
|
||||||
</ng-template>
|
</iframe>
|
||||||
</ngb-panel>
|
</div>
|
||||||
<ngb-panel>
|
|
||||||
<ng-template ngbPanelTitle>
|
|
||||||
<span i18n>Signature</span>
|
|
||||||
</ng-template>
|
|
||||||
<ng-template ngbPanelContent>
|
|
||||||
<ng-container *ngIf="this.affixed"><ng-container i18n>This Contract has already been signed by</ng-container> {{ this.signatory }}</ng-container>
|
|
||||||
<div class="row" *ngIf="!this.affixed">
|
<div class="row" *ngIf="!this.affixed">
|
||||||
<signature-drawer class="col-7"
|
<signature-drawer class="col-7"
|
||||||
(signatureDrawn$)="postSignature($event)"></signature-drawer>
|
(signatureDrawn$)="postSignature($event)"></signature-drawer>
|
||||||
@@ -104,11 +93,7 @@ export class ContractsCardComponent extends BaseContractsComponent{
|
|||||||
<p>En vous maintenant et/ou en interagissant avec cette page, vous enfreignez l'article L.229 du code pénal de l'Etat de San Andreas pour <strong>usurpation d'identité</strong> et vous vous exposez ainsi à une amende de 20 000$ ainsi qu'à des poursuites civiles.</p>
|
<p>En vous maintenant et/ou en interagissant avec cette page, vous enfreignez l'article L.229 du code pénal de l'Etat de San Andreas pour <strong>usurpation d'identité</strong> et vous vous exposez ainsi à une amende de 20 000$ ainsi qu'à des poursuites civiles.</p>
|
||||||
<p>Le cabinet Cooper, Hillman & Toshi LLC</p>
|
<p>Le cabinet Cooper, Hillman & Toshi LLC</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>`
|
||||||
</ng-template>
|
|
||||||
</ngb-panel>
|
|
||||||
</ngb-accordion>
|
|
||||||
`
|
|
||||||
})
|
})
|
||||||
export class ContractsSignatureComponent implements OnInit {
|
export class ContractsSignatureComponent implements OnInit {
|
||||||
signature_id: string | null = null;
|
signature_id: string | null = null;
|
||||||
|
|||||||
@@ -21,7 +21,6 @@
|
|||||||
(filterChange)="onFilterChange($event)"
|
(filterChange)="onFilterChange($event)"
|
||||||
></crud-list-filter-list>
|
></crud-list-filter-list>
|
||||||
</div>
|
</div>
|
||||||
<span class="col col-form-label" i18n *ngIf="loading$ | async">Loading...</span>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="table-responsive-md">
|
<div class="table-responsive-md">
|
||||||
<table class="table table-striped table-hover">
|
<table class="table table-striped table-hover">
|
||||||
@@ -31,6 +30,9 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<tr *ngIf="loading$ | async">
|
||||||
|
<td class="text-center" [attr.colspan]="this.displayedColumns.length" i18n>Loading...</td>
|
||||||
|
</tr>
|
||||||
<tr *ngFor="let row of listData$ | async" (click)="onRowClick(row._id)" (auxclick)="onRowMiddleClick(row._id);" class="table-row-link">
|
<tr *ngFor="let row of listData$ | async" (click)="onRowClick(row._id)" (auxclick)="onRowMiddleClick(row._id);" class="table-row-link">
|
||||||
<td class="text-truncate" *ngFor="let col of this.displayedColumns" style="max-width: 150px;">
|
<td class="text-truncate" *ngFor="let col of this.displayedColumns" style="max-width: 150px;">
|
||||||
<ngb-highlight [result]="getColumnValue(row, col.path)" [term]="searchTerm"></ngb-highlight>
|
<ngb-highlight [result]="getColumnValue(row, col.path)" [term]="searchTerm"></ngb-highlight>
|
||||||
@@ -40,7 +42,7 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="d-flex justify-content-between p-2">
|
<div class="d-flex justify-content-between p-2" *ngIf="! (loading$ | async)" >
|
||||||
<ngb-pagination [collectionSize]="(total$ | async)!" [(page)]="page" [pageSize]="pageSize">
|
<ngb-pagination [collectionSize]="(total$ | async)!" [(page)]="page" [pageSize]="pageSize">
|
||||||
</ngb-pagination>
|
</ngb-pagination>
|
||||||
|
|
||||||
|
|||||||
@@ -68,7 +68,6 @@ export class ListComponent implements OnInit {
|
|||||||
if (parsedParams.hasOwnProperty('searchFilters')) {
|
if (parsedParams.hasOwnProperty('searchFilters')) {
|
||||||
parsedParams['searchFilters'] = JSON.parse(parsedParams['searchFilters']);
|
parsedParams['searchFilters'] = JSON.parse(parsedParams['searchFilters']);
|
||||||
}
|
}
|
||||||
this._total$.next(this.page * this.pageSize);
|
|
||||||
this._set(parsedParams)
|
this._set(parsedParams)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,12 +4,17 @@ import { FieldArrayType } from '@ngx-formly/core';
|
|||||||
@Component({
|
@Component({
|
||||||
selector: 'formly-array-type',
|
selector: 'formly-array-type',
|
||||||
template: `
|
template: `
|
||||||
<div>
|
<div class="mb-3">
|
||||||
|
<ngb-accordion #acc="ngbAccordion" activeIds="ngb-panel-0">
|
||||||
|
<ngb-panel id="ngb-panel-0">
|
||||||
|
<ng-template ngbPanelTitle>
|
||||||
<label *ngIf="props.label" class="form-label">{{ props.label }}</label>
|
<label *ngIf="props.label" class="form-label">{{ props.label }}</label>
|
||||||
<p *ngIf="props.description">{{ props.description }}</p>
|
<p *ngIf="props.description">{{ props.description }}</p>
|
||||||
<div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
|
<div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
|
||||||
<formly-validation-message [field]="field"></formly-validation-message>
|
<formly-validation-message [field]="field"></formly-validation-message>
|
||||||
</div>
|
</div>
|
||||||
|
</ng-template>
|
||||||
|
<ng-template ngbPanelContent>
|
||||||
<div class="row row-cols-1 row-cols-md-{{this.itemsPerRow}} g-1">
|
<div class="row row-cols-1 row-cols-md-{{this.itemsPerRow}} g-1">
|
||||||
<div *ngFor="let entry of field.fieldGroup; let i = index" class="col">
|
<div *ngFor="let entry of field.fieldGroup; let i = index" class="col">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
@@ -29,7 +34,10 @@ import { FieldArrayType } from '@ngx-formly/core';
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button *ngIf="! this.field.props.readonly" class="btn btn-success col-sm-12" type="button" (click)="add()"><i-bs name="plus-square-fill"></i-bs></button>
|
<button *ngIf="! this.field.props.readonly" class="btn btn-success col-sm-12 gap-3" type="button" (click)="add()"><i-bs name="plus-square-fill"></i-bs></button>
|
||||||
|
</ng-template>
|
||||||
|
</ngb-panel>
|
||||||
|
</ngb-accordion>
|
||||||
</div>
|
</div>
|
||||||
`,
|
`,
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import {FormlyJsonschema} from "@ngx-formly/core/json-schema";
|
|||||||
template: `
|
template: `
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<ngb-accordion #acc="ngbAccordion" activeIds="ngb-panel-0">
|
<ngb-accordion #acc="ngbAccordion" activeIds="ngb-panel-0">
|
||||||
<ngb-panel>
|
<ngb-panel id="ngb-panel-0">
|
||||||
<ng-template ngbPanelTitle>
|
<ng-template ngbPanelTitle>
|
||||||
<label *ngIf="props.label && props['hideLabel'] !== true" [attr.for]="id"
|
<label *ngIf="props.label && props['hideLabel'] !== true" [attr.for]="id"
|
||||||
class="form-label">{{ props.label }}
|
class="form-label">{{ props.label }}
|
||||||
|
|||||||
Reference in New Issue
Block a user