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.
67 lines
2.8 KiB
67 lines
2.8 KiB
<tr [sqxTabRouterLink]="link">
|
|
<td class="cell-select inline-edit" sqxStopClick>
|
|
<div class="custom-control custom-checkbox">
|
|
<input class="custom-control-input" type="checkbox" id="{{content.id}}_selected"
|
|
[ngModel]="selected"
|
|
(ngModelChange)="selectedChange.emit($event)" />
|
|
|
|
<label class="custom-control-label" for="{{content.id}}_selected" ></label>
|
|
</div>
|
|
|
|
<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>
|
|
<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)">
|
|
{{ 'common.statusChangeTo' | sqxTranslate }}
|
|
|
|
<sqx-content-status small="true"
|
|
layout="text"
|
|
[status]="info.status"
|
|
[statusColor]="info.color">
|
|
</sqx-content-status>
|
|
</a>
|
|
<a class="dropdown-item" (click)="clone.emit(); dropdown.hide()" *ngIf="cloneable">
|
|
{{ 'common.clone' | sqxTranslate }}
|
|
</a>
|
|
|
|
<div class="dropdown-divider"></div>
|
|
|
|
<a class="dropdown-item dropdown-item-delete"
|
|
(sqxConfirmClick)="delete.emit()"
|
|
confirmTitle="i18n:contents.deleteConfirmTitle"
|
|
confirmText="i18n:contents.deleteConfirmText"
|
|
confirmRememberKey="deleteContent">
|
|
{{ 'common.delete' | sqxTranslate }}
|
|
</a>
|
|
</div>
|
|
</ng-container>
|
|
</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>
|