mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
5456: (From WCM_DEPLOY) There were many pure conflicts on license headers, one conflict due to CR-LF and some other smaller issues to resolve: ----------------------------------------- Resolved (line endings not cr-lf): root\projects\repository\config\alfresco\public-services-context.xml Reverted: root\projects\web-client\source\web\images\icons\ajax_anim.gif Reverted or Resolved (License text conflicts): svn revert root\projects\jndi-client\source\java\org\alfresco\jndi\JndiTest.java svn resolved root\projects\jndi-client\source\java\org\alfresco\jndi\AVMFileDirContext.java svn revert root\projects\jndi-client\source\java\org\alfresco\jndi\AVMBulkLoader.java svn revert root\projects\jndi-client\source\java\org\alfresco\filter\CacheControlFilter.java svn revert root\projects\jndi-client\source\java\org\alfresco\filter\CacheControlFilterInfoBean.java svn revert -R root\projects\catalina-virtual\source\java\org\alfresco\mbeans svn revert root\projects\catalina-virtual\source\java\org\alfresco\catalina\context\AVMStandardContext.java svn revert root\projects\catalina-virtual\source\java\org\alfresco\catalina\loader\AVMWebappClassLoader.java svn revert root\projects\catalina-virtual\source\java\org\alfresco\catalina\loader\AVMWebappLoader.java svn revert root\projects\catalina-virtual\source\java\org\alfresco\catalina\host\AVMResourceBinding.java svn resolved root\projects\catalina-virtual\source\java\org\alfresco\catalina\host\AVMHostConfig.java - why the change in method naming convention? svn resolved root\projects\catalina-virtual\source\java\org\alfresco\catalina\host\AVMHost.java svn revert root\projects\catalina-virtual\source\java\org\alfresco\catalina\host\DefaultAVMResourceBinding.java svn revert root\projects\catalina-virtual\source\java\org\alfresco\catalina\valve\AVMUrlValveTest.java svn resolved root\projects\catalina-virtual\source\java\org\alfresco\catalina\valve\AVMUrlValve.java svn revert root\projects\catalina-virtual\source\java\org\alfresco\catalina\host\AVMHostMatch.java Modified: root\projects\web-client\source\java\org\alfresco\web\ui\wcm\component\UIDeployWebsite.java (Kevin to check line 330) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5484 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
225 lines
9.7 KiB
Plaintext
225 lines
9.7 KiB
Plaintext
<%--
|
|
* Copyright (C) 2005-2007 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
|
|
* 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" %>
|
|
<%@ page import="org.alfresco.web.bean.wcm.CreateFormWizard" %>
|
|
<%@ page import="org.alfresco.web.ui.common.PanelGenerator" %>
|
|
<f:verbatim>
|
|
<script type="text/javascript"
|
|
src="<%=request.getContextPath()%>/scripts/validation.js">
|
|
</script>
|
|
<script type="text/javascript"
|
|
src="<%=request.getContextPath()%>/scripts/upload_helper.js">
|
|
</script>
|
|
|
|
<script type="text/javascript">
|
|
var finishButtonPressed = false;
|
|
window.onload = pageLoaded;
|
|
|
|
function pageLoaded()
|
|
{
|
|
if (document.getElementById("wizard:wizard-body:file-input"))
|
|
document.getElementById("wizard:wizard-body:file-input").focus()
|
|
else
|
|
document.getElementById("wizard:wizard-body:form-name").focus();
|
|
document.getElementById("wizard").onsubmit = validate;
|
|
document.getElementById("wizard:next-button").onclick = function() {finishButtonPressed = true; clear_wizard();}
|
|
document.getElementById("wizard:finish-button").onclick = function() {finishButtonPressed = true; clear_wizard();}
|
|
}
|
|
|
|
function validate()
|
|
{
|
|
if (!finishButtonPressed)
|
|
return true;
|
|
finishButtonPressed = false;
|
|
var formName = document.getElementById("wizard:wizard-body:form-name");
|
|
return validateMandatory(formName) &&
|
|
validateName(formName,
|
|
'</f:verbatim><a:outputText value="#{msg.validation_invalid_character}" /><f:verbatim>',
|
|
true)
|
|
}
|
|
|
|
function handle_upload(target)
|
|
{
|
|
handle_upload_helper(target,
|
|
"<%= CreateFormWizard.FILE_SCHEMA %>",
|
|
upload_complete,
|
|
"<%= request.getContextPath() %>")
|
|
}
|
|
|
|
function upload_complete(id, path, filename)
|
|
{
|
|
var schema_file_input =
|
|
document.getElementById("wizard:wizard-body:schema-file");
|
|
schema_file_input.value = filename;
|
|
schema_file_input.form.submit();
|
|
}
|
|
</script>
|
|
</f:verbatim>
|
|
|
|
<h:inputText id="schema-file"
|
|
value="#{WizardManager.bean.schemaFileName}"
|
|
immediate="true"
|
|
style="display:none;"
|
|
valueChangeListener="#{WizardManager.bean.schemaFileValueChanged}"/>
|
|
|
|
<h:panelGrid id="panel_grid_1"
|
|
columns="1" cellpadding="2"
|
|
style="padding-top: 4px; padding-bottom: 4px;"
|
|
width="100%" rowClasses="wizardSectionHeading">
|
|
<h:outputText id="panel_grid_1_out_1"
|
|
value=" #{msg.general_properties}" escape="false" />
|
|
</h:panelGrid>
|
|
|
|
<h:panelGrid id="panel_grid_2"
|
|
columns="1" cellpadding="3" cellspacing="3" border="0" width="100%">
|
|
<h:outputText id="step-1-text"
|
|
value="1. #{msg.create_form_form_details_step1_desc}"
|
|
escape="false" />
|
|
|
|
<h:panelGrid id="schema_panel_grid"
|
|
columns="4"
|
|
cellpadding="3"
|
|
cellspacing="3"
|
|
border="0"
|
|
width="100%"
|
|
columnClasses="panelGridRequiredImageColumn,panelGridLabelColumn,panelGridValueColumn,panelGridRequiredImageColumn">
|
|
<h:graphicImage id="img_schema"
|
|
value="/images/icons/required_field.gif" alt="#{msg.required_field}" />
|
|
<h:outputText id="out_schema"
|
|
value="#{msg.schema}:"/>
|
|
<h:column id="column_schema_empty"
|
|
rendered="#{empty WizardManager.bean.schemaFileName}">
|
|
<f:verbatim><input id="wizard:wizard-body:file-input"
|
|
type="file"
|
|
size="35"
|
|
name="alfFileInput"
|
|
onchange="javascript:handle_upload(this)"/></f:verbatim>
|
|
</h:column>
|
|
<h:column id="column_schema_not_empty"
|
|
rendered="#{!empty WizardManager.bean.schemaFileName}">
|
|
<h:outputText id="out_schema_name"
|
|
value="#{WizardManager.bean.schemaFileName}"/>
|
|
<h:outputText id="out_schema_space"
|
|
value=" "
|
|
escape="false"/>
|
|
<a:actionLink id="action_link_remove_schema"
|
|
image="/images/icons/delete.gif"
|
|
value="#{msg.remove}"
|
|
action="#{WizardManager.bean.removeUploadedSchemaFile}"
|
|
showLink="false"
|
|
target="top"/>
|
|
</h:column>
|
|
<h:column id="no_img_schema_help"/>
|
|
|
|
<h:column id="no_img_root_element_name"/>
|
|
<h:outputText id="out_root_element_name" value="#{msg.schema_root_element_name}:"/>
|
|
<h:selectOneMenu id="schema-root-element-name"
|
|
disabled="#{WizardManager.bean.schemaFileName == null}"
|
|
style="width:100%;"
|
|
value="#{WizardManager.bean.schemaRootElementName}"
|
|
rendered="#{!empty WizardManager.bean.schemaRootElementNameChoices}">
|
|
<f:selectItems id="schema-root-element-name-choices"
|
|
value="#{WizardManager.bean.schemaRootElementNameChoices}"/>
|
|
</h:selectOneMenu>
|
|
<h:outputText id="schema-root-element-name-no-schema"
|
|
rendered="#{empty WizardManager.bean.schemaRootElementNameChoices && empty WizardManager.bean.schemaFileName}"
|
|
value="#{msg.create_form_form_details_no_schema_selected}"/>
|
|
<h:panelGroup id="schema-root-element-name-no-choices"
|
|
rendered="#{empty WizardManager.bean.schemaRootElementNameChoices && !empty WizardManager.bean.schemaFileName}">
|
|
<f:verbatim><% PanelGenerator.generatePanelStart(out, request.getContextPath(), "yellowInner", "#ffffcc"); %></f:verbatim>
|
|
<h:panelGrid columns="2" cellpadding="0" cellpadding="0">
|
|
<h:graphicImage url="/images/icons/warning.gif" style="padding-top:2px;padding-right:4px" width="16" height="16"/>
|
|
<h:outputText styleClass="mainSubText" value="#{msg.create_form_form_details_no_elements_in_schema}"/>
|
|
</h:panelGrid>
|
|
<f:verbatim><% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "yellowInner"); %></f:verbatim>
|
|
</h:panelGroup>
|
|
<%-- we need to include this invisible image in order to get the column to size correctly --%>
|
|
<h:graphicImage id="invisible_img_schema_root_element_name_choices_help"
|
|
value="/images/icons/Help_icon.gif" style="cursor:help; visibility: hidden;"/>
|
|
</h:panelGrid>
|
|
|
|
<h:outputText id="step-2-text" value="2. #{msg.create_form_form_details_step2_desc}" escape="false" />
|
|
|
|
<h:panelGrid id="details_panel_grid"
|
|
columns="4"
|
|
cellpadding="3"
|
|
cellspacing="3"
|
|
border="0"
|
|
columnClasses="panelGridRequiredImageColumn,panelGridLabelColumn,panelGridValueColumn,panelGridRequiredImageColumn">
|
|
width="100%">
|
|
|
|
<h:graphicImage id="img_name"
|
|
value="/images/icons/required_field.gif"
|
|
alt="#{msg.required_field}" />
|
|
<h:outputText id="out_name" value="#{msg.name}:"/>
|
|
<h:inputText id="form-name"
|
|
disabled="#{WizardManager.bean.schemaFileName == null}"
|
|
value="#{WizardManager.bean.formName}"
|
|
maxlength="1024"
|
|
size="35"/>
|
|
<h:column id="no_img_name_help"/>
|
|
|
|
<h:column id="no_img_title"/>
|
|
<h:outputText id="out_title" value="#{msg.title}:"/>
|
|
<h:inputText id="form-title"
|
|
disabled="#{WizardManager.bean.schemaFileName == null}"
|
|
value="#{WizardManager.bean.formTitle}"
|
|
maxlength="1024"
|
|
size="35"/>
|
|
<h:column id="no_img_title_help"/>
|
|
|
|
<h:column id="no_img_description"/>
|
|
<h:outputText id="out_description" value="#{msg.description}:"/>
|
|
<h:inputText id="form-description"
|
|
disabled="#{WizardManager.bean.schemaFileName == null}"
|
|
value="#{WizardManager.bean.formDescription}"
|
|
maxlength="1024"
|
|
style="width:100%"/>
|
|
<h:outputText id="no_img_description_help" value=""/>
|
|
|
|
<h:graphicImage id="img_form_instance_data_output_path_pattern"
|
|
value="/images/icons/required_field.gif"
|
|
alt="#{msg.required_field}" />
|
|
<h:outputText id="out_form_instance_data_output_path_pattern"
|
|
value="#{msg.output_path_pattern}:"/>
|
|
<h:inputText id="form_instance_data_output_path_pattern"
|
|
disabled="#{WizardManager.bean.schemaFileName == null}"
|
|
value="#{WizardManager.bean.outputPathPatternForFormInstanceData}"
|
|
style="width:100%"/>
|
|
<h:graphicImage id="img_form_instance_data_output_path_pattern_help"
|
|
value="/images/icons/Help_icon.gif" style="cursor:help"
|
|
onclick="javascript:toggleOutputPathPatternHelp()" />
|
|
|
|
<h:column id="output_path_pattern_help_empty_col_1"/>
|
|
<h:column id="output_path_pattern_help_empty_col_2"/>
|
|
<f:verbatim>
|
|
<jsp:directive.include file="/jsp/wcm/output-path-pattern-help.jsp"/>
|
|
</f:verbatim>
|
|
<h:column id="output_path_pattern_help_empty_col_3"/>
|
|
|
|
</h:panelGrid>
|
|
</h:panelGrid>
|