All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web.workflow.upl.wfitemcommentspanel.upl Maven / Gradle / Ivy

The newest version!
// UPL template for workflow item comments panel
// Copyright 2018-2020 The Code Department.
!ui-wfitemcommentspanel dialogCaption:$m{common.workflow.comments}
    dialogBodyLayout:$d{!ui-vertical style:$s{width:100%;}}
    dialogBodyComponents:$c{wfHistEventPanel addCommentsPanel}
    dialogActionComponents:$c{saveBtn cancelBtn closeBtn}

// Workflow history events
!ui-wfhisteventlisting:wfHistEventPanel style:$s{width:420px;height:200px;} binding:commentsHistEventList

// Add comments panel 
!ui-formpanel:addCommentsPanel layout:$d{!ui-vertical style:$s{width:100%;}}
    formSection:$d{!ui-section components:$c{frmComments frmCommentsReq}}
    formCaptionSuffix:$s{:} formColumns:1
!ui-textarea:frmComments caption:$m{common.workflow.comment} style:$s{width:260px;overflow-y:scroll;} wordWrap:true maxLen:512 binding:comment focus:true
!ui-textarea:frmCommentsReq caption:$m{common.workflow.comment} style:$s{width:100%;overflow-y:scroll;} wordWrap:true maxLen:512 binding:comment focus:true required:true

// Action components
!ui-button:saveBtn captionBinding:applyActionCaption eventHandler:$d{!ui-event event:onclick action:$c{saveCommentsAct}}
!ui-button:cancelBtn styleClass:$e{ui-button-alert} caption:$m{button.cancelaction}
    eventHandler:$d{!ui-event event:onclick action:$c{closeDialogAct}}
!ui-button:closeBtn styleClass:$e{ui-button-alert} caption:$m{button.close}
    eventHandler:$d{!ui-event event:onclick action:$c{closeDialogAct}}

// Actions
!ui-post:saveCommentsAct path:$g{saveCommentsPath} components:$c{addCommentsPanel}
    validations:$c{commentsValidation}

// Validations
!ui-validation:commentsValidation components:$c{frmComments frmCommentsReq}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy