mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
. 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:
@@ -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.
|
||||
|
@@ -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())
|
||||
{
|
||||
|
@@ -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());
|
||||
|
@@ -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));
|
||||
|
@@ -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) (E) (T) (D)
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user