mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Updated documents section of workflow email notification template to match Linton's styling and fixed task edit/details URLs
NOTE: You'll need to start with a clean database to see these changes. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29783 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
<html>
|
||||
|
||||
|
||||
<head>
|
||||
<style type="text/css"><!--
|
||||
body
|
||||
@@ -53,56 +51,74 @@
|
||||
<p>Hi,</p>
|
||||
|
||||
<p>
|
||||
<#if args.workflowPooled == true>
|
||||
The following pooled task is available to be claimed:
|
||||
<#else>
|
||||
You have been assigned the following task:
|
||||
</#if>
|
||||
<#if args.workflowPooled == true>
|
||||
The following pooled task is available to be claimed:
|
||||
<#else>
|
||||
You have been assigned the following task:
|
||||
</#if>
|
||||
</p>
|
||||
|
||||
<p><b>"${args.workflowDescription}"</b></p>
|
||||
<p><b>"${args.workflowTitle}"</b></p>
|
||||
|
||||
<p>
|
||||
<#if (args.workflowDueDate)??>Due: <b>${args.workflowDueDate?date?string.full}</b><br></#if>
|
||||
<#if (args.workflowPriority)??>
|
||||
Priority:
|
||||
<b>
|
||||
<#if args.workflowPriority == 3>
|
||||
Low
|
||||
<#elseif args.workflowPriority == 2>
|
||||
Medium
|
||||
<#else>
|
||||
High
|
||||
</#if>
|
||||
</b>
|
||||
Priority:
|
||||
<b>
|
||||
<#if args.workflowPriority == 3>
|
||||
Low
|
||||
<#elseif args.workflowPriority == 2>
|
||||
Medium
|
||||
<#else>
|
||||
High
|
||||
</#if>
|
||||
</b>
|
||||
</#if>
|
||||
</p>
|
||||
|
||||
<#if (args.workflowDocuments)??>
|
||||
<table cellpadding=0 callspacing=0 border=0>
|
||||
<#list args.workflowDocuments as doc>
|
||||
<tr><td><table cellpadding=0 cellspacing=0 border=0><tr>
|
||||
<td><img src="${shareUrl}/res/components/images/generic-file.png" alt="" width="64" height="64" border="0" style="padding-right: 20px;" /></td>
|
||||
<td><table cellpadding=0 cellspacing=0 border=0>
|
||||
<tr><td><b>${doc.name}</b></td></tr>
|
||||
<tr><td>Click on this link to download the document:</td></tr>
|
||||
<tr><td>
|
||||
<a href="${shareUrl}/proxy/alfresco/api/node/content/workspace/SpacesStore/${doc.id}/${doc.name}?a=true">
|
||||
${shareUrl}/proxy/alfresco/api/node/content/workspace/SpacesStore/${doc.id}/${doc.name}?a=true
|
||||
</a>
|
||||
</td></tr>
|
||||
</table></td>
|
||||
</tr></table></td></tr>
|
||||
</#list>
|
||||
</table>
|
||||
<table cellpadding="0" callspacing="0" border="0" bgcolor="#eeeeee" style="padding:10px; border: 1px solid #aaaaaa;">
|
||||
<#list args.workflowDocuments as doc>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td valign="top">
|
||||
<img src="${shareUrl}/res/components/images/generic-file.png" alt="" width="64" height="64" border="0" style="padding-right: 10px;" />
|
||||
</td>
|
||||
<td>
|
||||
<table cellpadding="2" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><b>${doc.name}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Click on this link to download the document:</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="${shareUrl}/proxy/alfresco/api/node/content/workspace/SpacesStore/${doc.id}/${doc.name}?a=true">
|
||||
${shareUrl}/proxy/alfresco/api/node/content/workspace/SpacesStore/${doc.id}/${doc.name}?a=true</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<#if doc_has_next>
|
||||
<tr><td><div style="border-top: 1px solid #aaaaaa; margin:12px;"></div></td></tr>
|
||||
</#if>
|
||||
</#list>
|
||||
</table>
|
||||
</#if>
|
||||
|
||||
<#if args.workflowPooled == true>
|
||||
<p>Click this link to view the task:</p>
|
||||
<p><a href="${shareUrl}/page/task-view?taskId=${args.workflowId}">${shareUrl}/page/task-view?taskId=${args.workflowId}</a>
|
||||
<p><a href="${shareUrl}/page/task-details?taskId=${args.workflowId}">${shareUrl}/page/task-details?taskId=${args.workflowId}</a>
|
||||
<#else>
|
||||
<p>Click this link to edit the task:</p>
|
||||
<p><a href="${shareUrl}/page/task-details?taskId=${args.workflowId}">${shareUrl}/page/task-edit?taskId=${args.workflowId}</a>
|
||||
<p>Click this link to edit the task:</p>
|
||||
<p><a href="${shareUrl}/page/task-edit?taskId=${args.workflowId}">${shareUrl}/page/task-edit?taskId=${args.workflowId}</a>
|
||||
</#if>
|
||||
|
||||
<p>Sincerely,<br />
|
||||
|
@@ -15,25 +15,25 @@
|
||||
</view:properties>
|
||||
<view:associations>
|
||||
<cm:contains>
|
||||
<cm:content view:childName="cm:invite-email.html.ftl">
|
||||
<view:aspects>
|
||||
<cm:auditable></cm:auditable>
|
||||
<sys:referenceable></sys:referenceable>
|
||||
<app:inlineeditable></app:inlineeditable>
|
||||
</view:aspects>
|
||||
<view:acl></view:acl>
|
||||
<view:properties>
|
||||
<app:editInline>true</app:editInline>
|
||||
<sys:store-protocol>workspace</sys:store-protocol>
|
||||
<sys:store-identifier>SpacesStore</sys:store-identifier>
|
||||
<sys:node-uuid>wf-email-html-ftl</sys:node-uuid>
|
||||
<cm:name>wf-email.html.ftl</cm:name>
|
||||
<cm:title>wf-email.html.ftl</cm:title>
|
||||
<cm:description>${spaces.templates.email.generate_the_wf_notification_email.description} - ${version.default}</cm:description>
|
||||
<cm:content>contentUrl=classpath:alfresco\bootstrap\notification\wf-email.html.ftl|mimetype=text/plain|size=1455|encoding=UTF-8</cm:content>
|
||||
</view:properties>
|
||||
</cm:content>
|
||||
</cm:contains>
|
||||
</view:associations>
|
||||
<cm:content view:childName="cm:invite-email.html.ftl">
|
||||
<view:aspects>
|
||||
<cm:auditable></cm:auditable>
|
||||
<sys:referenceable></sys:referenceable>
|
||||
<app:inlineeditable></app:inlineeditable>
|
||||
</view:aspects>
|
||||
<view:acl></view:acl>
|
||||
<view:properties>
|
||||
<app:editInline>true</app:editInline>
|
||||
<sys:store-protocol>workspace</sys:store-protocol>
|
||||
<sys:store-identifier>SpacesStore</sys:store-identifier>
|
||||
<sys:node-uuid>wf-email-html-ftl</sys:node-uuid>
|
||||
<cm:name>wf-email.html.ftl</cm:name>
|
||||
<cm:title>wf-email.html.ftl</cm:title>
|
||||
<cm:description>${spaces.templates.email.generate_the_wf_notification_email.description} - ${version.default}</cm:description>
|
||||
<cm:content>contentUrl=classpath:alfresco\bootstrap\notification\wf-email.html.ftl|mimetype=text/plain|size=1455|encoding=UTF-8</cm:content>
|
||||
</view:properties>
|
||||
</cm:content>
|
||||
</cm:contains>
|
||||
</view:associations>
|
||||
</cm:folder>
|
||||
</view:view>
|
||||
|
@@ -1,5 +1,20 @@
|
||||
/**
|
||||
/*
|
||||
* Copyright (C) 2005-2011 Alfresco Software Limited.
|
||||
*
|
||||
* This file is part of Alfresco
|
||||
*
|
||||
* Alfresco is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* Alfresco is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.alfresco.repo.workflow;
|
||||
|
||||
@@ -22,8 +37,6 @@ import org.springframework.extensions.surf.util.I18NUtil;
|
||||
/**
|
||||
* Utility class containing methods to help when sending workflow notifications.
|
||||
*
|
||||
* TODO? Move to workflow serivce??
|
||||
*
|
||||
* @author Roy Wetherall
|
||||
*/
|
||||
public abstract class WorkflowNotificationUtils
|
||||
|
Reference in New Issue
Block a user