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:
Gavin Cornwell
2011-08-15 20:44:17 +00:00
parent 1259950719
commit 4dd7311c98
3 changed files with 99 additions and 70 deletions

View File

@@ -1,6 +1,4 @@
<html>
<head>
<style type="text/css"><!--
body
@@ -60,7 +58,7 @@
</#if>
</p>
<p><b>"${args.workflowDescription}"</b></p>
<p><b>"${args.workflowTitle}"</b></p>
<p>
<#if (args.workflowDueDate)??>Due:&nbsp;&nbsp;<b>${args.workflowDueDate?date?string.full}</b><br></#if>
@@ -79,30 +77,48 @@
</p>
<#if (args.workflowDocuments)??>
<table cellpadding=0 callspacing=0 border=0>
<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><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>
<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>
${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><a href="${shareUrl}/page/task-edit?taskId=${args.workflowId}">${shareUrl}/page/task-edit?taskId=${args.workflowId}</a>
</#if>
<p>Sincerely,<br />

View File

@@ -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