. WCM UI enhancements

- Progress bar indicator on ZIP website import screen
  - Clickable links for sandbox icons (same as clicking browse action icon)
  - Size field added to file list for website browsing

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3829 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2006-09-18 15:25:34 +00:00
parent 61175d2192
commit baa90889af
7 changed files with 20 additions and 10 deletions

View File

@@ -800,6 +800,7 @@ user_sandboxes=User Sandboxes
sandbox_preview=Preview Website
sandbox_create=Create New Content
sandbox_browse=Browse Website
sandbox_icon=Browse Website
import_website_content=Import Website Content
title_browse_sandbox=Browse Sandbox
sandbox_info=Use this view to browse the files and folders within the sandbox for a website.

View File

@@ -320,8 +320,6 @@ public class AVMBrowseBean implements IContextListener
// build the client representation of the AVM node
AVMNode node = new AVMNode(avmRef);
// add any common properties
// properties specific to folders or files
if (avmRef.isDirectory())
{

View File

@@ -75,6 +75,7 @@ public class AVMNode implements Map<String, Object>
this.properties.put("id", this.path);
this.properties.put("path", this.path);
this.properties.put("size", this.avmRef.getLength());
this.properties.put("name", this.avmRef.getName());
this.properties.put("created", this.avmRef.getCreateDate());
this.properties.put("modified", this.avmRef.getModDate());

View File

@@ -193,7 +193,11 @@ public class UIUserSandboxes extends SelfRenderingComponent
// components for the current username, preview, browse and modified items inner list
out.write("<table cellspacing=2 cellpadding=2 border=0 width=100%><tr><td>");
out.write(Utils.buildImageTag(context, WebResources.IMAGE_USERSANDBOX_32, 32, 32, ""));
// show the icon for the sandbox as a clickable browse link image
Utils.encodeRecursive(context, aquireAction(
context, mainStore, username, "sandbox_icon", WebResources.IMAGE_USERSANDBOX_32,
"#{AVMBrowseBean.setupSandboxAction}", "browseSandbox"));
//out.write(Utils.buildImageTag(context, WebResources.IMAGE_USERSANDBOX_32, 32, 32, ""));
out.write("</td><td width=100%>");
out.write("<b>");
out.write(bundle.getString(MSG_USERNAME));

View File

@@ -102,7 +102,7 @@
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
<table cellspacing=2 cellpadding=2 border=0 width=100%>
<tr>
<td align=left width=32><h:graphicImage url="/images/icons/sandbox_large.gif" width="32" height="32" /></td>
<td align=left width=32><a:actionLink image="/images/icons/sandbox_large.gif" showLink="false" value="#{msg.staging_sandbox}" actionListener="#{AVMBrowseBean.setupSandboxAction}" action="browseSandbox" /></td>
<td align=left><h:outputText value="#{msg.staging_sandbox}" styleClass="mainSubTitle" /></td>
<td align=right>
(P)&nbsp;(E)&nbsp;(T)&nbsp;(D)&nbsp;

View File

@@ -144,7 +144,7 @@
<h:form acceptCharset="UTF-8" id="add-content-upload-end">
<% if (foundFile) { %>
<tr>
<td colspan="3">
<td>
<table border="0" cellspacing="2" cellpadding="2" class="selectedItems">
<tr>
<td colspan="2" class="selectedItemsHeader">
@@ -163,6 +163,11 @@
</tr>
</table>
</td>
<td width="100%" valign="middle" align="center">
<div id="progress" style="display:none">
<img src="<%=request.getContextPath()%>/images/icons/process_animation.gif" width=174 height=14>
</div>
</td>
</tr>
<% } %>
@@ -178,6 +183,7 @@
<h:commandButton id="finish-button" styleClass="wizardButton"
value="#{msg.ok}"
action="#{ImportWebsiteDialog.finish}"
onclick="javascript:document.getElementById('progress').style.display='inline';"
disabled="#{ImportWebsiteDialog.finishButtonDisabled}" />
</td>
</tr>