mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
2.7 KiB
65 lines
2.7 KiB
<tr [routerLink]="link">
|
|
<td class="cell-select inline-edit" sqxStopClick>
|
|
<input type="checkbox" class="form-check"
|
|
[ngModel]="selected"
|
|
(ngModelChange)="selectedChange.emit($event)" />
|
|
|
|
<ng-container *ngIf="isDirty">
|
|
<div class="edit-menu">
|
|
<button type="button" class="btn btn-text-secondary btn-cancel mr-2" (click)="cancel()" sqxStopClick>
|
|
<i class="icon-close"></i>
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-success" (click)="save()" sqxStopClick>
|
|
<i class="icon-checkmark"></i>
|
|
</button>
|
|
</div>
|
|
</ng-container>
|
|
</td>
|
|
|
|
<td class="cell-actions cell-actions-left" sqxStopClick>
|
|
<div class="dropdown dropdown-options inline-edit" *ngIf="content">
|
|
<button type="button" class="btn btn-text-secondary" (click)="dropdown.toggle()" [class.active]="dropdown.isOpen | async" #buttonOptions>
|
|
<i class="icon-dots"></i>
|
|
</button>
|
|
|
|
<ng-container *sqxModal="dropdown;closeAlways:true">
|
|
<div class="dropdown-menu" [sqxAnchoredTo]="buttonOptions" position="bottom-left" @fade>
|
|
<a class="dropdown-item" *ngFor="let info of content.statusUpdates" (click)="statusChange.emit(info.status)">
|
|
Change to
|
|
|
|
<sqx-content-status
|
|
[status]="info.status"
|
|
[statusColor]="info.color"
|
|
showLabel="true"
|
|
small="true">
|
|
</sqx-content-status>
|
|
</a>
|
|
<a class="dropdown-item" (click)="clone.emit(); dropdown.hide()" *ngIf="canClone">
|
|
Clone
|
|
</a>
|
|
|
|
<div class="dropdown-divider"></div>
|
|
|
|
<a class="dropdown-item dropdown-item-delete"
|
|
(sqxConfirmClick)="delete.emit()"
|
|
confirmTitle="Delete content"
|
|
confirmText="Do you really want to delete the content?">
|
|
Delete
|
|
</a>
|
|
</div>
|
|
</ng-container>
|
|
</div>
|
|
</td>
|
|
|
|
<td *ngFor="let field of listFields" [sqxContentListCell]="field" [sqxStopClick]="shouldStop(field)">
|
|
<sqx-content-list-field
|
|
[field]="field"
|
|
[patchForm]="patchForm?.form"
|
|
[patchAllowed]="patchAllowed"
|
|
[content]="content"
|
|
[language]="language">
|
|
</sqx-content-list-field>
|
|
</td>
|
|
</tr>
|
|
<tr class="spacer"></tr>
|