@ -11,53 +11,14 @@
< / ng-template >
< / td >
< td class = "cell-auto" * ngFor = "let field of schemaFields; let i = index; trackBy: trackByField.bind(this)" [ 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 >
< td class = "cell-user" * ngIf = "!isCompact && !isDirty" [ sqxStopClick ] = " isDirty " >
< img class = "user-picture" title = "{{content.lastModifiedBy | sqxUserNameRef}}" [ attr . src ] = " content . lastModifiedBy | sqxUserPictureRef " / >
< / td >
< ng-container * ngIf = "isDirty" >
< td class = "cell-user" >
< button type = "button" class = "btn btn-success" ( click ) = " save ( ) " sqxStopClick >
< i class = "icon-checkmark" > < / i >
< / button >
< / td >
< td class = "cell-actions" >
< button type = "button" class = "btn btn-text-secondary btn-cancel" ( click ) = " cancel ( ) " sqxStopClick >
< i class = "icon-close" > < / i >
< / button >
< / td >
< / ng-container >
< td class = "cell-actions" * ngIf = "!isReadOnly && !isDirty" sqxStopClick >
< td class = "cell-actions cell-actions-left" * ngIf = "!isReadOnly && !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 " @ fade >
< 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 < i class = "icon-circle icon-sm" [ style . color ] = " info . color " > < / i > {{info.status}}
< / a >
@ -77,6 +38,47 @@
< / 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: trackByField.bind(this)" [ 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 >
< td class = "cell-actions" * ngIf = "isReference" [ sqxStopClick ] = " isDirty " >
< div class = "reference-edit" >
< button type = "button" class = "btn btn-text-secondary" >