mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Completion of dialog and wizard frameworks also converted advanced space wizard and create space dialog to the new frameworks.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2615 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
30
source/web/jsp/spaces/create-space-wizard/create-from.jsp
Normal file
30
source/web/jsp/spaces/create-space-wizard/create-from.jsp
Normal file
@@ -0,0 +1,30 @@
|
||||
<%--
|
||||
Copyright (C) 2005 Alfresco, Inc.
|
||||
|
||||
Licensed under the Mozilla Public License version 1.1
|
||||
with a permitted attribution clause. You may obtain a
|
||||
copy of the License at
|
||||
|
||||
http://www.alfresco.org/legal/license.txt
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
either express or implied. See the License for the specific
|
||||
language governing permissions and limitations under the
|
||||
License.
|
||||
--%>
|
||||
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
|
||||
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
|
||||
|
||||
<h:panelGrid columns="1">
|
||||
<h:outputText value="#{msg.how_to_create_space}"/>
|
||||
<h:selectOneRadio id="create-from" value="#{WizardManager.bean.createFrom}" layout="pageDirection">
|
||||
<f:selectItem itemValue="scratch" itemLabel="#{msg.from_scratch}" />
|
||||
<f:selectItem itemValue="existing" itemLabel="#{msg.based_on_existing_space}" />
|
||||
<f:selectItem itemValue="template" itemLabel="#{msg.using_a_template}" />
|
||||
</h:selectOneRadio>
|
||||
</h:panelGrid>
|
144
source/web/jsp/spaces/create-space-wizard/details.jsp
Normal file
144
source/web/jsp/spaces/create-space-wizard/details.jsp
Normal file
@@ -0,0 +1,144 @@
|
||||
<%--
|
||||
Copyright (C) 2005 Alfresco, Inc.
|
||||
|
||||
Licensed under the Mozilla Public License version 1.1
|
||||
with a permitted attribution clause. You may obtain a
|
||||
copy of the License at
|
||||
|
||||
http://www.alfresco.org/legal/license.txt
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
either express or implied. See the License for the specific
|
||||
language governing permissions and limitations under the
|
||||
License.
|
||||
--%>
|
||||
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
|
||||
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
|
||||
|
||||
<%@ page buffer="32kb" contentType="text/html;charset=UTF-8" %>
|
||||
<%@ page isELIgnored="false" %>
|
||||
<%@ page import="org.alfresco.web.ui.common.PanelGenerator" %>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
window.onload = pageLoaded;
|
||||
|
||||
function pageLoaded()
|
||||
{
|
||||
document.getElementById("wizard:wizard-body:name").focus();
|
||||
checkButtonState();
|
||||
}
|
||||
|
||||
function checkButtonState()
|
||||
{
|
||||
<%--
|
||||
|| (document.getElementById("wizard:wizard-body:saveAsTemplate").checked &&
|
||||
document.getElementById("wizard:wizard-body:templateName").value.length == 0) )
|
||||
--%>
|
||||
if (document.getElementById("wizard:wizard-body:name").value.length == 0)
|
||||
{
|
||||
document.getElementById("wizard:next-button").disabled = true;
|
||||
document.getElementById("wizard:finish-button").disabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById("wizard:next-button").disabled = false;
|
||||
document.getElementById("wizard:finish-button").disabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
function toggleTemplateName()
|
||||
{
|
||||
document.getElementById('wizard:wizard-body:templateName').disabled =
|
||||
!document.getElementById('wizard:wizard-body:saveAsTemplate').checked;
|
||||
|
||||
if (document.getElementById('wizard:wizard-body:templateName').disabled == false)
|
||||
{
|
||||
document.getElementById('wizard:wizard-body:templateName').focus();
|
||||
}
|
||||
|
||||
checkButtonState();
|
||||
}
|
||||
</script>
|
||||
|
||||
<f:verbatim>
|
||||
<table cellpadding="3" cellspacing="2" border="0" width="100%">
|
||||
<tr>
|
||||
<td colspan="2" class="wizardSectionHeading">
|
||||
</f:verbatim>
|
||||
<h:outputText value="#{msg.title_space_details}"/>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
</f:verbatim>
|
||||
<h:outputText value="#{msg.name}:"/>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
<td>
|
||||
</f:verbatim>
|
||||
<h:inputText id="name" value="#{WizardManager.bean.name}" size="35" maxlength="1024"
|
||||
onkeyup="javascript:checkButtonState();" />
|
||||
<f:verbatim> *
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
</f:verbatim>
|
||||
<h:outputText value="#{msg.description}:"/>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
<td>
|
||||
</f:verbatim>
|
||||
<h:inputText id="description" value="#{WizardManager.bean.description}" size="35" maxlength="1024" />
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="wizardSectionHeading"> </f:verbatim>
|
||||
<h:outputText value="#{msg.other_options}"/>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
</f:verbatim>
|
||||
<h:outputText value="#{msg.choose_space_icon}:"/>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
<td>
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
</f:verbatim>
|
||||
<a:imagePickerRadio id="space-icon" columns="6" spacing="4" value="#{WizardManager.bean.icon}">
|
||||
<a:listItems value="#{WizardManager.bean.icons}" />
|
||||
</a:imagePickerRadio>
|
||||
<f:verbatim>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
</tr>
|
||||
<%--
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<h:selectBooleanCheckbox id="saveAsTemplate" value="#{WizardManager.bean.saveAsTemplate}"
|
||||
onclick="javascript:toggleTemplateName();" />
|
||||
<span style="vertical-align:20%"><h:outputText value="#{msg.save_as_template}"/></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="middle"><h:outputText value="#{msg.name}"/>:</td>
|
||||
<td>
|
||||
<h:inputText id="templateName" value="#{WizardManager.bean.templateName}"
|
||||
size="35" disabled="#{!WizardManager.bean.saveAsTemplate}"
|
||||
onkeyup="javascript:checkButtonState();" maxlength="1024" />
|
||||
*
|
||||
</td>
|
||||
</tr>
|
||||
--%>
|
||||
</table>
|
||||
</f:verbatim>
|
66
source/web/jsp/spaces/create-space-wizard/from-existing.jsp
Normal file
66
source/web/jsp/spaces/create-space-wizard/from-existing.jsp
Normal file
@@ -0,0 +1,66 @@
|
||||
<%--
|
||||
Copyright (C) 2005 Alfresco, Inc.
|
||||
|
||||
Licensed under the Mozilla Public License version 1.1
|
||||
with a permitted attribution clause. You may obtain a
|
||||
copy of the License at
|
||||
|
||||
http://www.alfresco.org/legal/license.txt
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
either express or implied. See the License for the specific
|
||||
language governing permissions and limitations under the
|
||||
License.
|
||||
--%>
|
||||
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
|
||||
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
|
||||
|
||||
<f:verbatim>
|
||||
<table cellpadding="3" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="wizardSectionHeading">
|
||||
</f:verbatim>
|
||||
<h:outputText value="#{msg.existing_space}"/>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
</f:verbatim>
|
||||
<r:spaceSelector id="space-selector" label="#{msg.select_existing_space_prompt}"
|
||||
value="#{WizardManager.bean.existingSpaceId}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
styleClass="selector" />
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
<%-- TBD
|
||||
<tr><td class="paddingRow" /></tr>
|
||||
<tr>
|
||||
<td><h:outputText value="#{msg.copy_existing_space}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<h:selectOneRadio value="#{NewSpaceWizard.copyPolicy}" layout="pageDirection">
|
||||
<f:selectItem itemValue="structure" itemLabel="#{msg.structure}" />
|
||||
<f:selectItem itemValue="contents" itemLabel="#{msg.structure_contents}" />
|
||||
</h:selectOneRadio>
|
||||
</td>
|
||||
</tr>
|
||||
--%>
|
||||
<tr><td class="paddingRow" /></tr>
|
||||
<tr>
|
||||
<td>
|
||||
</f:verbatim>
|
||||
<h:outputText value="#{msg.space_copy_note}"/>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</f:verbatim>
|
77
source/web/jsp/spaces/create-space-wizard/from-scratch.jsp
Normal file
77
source/web/jsp/spaces/create-space-wizard/from-scratch.jsp
Normal file
@@ -0,0 +1,77 @@
|
||||
<%--
|
||||
Copyright (C) 2005 Alfresco, Inc.
|
||||
|
||||
Licensed under the Mozilla Public License version 1.1
|
||||
with a permitted attribution clause. You may obtain a
|
||||
copy of the License at
|
||||
|
||||
http://www.alfresco.org/legal/license.txt
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
either express or implied. See the License for the specific
|
||||
language governing permissions and limitations under the
|
||||
License.
|
||||
--%>
|
||||
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
|
||||
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
|
||||
|
||||
<%@ page import="org.alfresco.web.ui.common.PanelGenerator" %>
|
||||
|
||||
<f:verbatim>
|
||||
<table cellpadding="3" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
</f:verbatim>
|
||||
<h:outputText value="#{msg.space_type_create}"/>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
</f:verbatim>
|
||||
<a:imagePickerRadio id="space-type" columns="4" spacing="4" value="#{WizardManager.bean.spaceType}"
|
||||
onclick="javascript:itemSelected(this);">
|
||||
<a:listItems value="#{WizardManager.bean.folderTypes}" />
|
||||
</a:imagePickerRadio>
|
||||
<f:verbatim>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "white", "white"); %>
|
||||
<table border='0'>
|
||||
<tr>
|
||||
<td valign='top'>
|
||||
</f:verbatim>
|
||||
<h:graphicImage id="info-icon" url="/images/icons/info_icon.gif" />
|
||||
<f:verbatim>
|
||||
</td>
|
||||
<td valign='top' align='left'>
|
||||
</f:verbatim>
|
||||
<a:dynamicDescription selected="#{WizardManager.bean.spaceType}">
|
||||
<a:descriptions value="#{WizardManager.bean.folderTypeDescriptions}" />
|
||||
</a:dynamicDescription>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "white"); %>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
</f:verbatim>
|
||||
<h:outputText value="#{msg.space_type_note}"/>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</f:verbatim>
|
95
source/web/jsp/spaces/create-space-wizard/from-template.jsp
Normal file
95
source/web/jsp/spaces/create-space-wizard/from-template.jsp
Normal file
@@ -0,0 +1,95 @@
|
||||
<%--
|
||||
Copyright (C) 2005 Alfresco, Inc.
|
||||
|
||||
Licensed under the Mozilla Public License version 1.1
|
||||
with a permitted attribution clause. You may obtain a
|
||||
copy of the License at
|
||||
|
||||
http://www.alfresco.org/legal/license.txt
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
either express or implied. See the License for the specific
|
||||
language governing permissions and limitations under the
|
||||
License.
|
||||
--%>
|
||||
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
|
||||
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
window.onload = pageLoaded;
|
||||
|
||||
function pageLoaded()
|
||||
{
|
||||
checkButtonState( document.getElementById("wizard:wizard-body:template-space-id") );
|
||||
}
|
||||
|
||||
function checkButtonState(inputField)
|
||||
{
|
||||
if (inputField.selectedIndex == 0)
|
||||
{
|
||||
document.getElementById("wizard:next-button").disabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById("wizard:next-button").disabled = false;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<f:verbatim>
|
||||
<table cellpadding="3" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="wizardSectionHeading">
|
||||
</f:verbatim>
|
||||
<h:outputText value="#{msg.template_space}"/>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
</f:verbatim>
|
||||
<h:outputText value="#{msg.select_template}"/>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
</f:verbatim>
|
||||
<h:selectOneMenu id="template-space-id" value="#{WizardManager.bean.templateSpaceId}"
|
||||
onchange="javascript:checkButtonState(this);">
|
||||
<f:selectItems value="#{WizardManager.bean.templateSpaces}" />
|
||||
</h:selectOneMenu>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
<%-- TBD
|
||||
<tr><td class="paddingRow" /></tr>
|
||||
<tr>
|
||||
<td><h:outputText value="#{msg.copy_existing_space}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<h:selectOneRadio value="#{NewSpaceWizard.copyPolicy}" layout="pageDirection">
|
||||
<f:selectItem itemValue="structure" itemLabel="#{msg.structure}" />
|
||||
<f:selectItem itemValue="contents" itemLabel="#{msg.structure_contents}" />
|
||||
</h:selectOneRadio>
|
||||
</td>
|
||||
</tr>
|
||||
--%>
|
||||
<tr><td class="details-separator" /></tr>
|
||||
<tr>
|
||||
<td>
|
||||
</f:verbatim>
|
||||
<h:outputText value="#{msg.space_copy_note}"/>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</f:verbatim>
|
Reference in New Issue
Block a user