<#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'/> <#assign userLogin = user.getLogin()!""/> <#if attributesProvider.assignee??> <#assign assignee = attributesProvider.assignee!""/> <#else> <#assign assignee = userLogin /> <#if !files??> <#assign files = processInstanceFiles/> <#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 viewMode = "mixed"> <#if assignee != userLogin> <#assign viewMode = "view"/> <#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} ${fileId}${e} ${b} ${fileName?html}${e} ${b} ${e} ${b} <#if isMailMode>${e} ${b} ${e} ${b}
${e} ${b} ${e} ${b}
${e} ${b} ${e} ${b} ${e} ${b} ${e} ${b} ${e} ${b} ${e} ${b} ${e} ${b} ${b} <#macro fileTableTrJs><@fileTableTr fileId="%%fileId%%" fileName="%%fileName%%" fileDescription="%%fileDescription%%" fileCreateDate="%%fileCreateDate%%" fileCreatorLogin="%%fileCreatorLogin%%" fileSendWithMail="%%fileSendWithMail%%" b="'" e="\\n'+"/>
<#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")/>
Nazwa Opis Akcja
Dodaj załącznik do sprawy