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.
83 lines
3.6 KiB
83 lines
3.6 KiB
<tr [routerLink]="link">
|
|
<td class="cell-select" sqxStopClick>
|
|
<input type="checkbox" class="form-check"
|
|
[ngModel]="selected"
|
|
(ngModelChange)="emitSelectedChange($event)" />
|
|
</td>
|
|
|
|
<td class="cell-actions cell-actions-left" *ngIf="!isDirty" sqxStopClick>
|
|
<div class="dropdown dropdown-options" *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)="emitChangeStatus(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)="emitClone(); dropdown.hide()" *ngIf="canClone">
|
|
Clone
|
|
</a>
|
|
|
|
<div class="dropdown-divider"></div>
|
|
|
|
<a class="dropdown-item dropdown-item-delete"
|
|
(sqxConfirmClick)="emitDelete()"
|
|
confirmTitle="Delete content"
|
|
confirmText="Do you really want to delete the content?">
|
|
Delete
|
|
</a>
|
|
</div>
|
|
</ng-container>
|
|
</div>
|
|
</td>
|
|
|
|
<ng-container *ngIf="isDirty">
|
|
<td class="cell-actions" >
|
|
<button type="button" class="btn btn-text-secondary btn-cancel" (click)="cancel()" sqxStopClick>
|
|
<i class="icon-close"></i>
|
|
</button>
|
|
</td>
|
|
|
|
<td class="cell-user" >
|
|
<button type="button" class="btn btn-success" (click)="save()" sqxStopClick>
|
|
<i class="icon-checkmark"></i>
|
|
</button>
|
|
</td>
|
|
</ng-container>
|
|
|
|
<td class="cell-user" *ngIf="!isCompact && !isDirty" [sqxStopClick]="isDirty">
|
|
<img class="user-picture" title="{{content.lastModifiedBy | sqxUserNameRef}}" [attr.src]="content.lastModifiedBy | sqxUserPictureRef" />
|
|
</td>
|
|
|
|
<td class="cell-auto cell-content" *ngFor="let field of schemaFields; let i = index; trackBy: trackByFieldFn" [sqxStopClick]="isDirty || (field.isInlineEditable && patchAllowed)">
|
|
<ng-container *ngIf="field.isInlineEditable && patchAllowed; else displayTemplate">
|
|
<sqx-content-value-editor [form]="patchForm.form" [field]="field"></sqx-content-value-editor>
|
|
</ng-container>
|
|
|
|
<ng-template #displayTemplate>
|
|
<sqx-content-value [value]="values[i]"></sqx-content-value>
|
|
</ng-template>
|
|
</td>
|
|
|
|
<td class="cell-time" *ngIf="!isCompact" [sqxStopClick]="isDirty">
|
|
<sqx-content-status
|
|
[status]="content.status"
|
|
[statusColor]="content.statusColor"
|
|
[scheduledTo]="content.scheduleJob?.status"
|
|
[scheduledAt]="content.scheduleJob?.dueTime"
|
|
[isPending]="content.isPending">
|
|
</sqx-content-status>
|
|
|
|
<small class="item-modified">{{content.lastModified | sqxFromNow}}</small>
|
|
</td>
|
|
</tr>
|
|
<tr class="spacer"></tr>
|