
kflow.files-repository.3.2-RC1.source-code.files-repository-widget.html Maven / Gradle / Ivy
The newest version!
<#assign null = "null"/>
<#assign isMailMode =((mode!"STANDARD")=="MAIL")>
<#if attributesProvider.processInstance??>
<#assign providerId = attributesProvider.processInstance.getId()!""/>
<#assign controllerName = 'filescontroller'/>
<#else>
<#assign providerId = attributesProvider.getId()!""/>
<#assign controllerName = 'casefilescontroller'/>
#if>
<#assign userLogin = user.getLogin()!""/>
<#if attributesProvider.assignee??>
<#assign assignee = attributesProvider.assignee!""/>
<#else>
<#assign assignee = userLogin />
#if>
<#if !files??>
<#assign files = processInstanceFiles/>
#if>
<#assign viewMode = privileges?seq_contains("EDIT")?string("edit", "view")/>
<#if viewMode != "edit">
<#assign viewMode = privileges?seq_contains("MIXED")?string("mixed", "view")/>
<#if viewMode != "mixed">
<#assign viewMode = "view"/>
#if>
#if>
<#if viewMode = "mixed">
<#if assignee != userLogin>
<#assign viewMode = "view"/>
#if>
#if>
<#assign deleteAreYouSure = messageSource.getMessage("widget.file.repository.results.table.delete.areYouSure")/>
<#assign updateDescriptionAreYouSure = messageSource.getMessage("widget.file.repository.results.table.updateDescription.areYouSure")/>
<#assign updateDescriptionSuccess = messageSource.getMessage("widget.file.repository.results.table.updateDescription.success")/>
<#macro fileTableTr fileId fileName fileDescription fileCreateDate fileCreatorLogin fileSendWithMail b="" e="">
${b} ${e}
${b} ${fileName?html} ${e}
${b} ${e}
${b} <#if isMailMode>${e}
${b} ${e}
${b} ${e}
${b} ${e}
${b} ${e}
${b} ${e}
${b} #if>${e}
${b} ${e}
${b} ${e}
${b} ${e}
${b} ${e}
${b} ${b}
#macro>
<#macro fileTableTrJs><@fileTableTr fileId="%%fileId%%" fileName="%%fileName%%" fileDescription="%%fileDescription%%" fileCreateDate="%%fileCreateDate%%" fileCreatorLogin="%%fileCreatorLogin%%" fileSendWithMail="%%fileSendWithMail%%" b="'" e="\\n'+"/>#macro>
${e}
${b}
Nazwa
Opis
Akcja
<#list files?sort_by("createDate", "name") as file>
<@fileTableTr fileId=file.id?c fileName=file.name fileDescription=file.description!
fileCreateDate=file.createDate?string("dd-MM-yy HH:mm") fileCreatorLogin=file.creatorLogin fileSendWithMail=(file.sendWithMail!false)?string("true", "false")/>
#list>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy