diff --git a/source/java/org/alfresco/web/bean/coci/CCDoneEditingDialog.java b/source/java/org/alfresco/web/bean/coci/CCDoneEditingDialog.java index 3e01db360a..a2c2471a5d 100644 --- a/source/java/org/alfresco/web/bean/coci/CCDoneEditingDialog.java +++ b/source/java/org/alfresco/web/bean/coci/CCDoneEditingDialog.java @@ -21,7 +21,8 @@ public class CCDoneEditingDialog extends CheckinCheckoutDialog { private final static String MSG_DONE = "done"; - private final static String MSG_TITLE = "done_editing_title"; + private final static String MSG_TITLE_VERSIONABLE = "done_editing_title_versionable"; + private final static String MSG_TITLE_NOT_VERSIONABLE = "done_editing_title_not_versionable"; /** * @return Returns label for new version with major changes @@ -58,7 +59,14 @@ public class CCDoneEditingDialog extends CheckinCheckoutDialog @Override public String getContainerTitle() { - return Application.getMessage(FacesContext.getCurrentInstance(), MSG_TITLE) + " '" + property.getDocument().getName() + "'"; + if (property.getDocument().hasAspect(ContentModel.ASPECT_VERSIONABLE)) + { + return Application.getMessage(FacesContext.getCurrentInstance(), MSG_TITLE_VERSIONABLE) + " '" + property.getDocument().getName() + "'"; + } + else + { + return Application.getMessage(FacesContext.getCurrentInstance(), MSG_TITLE_NOT_VERSIONABLE) + " '" + property.getDocument().getName() + "'"; + } } @Override diff --git a/source/web/jsp/coci/done-editing.jsp b/source/web/jsp/coci/done-editing.jsp index 26359eeba7..3a7f65bc34 100644 --- a/source/web/jsp/coci/done-editing.jsp +++ b/source/web/jsp/coci/done-editing.jsp @@ -32,25 +32,48 @@ <%@ page buffer="32kb" contentType="text/html;charset=UTF-8"%> <%@ page isELIgnored="false"%> +<%@page import="org.alfresco.web.ui.common.PanelGenerator"%> + + + + + + + +
+ <% PanelGenerator.generatePanelStart(out, request.getContextPath(), "yellowInner", "#ffffcc"); %> + + + + + +
+ +
+ <% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "yellowInner"); %> +
+
+
+ + -
- + -
- +
- +
- + @@ -59,34 +82,20 @@
- +
- +
- - - - - - - - - -
- -
- -
-
+
+