| CODENOTIFIER | HelpYou are not signed inSign in |
Project: Alfresco
Revision: 2852
Author: mikeh
Date: 02 Sep 2008 14:17:00
Changes:Workflow decription limited to 255 characters
Files:| ... | ...@@ -15,3 +15,4 @@ | |
| 15 | 15 | label.due-date.none=(None) |
| 16 | 16 | format.due-date=dddd, dd mmmm yyyy |
| 17 | 17 | tooltip.remove-person=Remove |
| 18 | label.comment.max-length=(Maximum 255 characters) | |
| 18 | 19 | \ No newline at end of file |
| ... | ...@@ -1,7 +1,8 @@ | |
| 1 | 1 | <#assign workingCopyLabel = " " + message("coci_service.working_copy_label")> |
| 2 | 2 | <#assign filter = args["filter"]!"all"> |
| 3 | ||
| 4 | <#-- Resolve site, container and path --> | |
| 3 | <#-- | |
| 4 | Resolve site, container and path | |
| 5 | --> | |
| 5 | 6 | <#macro location doc> |
| 6 | 7 | <#assign qnamePaths = doc.qnamePath?split("/")> |
| 7 | 8 | <#assign displayPaths = doc.displayPath?split("/") + [""]> |
| ... | ...@@ -11,12 +12,13 @@ | |
| 11 | 12 | "path": "<#list displayPaths[5..] as path><#if path_has_next>/</#if>${path}</#list>" |
| 12 | 13 | </#if> |
| 13 | 14 | </#macro> |
| 14 | ||
| 15 | <#-- Render a task --> | |
| 15 | <#-- | |
| 16 | Render a task | |
| 17 | --> | |
| 16 | 18 | <#macro taskDetail task> |
| 17 | 19 | { |
| 18 | 20 | "id": "${task.id}", |
| 19 | "description": "${task.description!""}", | |
| 21 | "description": "${(task.description!"")?j_string}", | |
| 20 | 22 | "dueDate": "<#if task.properties["bpm:dueDate"]?exists>${task.properties["bpm:dueDate"]?date!""}<#else>${future?date}</#if>", |
| 21 | 23 | "status": "${task.properties["bpm:status"]}", |
| 22 | 24 | "priority": "${task.properties["bpm:priority"]}", |
| ... | ...@@ -49,10 +51,10 @@ | |
| 49 | 51 | ] |
| 50 | 52 | } |
| 51 | 53 | </#macro> |
| 52 | ||
| 53 | <#-- Filter task list --> | |
| 54 | <#-- | |
| 55 | Filter task list | |
| 56 | --> | |
| 54 | 57 | <#assign filteredTasks = []> |
| 55 | ||
| 56 | 58 | <#list workflow.assignedTasks as task> |
| 57 | 59 | <#assign hasDate = task.properties["bpm:dueDate"]?exists> |
| 58 | 60 | <#assign dueDate><#if task.properties["bpm:dueDate"]?exists>${task.properties["bpm:dueDate"]?date!""}<#else>${future?date}</#if></#assign> |
| ... | ...@@ -99,7 +101,6 @@ | |
| 99 | 101 | </#switch> |
| 100 | 102 | </#list> |
| 101 | 103 | |
| 102 | ||
| 103 | 104 | <#escape x as jsonUtils.encodeJSONString(x)> |
| 104 | 105 | { |
| 105 | 106 | "tasks": |
| ... | ...@@ -65,6 +65,7 @@ | |
| 65 | 65 | if (!json.isNull("description")) |
| 66 | 66 | { |
| 67 | 67 | description = json.get("description"); |
| 68 | description = description.substr(0, 255); | |
| 68 | 69 | } |
| 69 | 70 | else |
| 70 | 71 | { |
| ... | ...@@ -38,7 +38,10 @@ | |
| 38 | 38 | <div class="yui-g"> |
| 39 | 39 | <h2>${msg("header.comment")}:</h2> |
| 40 | 40 | </div> |
| 41 | <div class="field"><textarea id="${args.htmlid}-comment" name="description" rows="3" tabindex="5"></textarea></div> | |
| 41 | <div class="field"> | |
| 42 | <textarea id="${args.htmlid}-comment" name="description" rows="3" tabindex="5"></textarea> | |
| 43 | <span>${msg("label.comment.max-length")}</span> | |
| 44 | </div> | |
| 42 | 45 | <div class="bdft"> |
| 43 | 46 | <input type="button" id="${args.htmlid}-ok" value="${msg("button.assign")}" tabindex="6" /> |
| 44 | 47 | <input type="button" id="${args.htmlid}-cancel" value="${msg("button.cancel")}" tabindex="7" /> |