From 3fd383ecbd0bc352a6b16a3d11d42df83c7154cd Mon Sep 17 00:00:00 2001 From: Kevin Roast Date: Wed, 6 Jun 2007 09:52:56 +0000 Subject: [PATCH] My Modified Items list added web project list in My Web Forms portlet. Edit action available for form instance objects to launch the XForms editor. Fix to MyTasks action to launch task properties dialog in "light" container. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5863 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../portlets/mytaskspanel.get.html.ftl | 2 +- .../alfresco/portlets/mywebforms.get.html.ftl | 73 ++++++++++++++++++- source/web/scripts/ajax/myspaces.js | 6 +- 3 files changed, 75 insertions(+), 6 deletions(-) diff --git a/config/alfresco/templates/webscripts/org/alfresco/portlets/mytaskspanel.get.html.ftl b/config/alfresco/templates/webscripts/org/alfresco/portlets/mytaskspanel.get.html.ftl index 3e7e305510..d0c6138b3c 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/portlets/mytaskspanel.get.html.ftl +++ b/config/alfresco/templates/webscripts/org/alfresco/portlets/mytaskspanel.get.html.ftl @@ -51,7 +51,7 @@
${t.name?html}:
- Manage Task Details + Manage Task Details
diff --git a/config/alfresco/templates/webscripts/org/alfresco/portlets/mywebforms.get.html.ftl b/config/alfresco/templates/webscripts/org/alfresco/portlets/mywebforms.get.html.ftl index 3fa5151f7c..483c564c83 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/portlets/mywebforms.get.html.ftl +++ b/config/alfresco/templates/webscripts/org/alfresco/portlets/mywebforms.get.html.ftl @@ -47,8 +47,28 @@ <#assign formcount=formcount+1>
- ${form.properties.title} - <#--${form.properties.description}--> + ${form.properties.title} + <#if form.properties.description?length!=0> + (${form.properties.description}) + +
+ + + <#-- Modified Items list --> + <#assign moditems = avm.getModifiedItems(storeId, username, "ROOT")> + <#if moditems?size != 0> +
My Modified Items
+ <#list moditems as t> +
+ <#if t.isDocument> + ${t.name?html} + <#else> + ${t.name?html} + + + <#if t.hasAspect("wca:forminstancedata")> + Edit +
@@ -101,6 +121,14 @@ a.webProjectLink:link, a.webProjectLink:visited, a.webProjectLink:hover vertical-align: 60%; } +a.formActionLink:link, a.formActionLink:visited, a.formActionLink:hover +{ + color: #5A5741; + font-family: Trebuchet MS, Arial, Helvetica, sans-serif; + font-size: 11px; + padding-left: 8px; +} + span.webProjectInfo { vertical-align: 60%; @@ -134,6 +162,41 @@ span.webProjectInfo border-bottom: 1px dotted #CCD4DB; } +.itemsTitleRow +{ + background-color: #D8EAF2; + border-top: 1px solid #CCD4DB; + border-bottom: 1px dotted #CCD4DB; + color: #5A5741; + font-family: Trebuchet MS, Arial, Helvetica, sans-serif; + font-size: 13px; + font-weight: bold; + padding: 4px 0px 4px 48px; +} + +.formItemRow +{ + background-color: #D8EAF2; + color: #5A5741; + font-family: Trebuchet MS, Arial, Helvetica, sans-serif; + font-size: 13px; + padding: 4px 0px 4px 48px; +} + +a.formItemLink:link, a.formItemLink:visited, a.formItemLink:hover +{ + color: #5A5741; + font-family: Trebuchet MS, Arial, Helvetica, sans-serif; + font-size: 11px; +} + +span.formItemLink +{ + color: #5A5741; + font-family: Trebuchet MS, Arial, Helvetica, sans-serif; + font-size: 11px; +} + .formsRow, a.formsRow:link, a.formsRow:visited, a.formsRow:hover { background-color: #F8FCFD; @@ -149,6 +212,12 @@ span.webProjectInfo { } +img.itemImageIcon +{ + vertical-align: -25%; + padding-right:4px; +} + span.websiteLink { padding-left:8px; diff --git a/source/web/scripts/ajax/myspaces.js b/source/web/scripts/ajax/myspaces.js index f750a395e2..a9b9379e68 100644 --- a/source/web/scripts/ajax/myspaces.js +++ b/source/web/scripts/ajax/myspaces.js @@ -506,9 +506,9 @@ var MySpaces = { } }, "path=" + path.replace("_%_", "'") + - "&name=" + escape(spaceName) + - "&title=" + escape(spaceTitle) + - "&description=" + escape(spaceDesc) + "&name=" + encodeURIComponent(spaceName) + + "&title=" + encodeURIComponent(spaceTitle) + + "&description=" + encodeURIComponent(spaceDesc) ); } },