diff --git a/config/alfresco/messages/webclient.properties b/config/alfresco/messages/webclient.properties index 888e6ff5aa..df2ad1fd3c 100644 --- a/config/alfresco/messages/webclient.properties +++ b/config/alfresco/messages/webclient.properties @@ -852,7 +852,6 @@ website_filename_pattern=Filename pattern website_filename_match=Filename pattern match website_workflow=Workflow website_workflow_info=Use the following workflow -website_form_summary=Using workflow ''{0}'', with output path pattern ''{1}'', {2,choice,0#no rendering engines|1#one rendering engine|1<{2,number} rendering engines} selected. website_forms=Configure Web Forms form_template_details=Web Form Details form_template_details_desc=Edit the details of this Web Form @@ -888,6 +887,7 @@ workflow_settings=Workflow Settings workflow_not_configured=Workflow not configured error_filename_pattern=Error with workflow filename pattern: {0} workflow_not_set=no workflow +rendering_engines_selected=Templates Selected # Invite web users wizard messages invite_website_users=Invite Web Project Users @@ -952,6 +952,8 @@ recent_snapshots=Recent Snapshots snapshot_revert=Revert snapshot_preview=Preview webapp_current=Current Webapp Folder +sandbox_no_modified_items=No modified items +sandbox_no_web_forms=No Web Forms available # Website actions and dialog messages title_import_content=Web Project Bulk Import diff --git a/source/java/org/alfresco/web/bean/wcm/CreateWebsiteWizard.java b/source/java/org/alfresco/web/bean/wcm/CreateWebsiteWizard.java index bda55fabe4..305529764e 100644 --- a/source/java/org/alfresco/web/bean/wcm/CreateWebsiteWizard.java +++ b/source/java/org/alfresco/web/bean/wcm/CreateWebsiteWizard.java @@ -17,7 +17,6 @@ package org.alfresco.web.bean.wcm; import java.io.Serializable; -import java.text.MessageFormat; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; @@ -67,7 +66,6 @@ public class CreateWebsiteWizard extends BaseWizardBean private static final String MSG_DESCRIPTION = "description"; private static final String MSG_NAME = "name"; private static final String MSG_USERROLES = "create_website_summary_users"; - private static final String MSG_FORM_SUMMARY = "website_form_summary"; private static final String MSG_NONE = "workflow_not_set"; private static final String COMPONENT_FORMLIST = "form-list"; @@ -844,6 +842,11 @@ public class CreateWebsiteWizard extends BaseWizardBean return this.templates; } + public int getTemplatesSize() + { + return getTemplates() != null ? getTemplates().size() : 0; + } + /** * @param template to add to the list of PresentationTemplate */ @@ -863,18 +866,6 @@ public class CreateWebsiteWizard extends BaseWizardBean { this.templates = templates; } - - /** - * @return Human readable summary of the configuration for this form - */ - public String getDetails() - { - String none = '<' + Application.getMessage(FacesContext.getCurrentInstance(), MSG_NONE) + '>'; - return MessageFormat.format(Application.getMessage(FacesContext.getCurrentInstance(), MSG_FORM_SUMMARY), - getWorkflow() != null ? this.workflow.title : none, - getOutputPathPattern() != null ? this.outputPathPattern : none, - getTemplates() != null ? this.templates.size() : 0); - } } /** diff --git a/source/java/org/alfresco/web/bean/wcm/FormTemplatesDialog.java b/source/java/org/alfresco/web/bean/wcm/FormTemplatesDialog.java index 9a9f621a22..0b3c87c9f0 100644 --- a/source/java/org/alfresco/web/bean/wcm/FormTemplatesDialog.java +++ b/source/java/org/alfresco/web/bean/wcm/FormTemplatesDialog.java @@ -133,7 +133,7 @@ public class FormTemplatesDialog extends BaseDialogBean PresentationTemplate wrapper = new PresentationTemplate(engine); UIListItem item = new UIListItem(); item.setValue(wrapper); - item.setLabel(wrapper.getTitle()); + item.setLabel(wrapper.getTitle() + " (" + engine.getMimetypeForRendition() + ")"); item.setDescription(wrapper.getDescription()); item.setImage(WebResources.IMAGE_TEMPLATE_32); items.add(item); diff --git a/source/java/org/alfresco/web/ui/wcm/component/UIUserSandboxes.java b/source/java/org/alfresco/web/ui/wcm/component/UIUserSandboxes.java index 7a13ad4334..67b84cc354 100644 --- a/source/java/org/alfresco/web/ui/wcm/component/UIUserSandboxes.java +++ b/source/java/org/alfresco/web/ui/wcm/component/UIUserSandboxes.java @@ -108,6 +108,8 @@ public class UIUserSandboxes extends SelfRenderingComponent private static final String MSG_ACTIONS = "actions"; private static final String MSG_DELETED_ITEM = "avm_node_deleted"; private static final String MSG_SELECTED = "selected"; + private static final String MSG_NO_MODIFIED_ITEMS = "sandbox_no_modified_items"; + private static final String MSG_NO_WEB_FORMS = "sandbox_no_web_forms"; /** Content Manager role name */ private static final String ROLE_CONTENT_MANAGER = "ContentManager"; @@ -491,25 +493,25 @@ public class UIUserSandboxes extends SelfRenderingComponent String stagingStore = AVMConstants.buildStagingStoreName(storeRoot); String stagingStorePath = AVMConstants.buildStoreWebappPath(stagingStore, getWebapp()); - // info we need to calculate preview paths for assets - String dns = AVMConstants.lookupStoreDNS(userStore); - int rootPathIndex = AVMConstants.buildSandboxRootPath(userStore).length(); - ClientConfigElement config = Application.getClientConfig(fc); - - // get the UIActions component responsible for rendering context related user actions - // TODO: we may need a component per user instance? (or use evaluators for roles...) - UIActions uiFileActions = aquireUIActions(ACTIONS_FILE, userStore); - UIActions uiFolderActions = aquireUIActions(ACTIONS_FOLDER, userStore); - UIActions uiDeletedActions = aquireUIActions(ACTIONS_DELETED, userStore); - - String id = getClientId(fc); - // use the sync service to get the list of diffs between the stores NameMatcher matcher = (NameMatcher)FacesContextUtils.getRequiredWebApplicationContext(fc).getBean( "globalPathExcluder"); List diffs = avmSyncService.compare(-1, userStorePath, -1, stagingStorePath, matcher); if (diffs.size() != 0) { + // info we need to calculate preview paths for assets + String dns = AVMConstants.lookupStoreDNS(userStore); + int rootPathIndex = AVMConstants.buildSandboxRootPath(userStore).length(); + ClientConfigElement config = Application.getClientConfig(fc); + + // get the UIActions component responsible for rendering context related user actions + // TODO: we may need a component per user instance? (or use evaluators for roles...) + UIActions uiFileActions = aquireUIActions(ACTIONS_FILE, userStore); + UIActions uiFolderActions = aquireUIActions(ACTIONS_FOLDER, userStore); + UIActions uiDeletedActions = aquireUIActions(ACTIONS_DELETED, userStore); + + String id = getClientId(fc); + // store lookup of username to list of modified nodes List nodes = new ArrayList(diffs.size()); this.userNodes.put(username, nodes); @@ -692,7 +694,10 @@ public class UIUserSandboxes extends SelfRenderingComponent } else { - // TODO: output "no modified files found" message + // output "no modified files found" message + out.write("
"); + out.write(bundle.getString(MSG_NO_MODIFIED_ITEMS)); + out.write("
"); } } @@ -718,10 +723,10 @@ public class UIUserSandboxes extends SelfRenderingComponent { this.forms = new WebProject(websiteRef).getForms(); } + + ResourceBundle bundle = Application.getBundle(fc); if (this.forms.size() != 0) { - ResourceBundle bundle = Application.getBundle(fc); - // output the table of available forms // TODO: apply tag style - removed hardcoded out.write(""); @@ -773,6 +778,13 @@ public class UIUserSandboxes extends SelfRenderingComponent out.write("
"); } + else + { + // output "no web forms" message + out.write("
"); + out.write(bundle.getString(MSG_NO_WEB_FORMS)); + out.write("
"); + } } /** diff --git a/source/web/jsp/wcm/create-form-wizard/configure-rendering-engines.jsp b/source/web/jsp/wcm/create-form-wizard/configure-rendering-engines.jsp index e6f0cc45cd..2fd75d6553 100644 --- a/source/web/jsp/wcm/create-form-wizard/configure-rendering-engines.jsp +++ b/source/web/jsp/wcm/create-form-wizard/configure-rendering-engines.jsp @@ -216,7 +216,7 @@ + image="/images/icons/delete.gif" value="#{msg.remove}" showLink="false" style="padding:4px" /> diff --git a/source/web/jsp/wcm/create-website-wizard/details.jsp b/source/web/jsp/wcm/create-website-wizard/details.jsp index cddcc8501f..29264e3948 100644 --- a/source/web/jsp/wcm/create-website-wizard/details.jsp +++ b/source/web/jsp/wcm/create-website-wizard/details.jsp @@ -94,7 +94,7 @@ - @@ -112,7 +112,7 @@ - @@ -126,7 +126,7 @@ - + @@ -139,20 +139,20 @@ - + - + - + diff --git a/source/web/jsp/wcm/create-website-wizard/form-details.jsp b/source/web/jsp/wcm/create-website-wizard/form-details.jsp index ad94a9c5a2..1c3dff7711 100644 --- a/source/web/jsp/wcm/create-website-wizard/form-details.jsp +++ b/source/web/jsp/wcm/create-website-wizard/form-details.jsp @@ -74,20 +74,20 @@ - + - + - + diff --git a/source/web/jsp/wcm/create-website-wizard/form-templates.jsp b/source/web/jsp/wcm/create-website-wizard/form-templates.jsp index ef96f44091..b1c6fbac94 100644 --- a/source/web/jsp/wcm/create-website-wizard/form-templates.jsp +++ b/source/web/jsp/wcm/create-website-wizard/form-templates.jsp @@ -36,15 +36,20 @@ - + + cellspacing="0" cellpadding="4" width="100%"> + + + + + @@ -55,7 +60,7 @@ + value="#{msg.remove}" showLink="false" style="padding:4px" /> @@ -66,7 +71,8 @@ - + diff --git a/source/web/jsp/wcm/create-website-wizard/form-workflow.jsp b/source/web/jsp/wcm/create-website-wizard/form-workflow.jsp index d13367675e..6de61b9091 100644 --- a/source/web/jsp/wcm/create-website-wizard/form-workflow.jsp +++ b/source/web/jsp/wcm/create-website-wizard/form-workflow.jsp @@ -35,6 +35,6 @@ - + diff --git a/source/web/jsp/wcm/create-website-wizard/forms.jsp b/source/web/jsp/wcm/create-website-wizard/forms.jsp index ca912e9f88..a21c488ec6 100644 --- a/source/web/jsp/wcm/create-website-wizard/forms.jsp +++ b/source/web/jsp/wcm/create-website-wizard/forms.jsp @@ -37,49 +37,66 @@ <%-- Selected Form table, with configuration buttons and info text --%>
- - + - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + + value="#{msg.remove}" showLink="false" style="padding:4px" /> - + diff --git a/source/web/jsp/wcm/create-website-wizard/invite.jsp b/source/web/jsp/wcm/create-website-wizard/invite.jsp index 777c336d3c..a487fafc71 100644 --- a/source/web/jsp/wcm/create-website-wizard/invite.jsp +++ b/source/web/jsp/wcm/create-website-wizard/invite.jsp @@ -48,7 +48,7 @@ License. + value="#{msg.remove}" showLink="false" style="padding:4px" /> diff --git a/source/web/jsp/wcm/create-website-wizard/settings.jsp b/source/web/jsp/wcm/create-website-wizard/settings.jsp index f701e0e215..d6825ff532 100644 --- a/source/web/jsp/wcm/create-website-wizard/settings.jsp +++ b/source/web/jsp/wcm/create-website-wizard/settings.jsp @@ -40,7 +40,7 @@ @@ -61,12 +61,13 @@ + value="#{msg.remove}" showLink="false" style="padding:4px" /> - +