mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
16798: Fix for ETHREEOH-1305. Null Path error if user clicks on Next Item icon on View Details page. 16800: Fix for ETHREEOH-2884 - Language icon near the content is displayed as "NULL". User can't change any language. 16805: Merged DEV-TEMPORARY to V3.2 16789: ETHREEOH-1895: Performing "Done Editing" action simultaneously leads to NPE 16806: ETHREEOH-1898 - Delete icon missing from Shortcut list in Shelf 16807: Fix for ETHREEOH-2356 - Error message appears when user tries to apply template to locked content. - missed one of the actions with the evaluator wrapping first time around. 16808: Minor javadoc update 16815: XHTML compliance fixes. Dashboard pages etc. now render as fully compliant XHTML again. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16943 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
80 lines
4.2 KiB
Plaintext
80 lines
4.2 KiB
Plaintext
<%--
|
|
* Copyright (C) 2005-2009 Alfresco Software Limited.
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
* As a special exception to the terms and conditions of version 2.0 of
|
|
* the GPL, you may redistribute this Program in connection with Free/Libre
|
|
* and Open Source Software ("FLOSS") applications as described in Alfresco's
|
|
* FLOSS exception. You should have recieved a copy of the text describing
|
|
* the FLOSS exception, and it is also available here:
|
|
* http://www.alfresco.com/legal/licensing
|
|
--%>
|
|
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
|
|
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
|
|
<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
|
|
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
|
|
|
|
|
|
<h:panelGrid columns="1" cellpadding="2" style="padding-top: 4px; padding-bottom: 4px;" width="100%" rowClasses="wizardSectionHeading">
|
|
<h:outputText value="#{msg.ml_common_content_properties}" escape="false" />
|
|
</h:panelGrid>
|
|
|
|
<h:panelGrid columns="3" cellpadding="3" cellspacing="3" border="0">
|
|
<h:graphicImage value="/images/icons/required_field.gif" alt="#{msg.required_field}" />
|
|
<h:outputText value="#{msg.author}:"/>
|
|
<h:inputText id="author" value="#{DialogManager.bean.author}" maxlength="1024" size="35" immediate="false" onkeyup="checkButtonState();" onchange="checkButtonState();" />
|
|
|
|
<%-- language selection drop-down --%>
|
|
<h:graphicImage value="/images/icons/required_field.gif" alt="#{msg.required_field}" />
|
|
<h:outputText value="#{msg.language}:"/>
|
|
<h:selectOneMenu id="language" value="#{DialogManager.bean.language}" immediate="false" onchange="checkButtonState();" onkeydown="checkButtonState();" onkeyup="checkButtonState();">
|
|
<f:selectItem itemLabel="#{msg.select_language}" itemValue=""/>
|
|
<f:selectItems value="#{DialogManager.bean.filterLanguages}"/>
|
|
</h:selectOneMenu>
|
|
</h:panelGrid>
|
|
|
|
<h:panelGrid columns="1" cellpadding="3" cellspacing="3" border="0" style="padding-top: 4px;" width="100%" rowClasses="wizardSectionHeading, paddingRow">
|
|
<h:outputText value="#{msg.ml_other_options}" escape="false" />
|
|
</h:panelGrid>
|
|
|
|
<h:panelGrid style="padding-top: 2px;" columns="2">
|
|
<h:selectBooleanCheckbox id="add_translation" value="#{DialogManager.bean.addTranslationAfter}" onchange="submit();" immediate="false"/>
|
|
<h:outputText value="#{msg.ml_add_trans_when_diag_close}" />
|
|
</h:panelGrid>
|
|
|
|
<h:panelGrid style="padding-top: 2px;" id="panel_adding_mode" >
|
|
<h:panelGrid style="padding-top: 4px;padding-left: 15px;">
|
|
<h:selectOneRadio required="false" value="#{DialogManager.bean.addingMode}" disabled="#{!DialogManager.bean.addTranslationAfter}" immediate="false" id="radioWithContent" layout="pageDirection">
|
|
<f:selectItem itemValue="ADD_WITH_CONTENT" itemLabel="#{msg.ml_with_content}" itemDisabled="#{!DialogManager.bean.addTranslationAfter}"/>
|
|
<f:selectItem itemValue="ADD_WITHOUT_CONTENT" itemLabel="#{msg.ml_just_trans_info}" itemDisabled="#{!DialogManager.bean.addTranslationAfter}"/>
|
|
</h:selectOneRadio>
|
|
</h:panelGrid>
|
|
</h:panelGrid>
|
|
|
|
<script type="text/javascript">
|
|
function checkButtonState()
|
|
{
|
|
if (document.getElementById("dialog:dialog-body:author").value.length == 0 ||
|
|
document.getElementById("dialog:dialog-body:language").selectedIndex == 0 )
|
|
{
|
|
document.getElementById("dialog:finish-button").disabled = true;
|
|
}
|
|
else
|
|
{
|
|
document.getElementById("dialog:finish-button").disabled = false;
|
|
}
|
|
}
|
|
</script> |