mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
converted new rule/run action wizard to new framework
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2734 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -32,7 +32,7 @@ editcategory_description=Set the category for the document then click OK.
|
||||
editworkflow_description=Modify the simple workflow properties then click OK.
|
||||
editspace_description=Modify the space properties then click OK.
|
||||
editlink_description=Modify the link object properties then click OK.
|
||||
newspace_description=Enter information about the new space then click Create Space.
|
||||
create_space_description=Enter information about the new space then click Create Space.
|
||||
space_rules_description=This view shows you all the rules to be applied to content in this space.
|
||||
warning_inline=This is only recommended for HTML or plain text documents.
|
||||
categories_description=This view allows you to browse and modify the categories hiearchy.
|
||||
@@ -216,7 +216,7 @@ delete_file=Delete File
|
||||
delete_rule=Delete Rule
|
||||
delete_user=Delete User
|
||||
remove_user=Remove User
|
||||
new_space=Create Space
|
||||
create_space=Create Space
|
||||
add_content=Add Content
|
||||
create_content=Create Content
|
||||
add_multiple_files=Add Multiple Files
|
||||
@@ -609,20 +609,19 @@ text_content=Plain Text Content
|
||||
html_content=HTML Content
|
||||
|
||||
# Rule and Action Wizard messages
|
||||
create_action_title=Custom Action Wizard
|
||||
create_action_desc=This wizard helps you create a custom action for
|
||||
create_action_step1_title=Step One - Select Action
|
||||
create_action_step2_title=Step Two - Action Settings
|
||||
create_action_finish_instruction=To execute the action click Finish. To review or change your selections click Back.
|
||||
new_rule_title=New Rule Wizard
|
||||
new_rule_title_edit=Edit Rule Wizard
|
||||
new_rule_desc=This wizard helps you create a new rule.
|
||||
new_rule_desc_edit=This wizard helps you modify a rule.
|
||||
new_rule_step1_title=Step One - Enter Details
|
||||
new_rule_step2_title=Step Two - Select Conditions
|
||||
new_rule_step3_title=Step Three - Select Actions
|
||||
new_rule_finish_instruction=To create the rule click Finish. To review or change your selections click Back.
|
||||
new_rule_finish_instruction_edit=To update the rule click Finish. To review or change your selections click Back.
|
||||
run_action_title=Run Action Wizard
|
||||
run_action_desc=This wizard helps you run an action
|
||||
run_action_step1_title=Step One - Select Actions
|
||||
run_action_finish_instruction=To execute the action click Finish. To review or change your selections click Back.
|
||||
create_rule_title=Create Rule Wizard
|
||||
create_rule_desc=This wizard helps you create a new rule.
|
||||
create_rule_step1_title=Step One - Select Conditions
|
||||
create_rule_step2_title=Step Two - Select Actions
|
||||
create_rule_step3_title=Step Three - Enter Details
|
||||
create_rule_finish_instruction=To create the rule click Finish. To review or change your selections click Back.
|
||||
edit_rule_title=Edit Rule Wizard
|
||||
edit_rule_desc=This wizard helps you modify a rule.
|
||||
edit_rule_finish_instruction=To update the rule click Finish. To review or change your selections click Back.
|
||||
select_action=Select Action
|
||||
select_an_action=Select an action...
|
||||
action=Action
|
||||
@@ -704,16 +703,16 @@ email_message=Email message
|
||||
insert_template=Insert Template
|
||||
discard_template=Discard Template
|
||||
|
||||
# New Space Wizard messages
|
||||
new_space_title=New Space Wizard
|
||||
new_space_desc=This wizard helps you to create a new space.
|
||||
new_space_step1_title=Step One - Starting Space
|
||||
new_space_step1_desc=Choose how you want to create your space.
|
||||
new_space_step2_title=Step Two - Space Options
|
||||
new_space_step2_desc=Select space options.
|
||||
new_space_step3_title=Step Three - Space Details
|
||||
new_space_step3_desc=Enter information about the space.
|
||||
new_space_finish_instruction=To close this wizard and create your space click Finish. To review or change your selections click Back.
|
||||
# Create Space Wizard messages
|
||||
create_space_title=Create Space Wizard
|
||||
create_space_desc=This wizard helps you to create a new space.
|
||||
create_space_step1_title=Step One - Starting Space
|
||||
create_space_step1_desc=Choose how you want to create your space.
|
||||
create_space_step2_title=Step Two - Space Options
|
||||
create_space_step2_desc=Select space options.
|
||||
create_space_step3_title=Step Three - Space Details
|
||||
create_space_step3_desc=Enter information about the space.
|
||||
create_space_finish_instruction=To close this wizard and create your space click Finish. To review or change your selections click Back.
|
||||
scratch=Scratch
|
||||
an_existing_space=An existing space
|
||||
a_template=A template
|
||||
@@ -852,43 +851,24 @@ title_add_content_upload=Add Content - Upload
|
||||
title_create_content=Create New Content
|
||||
title_create_content_props=Create New Content - Properties
|
||||
title_create_content_summary=Create New Content - Summary
|
||||
title_create_action_action=Create Action - Select Action
|
||||
title_create_action_add_feature=Create Action - Add Features
|
||||
title_create_action_remove_feature=Create Action - Remove Features
|
||||
title_create_action_checkin=Create Action - Check In
|
||||
title_create_action_checkout=Create Action - Check Out
|
||||
title_create_action_copy=Create Action - Copy
|
||||
title_create_action_import=Create Action - Import
|
||||
title_create_action_email=Create Action - Email
|
||||
title_create_action_link_category=Create Action - Link Category
|
||||
title_create_action_move=Create Action - Move
|
||||
title_create_action_simple_workflow=Create Action - Simple Workflow
|
||||
title_create_action_transform=Create Action - Transform
|
||||
title_create_action_transform_image=Create Action - Transform Image
|
||||
title_create_specialise_action=Create Action - Specialise Type
|
||||
title_create_action_summary=Create Action - Summary
|
||||
title_new_rule_action=New Rule - Select Action
|
||||
title_new_rule_add_feature=New Rule - Add Features
|
||||
title_new_rule_remove_feature=New Rule - Remove Features
|
||||
title_specialise_type_action=New Rule - Specialise Type
|
||||
title_new_rule_checkin=New Rule - Check In
|
||||
title_new_rule_checkout=New Rule - Check Out
|
||||
title_new_rule_copy=New Rule - Copy
|
||||
title_new_rule_email=New Rule - Email
|
||||
title_new_rule_link_category=New Rule - Link Category
|
||||
title_new_rule_move=New Rule - Move
|
||||
title_new_rule_simple_workflow=New Rule - Simple Workflow
|
||||
title_new_rule_transform=New Rule - Transform
|
||||
title_new_rule_transform_image=New Rule - Transform Image
|
||||
title_new_rule_import=New Rule - Import
|
||||
title_new_rule_condition=New Rule - Conditions
|
||||
title_new_rule_cond_contains=New Rule - Contains Text
|
||||
title_new_rule_cond_mimetype=New Rule - Has Mimetype
|
||||
title_new_rule_cond_category=New Rule - In Category
|
||||
title_new_rule_cond_subtype=New Rule - Is Subtype
|
||||
title_new_rule_cond_aspect=New Rule - Has Subtype
|
||||
title_new_rule_details=New Rule - Details
|
||||
title_new_rule_summary=New Rule - Summary
|
||||
title_action_add_feature=Add Feature Action
|
||||
title_action_remove_feature=Remove Feature Action
|
||||
title_action_checkin=Check In Action
|
||||
title_action_checkout=Check Out Action
|
||||
title_action_copy=Copy Action
|
||||
title_action_move=Move Action
|
||||
title_action_import=Import Action
|
||||
title_action_email=Email Action
|
||||
title_action_link_category=Link Category Action
|
||||
title_action_simple_workflow=Simple Workflow Action
|
||||
title_action_transform=Transform Action
|
||||
title_action_transform_image=Transform Image Action
|
||||
title_action_specialise_type=Specialise Type Action
|
||||
title_condition_contains_text=Contains Text Condition
|
||||
title_condition_has_mimetype=Has Mimetype Condition
|
||||
title_condition_in_category=In Category Condition
|
||||
title_condition_is_subtype=Is Subtype Condition
|
||||
title_condition_has_aspect=Has Aspect Condition
|
||||
title_new_user_person_props=User - Person Properties
|
||||
title_new_user_user_props=User - User Properties
|
||||
title_new_user_summary=User - Summary
|
||||
@@ -936,7 +916,7 @@ error_paste=Unable to paste item due to system error:
|
||||
error_login_user=Unable to login - unknown username/password.
|
||||
error_login_missing=Must specify username and password.
|
||||
error_delete_rule=Unable to delete Rule due to system error:
|
||||
error_action=Failed to run Action due to error: {0}
|
||||
error_actions=Failed to run Actions due to error: {0}
|
||||
error_rule=Failed to create Rule due to error: {0}
|
||||
error_space=Failed to create new space due to error: {0}
|
||||
error_person=Failed to create Person due to error: {0}
|
||||
|
@@ -327,7 +327,7 @@
|
||||
<permissions>
|
||||
<permission allow="true">CreateChildren</permission>
|
||||
</permissions>
|
||||
<label-id>new_space</label-id>
|
||||
<label-id>create_space</label-id>
|
||||
<image>/images/icons/create_space.gif</image>
|
||||
<action>dialog:createSpace</action>
|
||||
<!-- <action-listener>#{NewSpaceDialog.startWizard}</action-listener> -->
|
||||
@@ -421,8 +421,7 @@
|
||||
<action id="run_action">
|
||||
<label-id>other_action</label-id>
|
||||
<image>/images/icons/action.gif</image>
|
||||
<action>createAction</action>
|
||||
<action-listener>#{NewActionWizard.startWizard}</action-listener>
|
||||
<action>wizard:runAction</action>
|
||||
</action>
|
||||
|
||||
<!-- Import into Space -->
|
||||
|
@@ -5,8 +5,8 @@
|
||||
|
||||
<dialogs>
|
||||
<dialog name="createSpace" page="/jsp/spaces/create-space-dialog.jsp" managed-bean="CreateSpaceDialog"
|
||||
icon="/images/icons/create_space_large.gif" title-id="new_space"
|
||||
description-id="newspace_description" />
|
||||
icon="/images/icons/create_space_large.gif" title-id="create_space"
|
||||
description-id="create_space_description" />
|
||||
|
||||
<dialog name="editSpace" page="/jsp/spaces/edit-space-dialog.jsp" managed-bean="EditSpaceDialog"
|
||||
icon="/images/icons/create_space_large.gif" title-id="modify_space_properties"
|
||||
|
@@ -7,48 +7,95 @@
|
||||
|
||||
<!-- Definition of an advanced space wizard -->
|
||||
<wizard name="createSpace" managed-bean="CreateSpaceWizard"
|
||||
title-id="new_space_title" description-id="new_space_desc"
|
||||
title-id="create_space_title" description-id="create_space_desc"
|
||||
icon="/images/icons/create_space_large.gif">
|
||||
<step name="create-from" title-id="starting_space" description-id="new_space_step1_desc">
|
||||
<step name="create-from" title-id="starting_space" description-id="create_space_step1_desc">
|
||||
<page path="/jsp/spaces/create-space-wizard/create-from.jsp"
|
||||
title-id="new_space_step1_title"
|
||||
description-id="new_space_step1_desc"
|
||||
title-id="create_space_step1_title"
|
||||
description-id="create_space_step1_desc"
|
||||
instruction-id="default_instruction" />
|
||||
</step>
|
||||
<step name="options" title-id="space_options" description-id="new_space_step2_desc">
|
||||
<step name="options" title-id="space_options" description-id="create_space_step2_desc">
|
||||
<condition if="#{CreateSpaceWizard.createFrom == 'scratch'}">
|
||||
<page path="/jsp/spaces/create-space-wizard/from-scratch.jsp"
|
||||
title-id="new_space_step2_title"
|
||||
description-id="new_space_step2_desc"
|
||||
title-id="create_space_step2_title"
|
||||
description-id="create_space_step2_desc"
|
||||
instruction-id="default_instruction" />
|
||||
</condition>
|
||||
<condition if="#{CreateSpaceWizard.createFrom == 'existing'}">
|
||||
<page path="/jsp/spaces/create-space-wizard/from-existing.jsp"
|
||||
title-id="new_space_step2_title"
|
||||
description-id="new_space_step2_desc"
|
||||
title-id="create_space_step2_title"
|
||||
description-id="create_space_step2_desc"
|
||||
instruction-id="default_instruction" />
|
||||
</condition>
|
||||
<condition if="#{CreateSpaceWizard.createFrom == 'template'}">
|
||||
<page path="/jsp/spaces/create-space-wizard/from-template.jsp"
|
||||
title-id="new_space_step2_title"
|
||||
description-id="new_space_step2_desc"
|
||||
title-id="create_space_step2_title"
|
||||
description-id="create_space_step2_desc"
|
||||
instruction-id="default_instruction" />
|
||||
</condition>
|
||||
</step>
|
||||
<step name="details" title-id="space_details" description-id="new_space_step3_desc">
|
||||
<step name="details" title-id="space_details" description-id="create_space_step3_desc">
|
||||
<page path="/jsp/spaces/create-space-wizard/details.jsp"
|
||||
title-id="new_space_step3_title"
|
||||
description-id="new_space_step3_desc"
|
||||
title-id="create_space_step3_title"
|
||||
description-id="create_space_step3_desc"
|
||||
instruction-id="default_instruction" />
|
||||
</step>
|
||||
<step name="summary" title-id="summary" description-id="summary_desc">
|
||||
<page path="/jsp/wizard/summary.jsp"
|
||||
title-id="summary"
|
||||
description-id="summary_desc"
|
||||
instruction-id="new_space_finish_instruction" />
|
||||
instruction-id="create_space_finish_instruction" />
|
||||
</step>
|
||||
</wizard>
|
||||
|
||||
<!-- Definition of the run action wizard -->
|
||||
<wizard name="runAction" managed-bean="RunActionWizard"
|
||||
title-id="run_action_title" description-id="run_action_desc"
|
||||
icon="/images/icons/new_rule_large.gif">
|
||||
<step name="actions" title-id="actions" description="">
|
||||
<page path="/jsp/actions/actions.jsp"
|
||||
title-id="run_action_step1_title"
|
||||
description=""
|
||||
instruction-id="default_instruction" />
|
||||
</step>
|
||||
<step name="summary" title-id="summary" description-id="summary_desc">
|
||||
<page path="/jsp/wizard/summary.jsp"
|
||||
title-id="summary"
|
||||
description-id="summary_desc"
|
||||
instruction-id="run_action_finish_instruction" />
|
||||
</step>
|
||||
</wizard>
|
||||
|
||||
<!-- Definition of the create rule wizard -->
|
||||
<wizard name="createRule" managed-bean="CreateRuleWizard"
|
||||
title-id="create_rule_title" description-id="create_rule_desc"
|
||||
icon="/images/icons/new_rule_large.gif">
|
||||
<step name="conditions" title-id="conditions" description="">
|
||||
<page path="/jsp/rules/conditions.jsp"
|
||||
title-id="create_rule_step1_title"
|
||||
description=""
|
||||
instruction-id="default_instruction" />
|
||||
</step>
|
||||
<step name="actions" title-id="actions" description="">
|
||||
<page path="/jsp/actions/actions.jsp"
|
||||
title-id="create_rule_step2_title"
|
||||
description=""
|
||||
instruction-id="default_instruction" />
|
||||
</step>
|
||||
<step name="details" title-id="details" description="">
|
||||
<page path="/jsp/rules/details.jsp"
|
||||
title-id="create_rule_step3_title"
|
||||
description=""
|
||||
instruction-id="default_instruction" />
|
||||
</step>
|
||||
<step name="summary" title-id="summary" description-id="summary_desc">
|
||||
<page path="/jsp/wizard/summary.jsp"
|
||||
title-id="summary"
|
||||
description-id="summary_desc"
|
||||
instruction-id="create_rule_finish_instruction" />
|
||||
</step>
|
||||
</wizard>
|
||||
</wizards>
|
||||
</config>
|
||||
|
||||
|
@@ -44,10 +44,10 @@ import org.alfresco.service.namespace.QName;
|
||||
import org.alfresco.web.app.Application;
|
||||
import org.alfresco.web.app.context.UIContextService;
|
||||
import org.alfresco.web.app.servlet.DownloadContentServlet;
|
||||
import org.alfresco.web.bean.actions.BaseActionWizard;
|
||||
import org.alfresco.web.bean.repository.MapNode;
|
||||
import org.alfresco.web.bean.repository.Node;
|
||||
import org.alfresco.web.bean.repository.Repository;
|
||||
import org.alfresco.web.bean.wizard.NewRuleWizard;
|
||||
import org.alfresco.web.ui.common.Utils;
|
||||
import org.alfresco.web.ui.common.Utils.URLMode;
|
||||
import org.alfresco.web.ui.common.component.UIActionLink;
|
||||
@@ -489,25 +489,25 @@ public class DocumentDetailsBean extends BaseDetailsBean
|
||||
|
||||
// put the workflow properties in a separate map for use by the JSP
|
||||
this.workflowProperties = new HashMap<String, Serializable>(7);
|
||||
this.workflowProperties.put(NewRuleWizard.PROP_APPROVE_STEP_NAME,
|
||||
this.workflowProperties.put(BaseActionWizard.PROP_APPROVE_STEP_NAME,
|
||||
approveStepName);
|
||||
this.workflowProperties.put(NewRuleWizard.PROP_APPROVE_ACTION,
|
||||
this.workflowProperties.put(BaseActionWizard.PROP_APPROVE_ACTION,
|
||||
approveMove ? "move" : "copy");
|
||||
this.workflowProperties.put(NewRuleWizard.PROP_APPROVE_FOLDER, approveFolder);
|
||||
this.workflowProperties.put(BaseActionWizard.PROP_APPROVE_FOLDER, approveFolder);
|
||||
|
||||
if (rejectStepName == null || rejectMove == null || rejectFolder == null)
|
||||
{
|
||||
this.workflowProperties.put(NewRuleWizard.PROP_REJECT_STEP_PRESENT, "no");
|
||||
this.workflowProperties.put(BaseActionWizard.PROP_REJECT_STEP_PRESENT, "no");
|
||||
}
|
||||
else
|
||||
{
|
||||
this.workflowProperties.put(NewRuleWizard.PROP_REJECT_STEP_PRESENT,
|
||||
this.workflowProperties.put(BaseActionWizard.PROP_REJECT_STEP_PRESENT,
|
||||
"yes");
|
||||
this.workflowProperties.put(NewRuleWizard.PROP_REJECT_STEP_NAME,
|
||||
this.workflowProperties.put(BaseActionWizard.PROP_REJECT_STEP_NAME,
|
||||
rejectStepName);
|
||||
this.workflowProperties.put(NewRuleWizard.PROP_REJECT_ACTION,
|
||||
this.workflowProperties.put(BaseActionWizard.PROP_REJECT_ACTION,
|
||||
rejectMove ? "move" : "copy");
|
||||
this.workflowProperties.put(NewRuleWizard.PROP_REJECT_FOLDER,
|
||||
this.workflowProperties.put(BaseActionWizard.PROP_REJECT_FOLDER,
|
||||
rejectFolder);
|
||||
}
|
||||
}
|
||||
@@ -553,11 +553,11 @@ public class DocumentDetailsBean extends BaseDetailsBean
|
||||
|
||||
// set the approve step name
|
||||
updateProps.put(ContentModel.PROP_APPROVE_STEP,
|
||||
this.workflowProperties.get(NewRuleWizard.PROP_APPROVE_STEP_NAME));
|
||||
this.workflowProperties.get(BaseActionWizard.PROP_APPROVE_STEP_NAME));
|
||||
|
||||
// specify whether the approve step will copy or move the content
|
||||
boolean approveMove = true;
|
||||
String approveAction = (String)this.workflowProperties.get(NewRuleWizard.PROP_APPROVE_ACTION);
|
||||
String approveAction = (String)this.workflowProperties.get(BaseActionWizard.PROP_APPROVE_ACTION);
|
||||
if (approveAction != null && approveAction.equals("copy"))
|
||||
{
|
||||
approveMove = false;
|
||||
@@ -566,12 +566,12 @@ public class DocumentDetailsBean extends BaseDetailsBean
|
||||
|
||||
// create node ref representation of the destination folder
|
||||
updateProps.put(ContentModel.PROP_APPROVE_FOLDER,
|
||||
this.workflowProperties.get(NewRuleWizard.PROP_APPROVE_FOLDER));
|
||||
this.workflowProperties.get(BaseActionWizard.PROP_APPROVE_FOLDER));
|
||||
|
||||
// determine whether there should be a reject step
|
||||
boolean requireReject = true;
|
||||
String rejectStepPresent = (String)this.workflowProperties.get(
|
||||
NewRuleWizard.PROP_REJECT_STEP_PRESENT);
|
||||
BaseActionWizard.PROP_REJECT_STEP_PRESENT);
|
||||
if (rejectStepPresent != null && rejectStepPresent.equals("no"))
|
||||
{
|
||||
requireReject = false;
|
||||
@@ -581,12 +581,12 @@ public class DocumentDetailsBean extends BaseDetailsBean
|
||||
{
|
||||
// set the reject step name
|
||||
updateProps.put(ContentModel.PROP_REJECT_STEP,
|
||||
this.workflowProperties.get(NewRuleWizard.PROP_REJECT_STEP_NAME));
|
||||
this.workflowProperties.get(BaseActionWizard.PROP_REJECT_STEP_NAME));
|
||||
|
||||
// specify whether the reject step will copy or move the content
|
||||
boolean rejectMove = true;
|
||||
String rejectAction = (String)this.workflowProperties.get(
|
||||
NewRuleWizard.PROP_REJECT_ACTION);
|
||||
BaseActionWizard.PROP_REJECT_ACTION);
|
||||
if (rejectAction != null && rejectAction.equals("copy"))
|
||||
{
|
||||
rejectMove = false;
|
||||
@@ -595,7 +595,7 @@ public class DocumentDetailsBean extends BaseDetailsBean
|
||||
|
||||
// create node ref representation of the destination folder
|
||||
updateProps.put(ContentModel.PROP_REJECT_FOLDER,
|
||||
this.workflowProperties.get(NewRuleWizard.PROP_REJECT_FOLDER));
|
||||
this.workflowProperties.get(BaseActionWizard.PROP_REJECT_FOLDER));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,93 @@
|
||||
package org.alfresco.web.bean.actions;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Map;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
import javax.faces.context.FacesContext;
|
||||
|
||||
import org.alfresco.service.cmr.action.Action;
|
||||
import org.alfresco.web.app.Application;
|
||||
|
||||
/**
|
||||
* Bean implementation for the "Run Action" wizard.
|
||||
*
|
||||
* @author gavinc
|
||||
*/
|
||||
public class RunActionWizard extends BaseActionWizard
|
||||
{
|
||||
// ------------------------------------------------------------------------------
|
||||
// Wizard implementation
|
||||
|
||||
protected String finishImpl(FacesContext context, String outcome)
|
||||
throws Exception
|
||||
{
|
||||
// execute each action added in the wizard
|
||||
for (Map<String, Serializable> actionParams : this.allActionsProperties)
|
||||
{
|
||||
// use the base class version of buildActionParams(), but for this we need
|
||||
// to setup the currentActionProperties and action variables
|
||||
String actionName = (String)actionParams.get(PROP_ACTION_NAME);
|
||||
this.action = actionName;
|
||||
this.currentActionProperties = actionParams;
|
||||
Map<String, Serializable> repoActionParams = buildActionParams();
|
||||
|
||||
// add the action to the rule
|
||||
Action action = this.actionService.createAction(actionName);
|
||||
action.setParameterValues(repoActionParams);
|
||||
|
||||
// execute the action on the current document node
|
||||
this.actionService.executeAction(action, this.browseBean.getDocument().getNodeRef());
|
||||
}
|
||||
|
||||
return outcome;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String doPostCommitProcessing(FacesContext context, String outcome)
|
||||
{
|
||||
// reset the current document properties/aspects in case we have changed them
|
||||
// during the execution of the custom action
|
||||
this.browseBean.getDocument().reset();
|
||||
|
||||
return outcome;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getErrorMessageId()
|
||||
{
|
||||
return "error_actions";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns the summary data for the wizard.
|
||||
*/
|
||||
public String getSummary()
|
||||
{
|
||||
// create the summary using all the actions
|
||||
StringBuilder actionsSummary = new StringBuilder();
|
||||
for (Map<String, Serializable> props : this.allActionsProperties)
|
||||
{
|
||||
actionsSummary.append(props.get(PROP_ACTION_SUMMARY));
|
||||
actionsSummary.append("<br/>");
|
||||
}
|
||||
|
||||
ResourceBundle bundle = Application.getBundle(FacesContext.getCurrentInstance());
|
||||
|
||||
return buildSummary(
|
||||
new String[] {bundle.getString("actions")},
|
||||
new String[] {actionsSummary.toString()});
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getNextButtonDisabled()
|
||||
{
|
||||
return (this.allActionsDataModel.getRowCount() == 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getFinishButtonDisabled()
|
||||
{
|
||||
return (this.allActionsDataModel.getRowCount() == 0);
|
||||
}
|
||||
}
|
@@ -23,8 +23,6 @@ import org.alfresco.web.ui.common.Utils;
|
||||
*/
|
||||
public abstract class BaseDialogBean implements IDialogBean
|
||||
{
|
||||
protected static final String ERROR_ID = "error_generic";
|
||||
|
||||
// services common to most dialogs
|
||||
protected BrowseBean browseBean;
|
||||
protected NavigationBean navigator;
|
||||
@@ -177,6 +175,14 @@ public abstract class BaseDialogBean implements IDialogBean
|
||||
return outcome;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The error message lookup id
|
||||
*/
|
||||
protected String getErrorMessageId()
|
||||
{
|
||||
return "error_generic";
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a formatted exception string for the given exception
|
||||
*
|
||||
@@ -186,7 +192,7 @@ public abstract class BaseDialogBean implements IDialogBean
|
||||
protected String formatErrorMessage(Throwable exception)
|
||||
{
|
||||
return MessageFormat.format(Application.getMessage(
|
||||
FacesContext.getCurrentInstance(), ERROR_ID),
|
||||
FacesContext.getCurrentInstance(), getErrorMessageId()),
|
||||
exception.getMessage());
|
||||
}
|
||||
}
|
||||
|
811
source/java/org/alfresco/web/bean/rules/CreateRuleWizard.java
Normal file
811
source/java/org/alfresco/web/bean/rules/CreateRuleWizard.java
Normal file
@@ -0,0 +1,811 @@
|
||||
package org.alfresco.web.bean.rules;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
import javax.faces.context.FacesContext;
|
||||
import javax.faces.model.DataModel;
|
||||
import javax.faces.model.ListDataModel;
|
||||
import javax.faces.model.SelectItem;
|
||||
|
||||
import org.alfresco.config.Config;
|
||||
import org.alfresco.config.ConfigElement;
|
||||
import org.alfresco.config.ConfigService;
|
||||
import org.alfresco.model.ContentModel;
|
||||
import org.alfresco.repo.action.evaluator.CompareMimeTypeEvaluator;
|
||||
import org.alfresco.repo.action.evaluator.ComparePropertyValueEvaluator;
|
||||
import org.alfresco.repo.action.evaluator.HasAspectEvaluator;
|
||||
import org.alfresco.repo.action.evaluator.InCategoryEvaluator;
|
||||
import org.alfresco.repo.action.evaluator.IsSubTypeEvaluator;
|
||||
import org.alfresco.service.cmr.action.Action;
|
||||
import org.alfresco.service.cmr.action.ActionCondition;
|
||||
import org.alfresco.service.cmr.action.ActionConditionDefinition;
|
||||
import org.alfresco.service.cmr.dictionary.TypeDefinition;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.cmr.rule.Rule;
|
||||
import org.alfresco.service.cmr.rule.RuleService;
|
||||
import org.alfresco.service.cmr.rule.RuleType;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
import org.alfresco.web.app.Application;
|
||||
import org.alfresco.web.bean.actions.BaseActionWizard;
|
||||
import org.alfresco.web.bean.repository.Node;
|
||||
import org.alfresco.web.bean.repository.Repository;
|
||||
import org.alfresco.web.data.IDataContainer;
|
||||
import org.alfresco.web.data.QuickSort;
|
||||
import org.alfresco.web.ui.common.Utils;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
/**
|
||||
* Bean implementation for the "Create Rule" wizard
|
||||
*
|
||||
* @author gavinc
|
||||
*/
|
||||
public class CreateRuleWizard extends BaseActionWizard
|
||||
{
|
||||
public static final String PROP_CONDITION_NAME = "conditionName";
|
||||
public static final String PROP_CONDITION_SUMMARY = "conditionSummary";
|
||||
public static final String PROP_CONDITION_NOT = "notcondition";
|
||||
|
||||
protected RuleService ruleService;
|
||||
protected RulesBean rulesBean;
|
||||
|
||||
private List<SelectItem> modelTypes;
|
||||
private List<SelectItem> mimeTypes;
|
||||
private List<SelectItem> types;
|
||||
private List<SelectItem> conditions;
|
||||
|
||||
protected Map<String, Serializable> currentConditionProperties;
|
||||
protected List<Map<String, Serializable>> allConditionsProperties;
|
||||
|
||||
protected DataModel allConditionsDataModel;
|
||||
|
||||
protected String title;
|
||||
protected String description;
|
||||
protected String type;
|
||||
protected String condition;
|
||||
protected boolean runInBackground;
|
||||
protected boolean applyToSubSpaces;
|
||||
protected boolean editingCondition;
|
||||
|
||||
protected static final String CONDITION_PAGES_LOCATION = "/jsp/rules/";
|
||||
|
||||
private static final Log logger = LogFactory.getLog(CreateRuleWizard.class);
|
||||
|
||||
// ------------------------------------------------------------------------------
|
||||
// Wizard implementation
|
||||
|
||||
@Override
|
||||
public void init()
|
||||
{
|
||||
super.init();
|
||||
|
||||
this.title = null;
|
||||
this.description = null;
|
||||
this.type = "inbound";
|
||||
this.condition = null;
|
||||
this.applyToSubSpaces = false;
|
||||
this.runInBackground = false;
|
||||
this.conditions = null;
|
||||
|
||||
this.allConditionsProperties = new ArrayList<Map<String, Serializable>>();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String finishImpl(FacesContext context, String outcome)
|
||||
throws Exception
|
||||
{
|
||||
// get hold of the space the rule will apply to and make sure
|
||||
// it is actionable
|
||||
Node currentSpace = this.browseBean.getActionSpace();
|
||||
|
||||
// create the new rule
|
||||
Rule rule = this.ruleService.createRule(this.getType());
|
||||
|
||||
// setup the rule
|
||||
outcome = setupRule(context, rule, outcome);
|
||||
|
||||
// Save the rule
|
||||
this.ruleService.saveRule(currentSpace.getNodeRef(), rule);
|
||||
|
||||
if (logger.isDebugEnabled())
|
||||
logger.debug("Added rule '" + this.title + "'");
|
||||
|
||||
return outcome;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getNextButtonDisabled()
|
||||
{
|
||||
// TODO: Allow the next button state to be configured so that
|
||||
// wizard implementations don't have to worry about
|
||||
// checking step numbers
|
||||
|
||||
boolean disabled = true;
|
||||
int step = Application.getWizardManager().getCurrentStep();
|
||||
switch(step)
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
disabled = (this.allConditionsDataModel == null ||
|
||||
this.allConditionsDataModel.getRowCount() == 0);
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
disabled = (this.allActionsDataModel == null ||
|
||||
this.allActionsDataModel.getRowCount() == 0);
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
{
|
||||
disabled = (this.title == null || this.title.length() == 0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return disabled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getFinishButtonDisabled()
|
||||
{
|
||||
if (this.allActionsDataModel != null &&
|
||||
this.allActionsDataModel.getRowCount() > 0 &&
|
||||
this.allConditionsDataModel != null &&
|
||||
this.allConditionsDataModel.getRowCount() > 0 &&
|
||||
this.title != null && this.title.length() > 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns the summary data for the wizard.
|
||||
*/
|
||||
public String getSummary()
|
||||
{
|
||||
// create the summary using all the conditions
|
||||
StringBuilder conditionsSummary = new StringBuilder();
|
||||
for (Map<String, Serializable> props : this.allConditionsProperties)
|
||||
{
|
||||
conditionsSummary.append(props.get(PROP_CONDITION_SUMMARY));
|
||||
conditionsSummary.append("<br/>");
|
||||
}
|
||||
|
||||
// create the summary using all the actions
|
||||
StringBuilder actionsSummary = new StringBuilder();
|
||||
for (Map<String, Serializable> props : this.allActionsProperties)
|
||||
{
|
||||
actionsSummary.append(props.get(PROP_ACTION_SUMMARY));
|
||||
actionsSummary.append("<br/>");
|
||||
}
|
||||
|
||||
ResourceBundle bundle = Application.getBundle(FacesContext.getCurrentInstance());
|
||||
|
||||
String backgroundYesNo = this.runInBackground ? bundle.getString("yes") : bundle.getString("no");
|
||||
String subSpacesYesNo = this.applyToSubSpaces ? bundle.getString("yes") : bundle.getString("no");
|
||||
|
||||
return buildSummary(
|
||||
new String[] {bundle.getString("rule_type"), bundle.getString("name"), bundle.getString("description"),
|
||||
bundle.getString("apply_to_sub_spaces"), bundle.getString("run_in_background"),
|
||||
bundle.getString("conditions"), bundle.getString("actions")},
|
||||
new String[] {this.type, this.title, this.description, subSpacesYesNo, backgroundYesNo,
|
||||
conditionsSummary.toString(), actionsSummary.toString()});
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getErrorMessageId()
|
||||
{
|
||||
return "error_rule";
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets up the given rule using the current state of the wizard
|
||||
*
|
||||
* @param context FacesContext
|
||||
* @param rule The rule to setup
|
||||
* @param outcome The default outcome
|
||||
* @return The outcome
|
||||
*/
|
||||
protected String setupRule(FacesContext context, Rule rule, String outcome)
|
||||
{
|
||||
// setup the rule and add it to the space
|
||||
rule.setTitle(this.title);
|
||||
rule.setDescription(this.description);
|
||||
rule.applyToChildren(this.applyToSubSpaces);
|
||||
rule.setExecuteAsynchronously(this.runInBackground);
|
||||
|
||||
// add all the conditions to the rule
|
||||
for (Map<String, Serializable> condParams : this.allConditionsProperties)
|
||||
{
|
||||
Map<String, Serializable> repoCondParams = buildConditionParams(condParams);
|
||||
|
||||
// add the condition to the rule
|
||||
ActionCondition condition = this.actionService.createActionCondition(
|
||||
(String)condParams.get(PROP_CONDITION_NAME));
|
||||
condition.setParameterValues(repoCondParams);
|
||||
|
||||
// specify whether the condition result should be inverted
|
||||
Boolean not = (Boolean)condParams.get(PROP_CONDITION_NOT);
|
||||
condition.setInvertCondition(((Boolean)not).booleanValue());
|
||||
|
||||
rule.addActionCondition(condition);
|
||||
}
|
||||
|
||||
// add all the actions to the rule
|
||||
for (Map<String, Serializable> actionParams : this.allActionsProperties)
|
||||
{
|
||||
// use the base class version of buildActionParams(), but for this we need
|
||||
// to setup the currentActionProperties and action variables
|
||||
String actionName = (String)actionParams.get(PROP_ACTION_NAME);
|
||||
this.action = actionName;
|
||||
this.currentActionProperties = actionParams;
|
||||
Map<String, Serializable> repoActionParams = buildActionParams();
|
||||
|
||||
// add the action to the rule
|
||||
Action action = this.actionService.createAction(actionName);
|
||||
action.setParameterValues(repoActionParams);
|
||||
rule.addAction(action);
|
||||
}
|
||||
|
||||
return outcome;
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------
|
||||
// Bean Getters and Setters
|
||||
|
||||
/**
|
||||
* Returns the properties for all the conditions as a JSF DataModel
|
||||
*
|
||||
* @return JSF DataModel representing the condition properties
|
||||
*/
|
||||
public DataModel getAllConditionsDataModel()
|
||||
{
|
||||
if (this.allConditionsDataModel == null)
|
||||
{
|
||||
this.allConditionsDataModel = new ListDataModel();
|
||||
}
|
||||
|
||||
this.allConditionsDataModel.setWrappedData(this.allConditionsProperties);
|
||||
|
||||
return this.allConditionsDataModel;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of the types available in the repository
|
||||
*
|
||||
* @return List of SelectItem objects
|
||||
*/
|
||||
public List<SelectItem> getModelTypes()
|
||||
{
|
||||
if (this.modelTypes == null)
|
||||
{
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
ConfigService svc = Application.getConfigService(context);
|
||||
Config wizardCfg = svc.getConfig("Action Wizards");
|
||||
if (wizardCfg != null)
|
||||
{
|
||||
ConfigElement typesCfg = wizardCfg.getConfigElement("types");
|
||||
if (typesCfg != null)
|
||||
{
|
||||
this.modelTypes = new ArrayList<SelectItem>();
|
||||
for (ConfigElement child : typesCfg.getChildren())
|
||||
{
|
||||
QName idQName = Repository.resolveToQName(child.getAttribute("name"));
|
||||
|
||||
// get the display label from config
|
||||
String label = Utils.getDisplayLabel(context, child);
|
||||
|
||||
// if there wasn't a client based label try and get it from the dictionary
|
||||
if (label == null)
|
||||
{
|
||||
TypeDefinition typeDef = this.dictionaryService.getType(idQName);
|
||||
if (typeDef != null)
|
||||
{
|
||||
label = typeDef.getTitle();
|
||||
}
|
||||
else
|
||||
{
|
||||
label = idQName.getLocalName();
|
||||
}
|
||||
}
|
||||
|
||||
this.modelTypes.add(new SelectItem(idQName.toString(), label));
|
||||
}
|
||||
|
||||
// make sure the list is sorted by the label
|
||||
QuickSort sorter = new QuickSort(this.modelTypes, "label", true, IDataContainer.SORT_CASEINSENSITIVE);
|
||||
sorter.sort();
|
||||
}
|
||||
else
|
||||
{
|
||||
logger.warn("Could not find types configuration element");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
logger.warn("Could not find Action Wizards configuration section");
|
||||
}
|
||||
}
|
||||
|
||||
return this.modelTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of mime types in the system
|
||||
*
|
||||
* @return List of mime types
|
||||
*/
|
||||
public List<SelectItem> getMimeTypes()
|
||||
{
|
||||
if (this.mimeTypes == null)
|
||||
{
|
||||
this.mimeTypes = new ArrayList<SelectItem>(50);
|
||||
|
||||
Map<String, String> mimeTypes = mimetypeService.getDisplaysByMimetype();
|
||||
for (String mimeType : mimeTypes.keySet())
|
||||
{
|
||||
this.mimeTypes.add(new SelectItem(mimeType, mimeTypes.get(mimeType)));
|
||||
}
|
||||
|
||||
// make sure the list is sorted by the values
|
||||
QuickSort sorter = new QuickSort(this.mimeTypes, "label", true, IDataContainer.SORT_CASEINSENSITIVE);
|
||||
sorter.sort();
|
||||
}
|
||||
|
||||
return this.mimeTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns the list of selectable conditions
|
||||
*/
|
||||
public List<SelectItem> getConditions()
|
||||
{
|
||||
if (this.conditions == null)
|
||||
{
|
||||
List<ActionConditionDefinition> ruleConditions = this.actionService.getActionConditionDefinitions();
|
||||
this.conditions = new ArrayList<SelectItem>(ruleConditions.size());
|
||||
for (ActionConditionDefinition ruleConditionDef : ruleConditions)
|
||||
{
|
||||
// add to SelectItem list
|
||||
this.conditions.add(new SelectItem(ruleConditionDef.getName(),
|
||||
ruleConditionDef.getTitle()));
|
||||
}
|
||||
|
||||
// make sure the list is sorted by the label
|
||||
QuickSort sorter = new QuickSort(this.conditions, "label", true, IDataContainer.SORT_CASEINSENSITIVE);
|
||||
sorter.sort();
|
||||
|
||||
// add the "Select a condition" entry at the beginning of the list
|
||||
this.conditions.add(0, new SelectItem("null",
|
||||
Application.getMessage(FacesContext.getCurrentInstance(), "select_a_condition")));
|
||||
}
|
||||
|
||||
return this.conditions;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns the types of rules that can be defined
|
||||
*/
|
||||
public List<SelectItem> getTypes()
|
||||
{
|
||||
if (this.types == null)
|
||||
{
|
||||
List<RuleType> ruleTypes = this.ruleService.getRuleTypes();
|
||||
this.types = new ArrayList<SelectItem>(ruleTypes.size());
|
||||
for (RuleType ruleType : ruleTypes)
|
||||
{
|
||||
this.types.add(new SelectItem(ruleType.getName(), ruleType.getDisplayLabel()));
|
||||
}
|
||||
}
|
||||
|
||||
return this.types;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Gets the condition settings
|
||||
*/
|
||||
public Map<String, Serializable> getConditionProperties()
|
||||
{
|
||||
return this.currentConditionProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns the description.
|
||||
*/
|
||||
public String getDescription()
|
||||
{
|
||||
return description;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param description The description to set.
|
||||
*/
|
||||
public void setDescription(String description)
|
||||
{
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns the title.
|
||||
*/
|
||||
public String getTitle()
|
||||
{
|
||||
return title;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param title The title to set.
|
||||
*/
|
||||
public void setTitle(String title)
|
||||
{
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns whether the rule should run in the background
|
||||
*/
|
||||
public boolean getRunInBackground()
|
||||
{
|
||||
return this.runInBackground;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param runInBackground Sets whether the rule should run in the background
|
||||
*/
|
||||
public void setRunInBackground(boolean runInBackground)
|
||||
{
|
||||
this.runInBackground = runInBackground;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns whether the rule should be applied to sub spaces i.e. if it gets inherited
|
||||
*/
|
||||
public boolean getApplyToSubSpaces()
|
||||
{
|
||||
return this.applyToSubSpaces;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param applyToSubSpaces Sets whether the rule will get applied to sub spaces
|
||||
*/
|
||||
public void setApplyToSubSpaces(boolean applyToSubSpaces)
|
||||
{
|
||||
this.applyToSubSpaces = applyToSubSpaces;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns the type.
|
||||
*/
|
||||
public String getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param type The type to set
|
||||
*/
|
||||
public void setType(String type)
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns the selected condition
|
||||
*/
|
||||
public String getCondition()
|
||||
{
|
||||
return this.condition;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param condition Sets the selected condition
|
||||
*/
|
||||
public void setCondition(String condition)
|
||||
{
|
||||
this.condition = condition;
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------
|
||||
// Action event handlers
|
||||
|
||||
/**
|
||||
* Displays the settings page for the current condition being added (if required)
|
||||
*/
|
||||
public void promptForConditionValues()
|
||||
{
|
||||
// set the flag to show we are creating a new condition
|
||||
this.editingCondition = false;
|
||||
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
this.returnViewId = context.getViewRoot().getViewId();
|
||||
String viewId = calculateConditionViewId(this.condition);
|
||||
|
||||
HashMap<String, Serializable> condProps = new HashMap<String, Serializable>(3);
|
||||
condProps.put(PROP_CONDITION_NAME, this.condition);
|
||||
|
||||
if ("no-condition".equals(this.condition))
|
||||
{
|
||||
condProps.put(PROP_CONDITION_SUMMARY, Application.getMessage(
|
||||
FacesContext.getCurrentInstance(), "condition_no_condition"));
|
||||
condProps.put(PROP_CONDITION_NOT, Boolean.FALSE);
|
||||
this.allConditionsProperties.add(condProps);
|
||||
|
||||
// come back to the same page we're on now
|
||||
viewId = this.returnViewId;
|
||||
|
||||
if (logger.isDebugEnabled())
|
||||
logger.debug("Add 'no-condition' condition to list");
|
||||
}
|
||||
else if (this.condition != null)
|
||||
{
|
||||
this.currentConditionProperties = condProps;
|
||||
|
||||
if (logger.isDebugEnabled())
|
||||
logger.debug("Added '" + this.condition + "' condition to list");
|
||||
}
|
||||
|
||||
// reset the selected condition drop down
|
||||
this.condition = null;
|
||||
|
||||
// go to the page to collect the settings
|
||||
goToPage(context, viewId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets up the context for editing existing condition values
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public void editCondition()
|
||||
{
|
||||
// use the built in JSF support for retrieving the object for the
|
||||
// row that was clicked by the user
|
||||
Map conditionToEdit = (Map)this.allConditionsDataModel.getRowData();
|
||||
this.condition = (String)conditionToEdit.get(PROP_CONDITION_NAME);
|
||||
this.currentConditionProperties = conditionToEdit;
|
||||
|
||||
// set the flag to show we are editing a condition
|
||||
this.editingCondition = true;
|
||||
|
||||
// remember the page we're on
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
this.returnViewId = context.getViewRoot().getViewId();
|
||||
|
||||
// refresh the wizard
|
||||
goToPage(context, calculateConditionViewId(this.condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the condition just setup by the user to the list of conditions for the rule
|
||||
*/
|
||||
public void addCondition()
|
||||
{
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
String summary = buildConditionSummary(this.currentConditionProperties);
|
||||
|
||||
if (summary != null)
|
||||
{
|
||||
this.currentConditionProperties.put(PROP_CONDITION_SUMMARY, summary);
|
||||
}
|
||||
|
||||
if (this.editingCondition)
|
||||
{
|
||||
this.condition = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.allConditionsProperties.add(this.currentConditionProperties);
|
||||
}
|
||||
|
||||
// refresh the wizard
|
||||
goToPage(context, this.returnViewId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes the requested condition from the list
|
||||
*/
|
||||
public void removeCondition()
|
||||
{
|
||||
// use the built in JSF support for retrieving the object for the
|
||||
// row that was clicked by the user
|
||||
Map conditionToRemove = (Map)this.allConditionsDataModel.getRowData();
|
||||
this.allConditionsProperties.remove(conditionToRemove);
|
||||
|
||||
// reset the action drop down
|
||||
this.condition = null;
|
||||
|
||||
// refresh the wizard
|
||||
FacesContext context = FacesContext.getCurrentInstance();
|
||||
goToPage(context, context.getViewRoot().getViewId());
|
||||
}
|
||||
|
||||
/**
|
||||
* Cancels the addition of the condition
|
||||
*/
|
||||
public void cancelAddCondition()
|
||||
{
|
||||
if (this.editingCondition)
|
||||
{
|
||||
this.condition = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.currentConditionProperties.clear();
|
||||
}
|
||||
|
||||
// refresh the wizard
|
||||
goToPage(FacesContext.getCurrentInstance(), this.returnViewId);
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------
|
||||
// Service Injection
|
||||
|
||||
/**
|
||||
* @param ruleService Sets the rule service to use
|
||||
*/
|
||||
public void setRuleService(RuleService ruleService)
|
||||
{
|
||||
this.ruleService = ruleService;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the RulesBean instance to be used by the wizard in edit mode
|
||||
*
|
||||
* @param rulesBean The RulesBean
|
||||
*/
|
||||
public void setRulesBean(RulesBean rulesBean)
|
||||
{
|
||||
this.rulesBean = rulesBean;
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------
|
||||
// Helper methods
|
||||
|
||||
/**
|
||||
* Builds the Map of properties for the given condition in the format the repo is expecting
|
||||
*
|
||||
* @param params The Map of properties built from the UI
|
||||
* @return The Map the repo is expecting
|
||||
*/
|
||||
protected Map<String, Serializable> buildConditionParams(Map<String, Serializable> params)
|
||||
{
|
||||
Map<String, Serializable> repoParams = new HashMap<String, Serializable>(params.size());
|
||||
|
||||
String condName = (String)params.get(PROP_CONDITION_NAME);
|
||||
if (ComparePropertyValueEvaluator.NAME.equals(condName))
|
||||
{
|
||||
repoParams.put(ComparePropertyValueEvaluator.PARAM_VALUE, params.get(PROP_CONTAINS_TEXT));
|
||||
}
|
||||
else if (InCategoryEvaluator.NAME.equals(condName))
|
||||
{
|
||||
// put the selected category in the condition params
|
||||
repoParams.put(InCategoryEvaluator.PARAM_CATEGORY_VALUE, params.get(PROP_CATEGORY));
|
||||
|
||||
// add the classifiable aspect
|
||||
repoParams.put(InCategoryEvaluator.PARAM_CATEGORY_ASPECT, ContentModel.ASPECT_GEN_CLASSIFIABLE);
|
||||
}
|
||||
else if (IsSubTypeEvaluator.NAME.equals(condName))
|
||||
{
|
||||
// add the model type
|
||||
repoParams.put(IsSubTypeEvaluator.PARAM_TYPE, QName.createQName((String)params.get(PROP_MODEL_TYPE)));
|
||||
}
|
||||
else if (HasAspectEvaluator.NAME.equals(condName))
|
||||
{
|
||||
// add the aspect
|
||||
repoParams.put(HasAspectEvaluator.PARAM_ASPECT, QName.createQName((String)params.get(PROP_ASPECT)));
|
||||
}
|
||||
else if (CompareMimeTypeEvaluator.NAME.equals(condName))
|
||||
{
|
||||
repoParams.put(CompareMimeTypeEvaluator.PARAM_VALUE, params.get(PROP_MIMETYPE));
|
||||
}
|
||||
|
||||
return repoParams;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a summary string for the given condition parameters
|
||||
*
|
||||
* @return The summary or null if a summary could not be built
|
||||
*/
|
||||
protected String buildConditionSummary(Map<String, Serializable> props)
|
||||
{
|
||||
String summaryResult = null;
|
||||
|
||||
String condName = (String)props.get(PROP_CONDITION_NAME);
|
||||
if (condName != null)
|
||||
{
|
||||
StringBuilder summary = new StringBuilder();
|
||||
|
||||
String msgId = "condition_" + condName.replace('-', '_');
|
||||
|
||||
// JSF is putting the boolean into the map as a Boolean object so we
|
||||
// need to handle that - adding a converter doesn't seem to help!
|
||||
Boolean not = (Boolean)props.get(PROP_CONDITION_NOT);
|
||||
if (not.booleanValue())
|
||||
{
|
||||
msgId = msgId + "_not";
|
||||
}
|
||||
|
||||
if (logger.isDebugEnabled())
|
||||
logger.debug("Looking up condition summary string: " + msgId);
|
||||
|
||||
summary.append(Application.getMessage(FacesContext.getCurrentInstance(), msgId));
|
||||
summary.append(" ");
|
||||
|
||||
// define a summary to be added for each condition
|
||||
if (InCategoryEvaluator.NAME.equals(condName))
|
||||
{
|
||||
String name = Repository.getNameForNode(this.nodeService, (NodeRef)props.get(PROP_CATEGORY));
|
||||
summary.append("'").append(name).append("'");
|
||||
}
|
||||
else if (ComparePropertyValueEvaluator.NAME.equals(condName))
|
||||
{
|
||||
summary.append("'");
|
||||
summary.append(props.get(PROP_CONTAINS_TEXT));
|
||||
summary.append("'");
|
||||
}
|
||||
else if (IsSubTypeEvaluator.NAME.equals(condName))
|
||||
{
|
||||
// find the label used by looking through the SelectItem list
|
||||
String typeName = (String)props.get(PROP_MODEL_TYPE);
|
||||
for (SelectItem item : this.getModelTypes())
|
||||
{
|
||||
if (item.getValue().equals(typeName))
|
||||
{
|
||||
summary.append("'").append(item.getLabel()).append("'");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (HasAspectEvaluator.NAME.equals(condName))
|
||||
{
|
||||
// find the label used by looking through the SelectItem list
|
||||
String aspectName = (String)props.get(PROP_ASPECT);
|
||||
for (SelectItem item : this.getAspects())
|
||||
{
|
||||
if (item.getValue().equals(aspectName))
|
||||
{
|
||||
summary.append("'").append(item.getLabel()).append("'");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (CompareMimeTypeEvaluator.NAME.equals(condName))
|
||||
{
|
||||
String mimetype = (String)props.get(PROP_MIMETYPE);
|
||||
for (SelectItem item : this.getMimeTypes())
|
||||
{
|
||||
if (item.getValue().equals(mimetype))
|
||||
{
|
||||
summary.append("'").append(item.getLabel()).append("'");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
summaryResult = summary.toString();
|
||||
}
|
||||
|
||||
return summaryResult;
|
||||
}
|
||||
|
||||
/**
|
||||
* Calculates the viewId for the given condition id
|
||||
*
|
||||
* @param conditionId The id of the condition to generate the view id for
|
||||
* @return The view id
|
||||
*/
|
||||
protected String calculateConditionViewId(String conditionId)
|
||||
{
|
||||
return CONDITION_PAGES_LOCATION + conditionId + ".jsp";
|
||||
}
|
||||
}
|
310
source/java/org/alfresco/web/bean/rules/EditRuleWizard.java
Normal file
310
source/java/org/alfresco/web/bean/rules/EditRuleWizard.java
Normal file
@@ -0,0 +1,310 @@
|
||||
package org.alfresco.web.bean.rules;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.faces.context.FacesContext;
|
||||
|
||||
import org.alfresco.error.AlfrescoRuntimeException;
|
||||
import org.alfresco.repo.action.evaluator.CompareMimeTypeEvaluator;
|
||||
import org.alfresco.repo.action.evaluator.ComparePropertyValueEvaluator;
|
||||
import org.alfresco.repo.action.evaluator.HasAspectEvaluator;
|
||||
import org.alfresco.repo.action.evaluator.InCategoryEvaluator;
|
||||
import org.alfresco.repo.action.evaluator.IsSubTypeEvaluator;
|
||||
import org.alfresco.repo.action.executer.AddFeaturesActionExecuter;
|
||||
import org.alfresco.repo.action.executer.CheckInActionExecuter;
|
||||
import org.alfresco.repo.action.executer.CheckOutActionExecuter;
|
||||
import org.alfresco.repo.action.executer.CopyActionExecuter;
|
||||
import org.alfresco.repo.action.executer.ImageTransformActionExecuter;
|
||||
import org.alfresco.repo.action.executer.ImporterActionExecuter;
|
||||
import org.alfresco.repo.action.executer.LinkCategoryActionExecuter;
|
||||
import org.alfresco.repo.action.executer.MailActionExecuter;
|
||||
import org.alfresco.repo.action.executer.MoveActionExecuter;
|
||||
import org.alfresco.repo.action.executer.RemoveFeaturesActionExecuter;
|
||||
import org.alfresco.repo.action.executer.SimpleWorkflowActionExecuter;
|
||||
import org.alfresco.repo.action.executer.SpecialiseTypeActionExecuter;
|
||||
import org.alfresco.repo.action.executer.TransformActionExecuter;
|
||||
import org.alfresco.service.cmr.action.Action;
|
||||
import org.alfresco.service.cmr.action.ActionCondition;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.cmr.rule.Rule;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
import org.alfresco.web.bean.repository.Node;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
|
||||
/**
|
||||
* Bean implementation for the "Edit Rule" wizard
|
||||
*
|
||||
* @author gavinc
|
||||
*/
|
||||
public class EditRuleWizard extends CreateRuleWizard
|
||||
{
|
||||
private static final Log logger = LogFactory.getLog(EditRuleWizard.class);
|
||||
|
||||
@Override
|
||||
protected String finishImpl(FacesContext context, String outcome) throws Exception
|
||||
{
|
||||
// get hold of the space the rule will apply to and make sure
|
||||
// it is actionable
|
||||
Node currentSpace = browseBean.getActionSpace();
|
||||
|
||||
// get the existing rule
|
||||
Rule rule = this.rulesBean.getCurrentRule();
|
||||
|
||||
// remove all the conditions and actions from the current rule
|
||||
rule.removeAllActionConditions();
|
||||
rule.removeAllActions();
|
||||
|
||||
// re-setup the rule
|
||||
outcome = setupRule(context, rule, outcome);
|
||||
|
||||
// Save the rule
|
||||
this.ruleService.saveRule(currentSpace.getNodeRef(), rule);
|
||||
|
||||
if (logger.isDebugEnabled())
|
||||
logger.debug("Updated rule '" + this.title + "'");
|
||||
|
||||
return outcome;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init()
|
||||
{
|
||||
super.init();
|
||||
|
||||
// get hold of the current rule details
|
||||
Rule rule = this.rulesBean.getCurrentRule();
|
||||
|
||||
if (rule == null)
|
||||
{
|
||||
throw new AlfrescoRuntimeException("Failed to locate the current rule");
|
||||
}
|
||||
|
||||
// populate the bean with current values
|
||||
this.type = rule.getRuleTypeName();
|
||||
this.title = rule.getTitle();
|
||||
this.description = rule.getDescription();
|
||||
this.applyToSubSpaces = rule.isAppliedToChildren();
|
||||
this.runInBackground = rule.getExecuteAsychronously();
|
||||
|
||||
// populate the conditions list with maps of properties representing each condition
|
||||
List<ActionCondition> conditions = rule.getActionConditions();
|
||||
for (ActionCondition condition : conditions)
|
||||
{
|
||||
Map<String, Serializable> params = populateCondition(condition);
|
||||
this.allConditionsProperties.add(params);
|
||||
}
|
||||
|
||||
List<Action> actions = rule.getActions();
|
||||
for (Action action : actions)
|
||||
{
|
||||
// use the base class version of populateActionFromProperties(),
|
||||
// but for this we need to setup the currentActionProperties and
|
||||
// action variables
|
||||
this.currentActionProperties = new HashMap<String, Serializable>(3);
|
||||
this.action = action.getActionDefinitionName();
|
||||
populateAction(action.getParameterValues());
|
||||
|
||||
// also add the name and summary
|
||||
this.currentActionProperties.put(PROP_ACTION_NAME, this.action);
|
||||
// generate the summary
|
||||
this.currentActionProperties.put(PROP_ACTION_SUMMARY,
|
||||
buildActionSummary(this.currentActionProperties));
|
||||
|
||||
// add the populated currentActionProperties to the list
|
||||
this.allActionsProperties.add(this.currentActionProperties);
|
||||
}
|
||||
|
||||
// reset the current action
|
||||
this.action = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Populates a Map of properties the wizard is expecting for the given condition
|
||||
*
|
||||
* @param condition The condition to build the map for
|
||||
*/
|
||||
protected Map<String, Serializable> populateCondition(ActionCondition condition)
|
||||
{
|
||||
// find out what the condition is called
|
||||
Map<String, Serializable> condProps = new HashMap<String, Serializable>(3);
|
||||
String name = condition.getActionConditionDefinitionName();
|
||||
condProps.put(PROP_CONDITION_NAME, name);
|
||||
|
||||
// add the appropriate properties
|
||||
Map<String, Serializable> repoCondProps = condition.getParameterValues();
|
||||
if (name.equals(ComparePropertyValueEvaluator.NAME))
|
||||
{
|
||||
condProps.put(PROP_CONTAINS_TEXT, (String)repoCondProps.get(ComparePropertyValueEvaluator.PARAM_VALUE));
|
||||
}
|
||||
else if (name.equals(InCategoryEvaluator.NAME))
|
||||
{
|
||||
NodeRef catNodeRef = (NodeRef)repoCondProps.get(InCategoryEvaluator.PARAM_CATEGORY_VALUE);
|
||||
condProps.put(PROP_CATEGORY, catNodeRef);
|
||||
}
|
||||
else if (name.equals(IsSubTypeEvaluator.NAME))
|
||||
{
|
||||
condProps.put(PROP_MODEL_TYPE, ((QName)repoCondProps.get(IsSubTypeEvaluator.PARAM_TYPE)).toString());
|
||||
}
|
||||
else if (name.equals(HasAspectEvaluator.NAME))
|
||||
{
|
||||
condProps.put(PROP_ASPECT, ((QName)repoCondProps.get(HasAspectEvaluator.PARAM_ASPECT)).toString());
|
||||
}
|
||||
else if (name.equals(CompareMimeTypeEvaluator.NAME))
|
||||
{
|
||||
condProps.put(PROP_MIMETYPE, repoCondProps.get(CompareMimeTypeEvaluator.PARAM_VALUE));
|
||||
}
|
||||
|
||||
// specify whether the condition result should be inverted
|
||||
condProps.put(PROP_CONDITION_NOT, Boolean.valueOf(condition.getInvertCondition()));
|
||||
|
||||
// generate the summary
|
||||
condProps.put(PROP_CONDITION_SUMMARY, buildConditionSummary(condProps));
|
||||
|
||||
return condProps;
|
||||
}
|
||||
|
||||
/**
|
||||
* Populate the actionProperties member variable with correct props for the current action
|
||||
* using the supplied property map.
|
||||
*
|
||||
* @param actionProps Map to retrieve props appropriate to the current action from
|
||||
*/
|
||||
protected void populateAction(Map<String, Serializable> actionProps)
|
||||
{
|
||||
if (this.action.equals(AddFeaturesActionExecuter.NAME))
|
||||
{
|
||||
QName aspect = (QName)actionProps.get(AddFeaturesActionExecuter.PARAM_ASPECT_NAME);
|
||||
this.currentActionProperties.put(PROP_ASPECT, aspect.toString());
|
||||
}
|
||||
else if (this.action.equals(RemoveFeaturesActionExecuter.NAME))
|
||||
{
|
||||
QName aspect = (QName)actionProps.get(RemoveFeaturesActionExecuter.PARAM_ASPECT_NAME);
|
||||
this.currentActionProperties.put(PROP_ASPECT, aspect.toString());
|
||||
}
|
||||
else if (this.action.equals(CopyActionExecuter.NAME))
|
||||
{
|
||||
NodeRef destNodeRef = (NodeRef)actionProps.get(CopyActionExecuter.PARAM_DESTINATION_FOLDER);
|
||||
this.currentActionProperties.put(PROP_DESTINATION, destNodeRef);
|
||||
}
|
||||
else if (this.action.equals(MoveActionExecuter.NAME))
|
||||
{
|
||||
NodeRef destNodeRef = (NodeRef)actionProps.get(MoveActionExecuter.PARAM_DESTINATION_FOLDER);
|
||||
this.currentActionProperties.put(PROP_DESTINATION, destNodeRef);
|
||||
}
|
||||
else if (this.action.equals(SimpleWorkflowActionExecuter.NAME))
|
||||
{
|
||||
String approveStep = (String)actionProps.get(SimpleWorkflowActionExecuter.PARAM_APPROVE_STEP);
|
||||
Boolean approveMove = (Boolean)actionProps.get(SimpleWorkflowActionExecuter.PARAM_APPROVE_MOVE);
|
||||
NodeRef approveFolderNode = (NodeRef)actionProps.get(
|
||||
SimpleWorkflowActionExecuter.PARAM_APPROVE_FOLDER);
|
||||
|
||||
String rejectStep = (String)actionProps.get(SimpleWorkflowActionExecuter.PARAM_REJECT_STEP);
|
||||
Boolean rejectMove = (Boolean)actionProps.get(SimpleWorkflowActionExecuter.PARAM_REJECT_MOVE);
|
||||
NodeRef rejectFolderNode = (NodeRef)actionProps.get(
|
||||
SimpleWorkflowActionExecuter.PARAM_REJECT_FOLDER);
|
||||
|
||||
this.currentActionProperties.put(PROP_APPROVE_STEP_NAME, approveStep);
|
||||
this.currentActionProperties.put(PROP_APPROVE_ACTION, approveMove ? "move" : "copy");
|
||||
this.currentActionProperties.put(PROP_APPROVE_FOLDER, approveFolderNode);
|
||||
|
||||
if (rejectStep == null && rejectMove == null && rejectFolderNode == null)
|
||||
{
|
||||
this.currentActionProperties.put(PROP_REJECT_STEP_PRESENT, "no");
|
||||
}
|
||||
else
|
||||
{
|
||||
this.currentActionProperties.put(PROP_REJECT_STEP_PRESENT, "yes");
|
||||
this.currentActionProperties.put(PROP_REJECT_STEP_NAME, rejectStep);
|
||||
this.currentActionProperties.put(PROP_REJECT_ACTION, rejectMove ? "move" : "copy");
|
||||
this.currentActionProperties.put(PROP_REJECT_FOLDER, rejectFolderNode);
|
||||
}
|
||||
}
|
||||
else if (this.action.equals(LinkCategoryActionExecuter.NAME))
|
||||
{
|
||||
NodeRef catNodeRef = (NodeRef)actionProps.get(LinkCategoryActionExecuter.PARAM_CATEGORY_VALUE);
|
||||
this.currentActionProperties.put(PROP_CATEGORY, catNodeRef);
|
||||
}
|
||||
else if (this.action.equals(CheckOutActionExecuter.NAME))
|
||||
{
|
||||
NodeRef destNodeRef = (NodeRef)actionProps.get(CheckOutActionExecuter.PARAM_DESTINATION_FOLDER);
|
||||
this.currentActionProperties.put(PROP_DESTINATION, destNodeRef);
|
||||
}
|
||||
else if (this.action.equals(CheckInActionExecuter.NAME))
|
||||
{
|
||||
String checkDesc = (String)actionProps.get(CheckInActionExecuter.PARAM_DESCRIPTION);
|
||||
this.currentActionProperties.put(PROP_CHECKIN_DESC, checkDesc);
|
||||
|
||||
Boolean minorChange = (Boolean)actionProps.get(CheckInActionExecuter.PARAM_MINOR_CHANGE);
|
||||
this.currentActionProperties.put(PROP_CHECKIN_MINOR, minorChange);
|
||||
}
|
||||
else if (this.action.equals(TransformActionExecuter.NAME))
|
||||
{
|
||||
String transformer = (String)actionProps.get(TransformActionExecuter.PARAM_MIME_TYPE);
|
||||
this.currentActionProperties.put(PROP_TRANSFORMER, transformer);
|
||||
|
||||
NodeRef destNodeRef = (NodeRef)actionProps.get(CopyActionExecuter.PARAM_DESTINATION_FOLDER);
|
||||
this.currentActionProperties.put(PROP_DESTINATION, destNodeRef);
|
||||
}
|
||||
else if (this.action.equals(ImageTransformActionExecuter.NAME))
|
||||
{
|
||||
String transformer = (String)actionProps.get(TransformActionExecuter.PARAM_MIME_TYPE);
|
||||
this.currentActionProperties.put(PROP_IMAGE_TRANSFORMER, transformer);
|
||||
|
||||
String options = (String)actionProps.get(ImageTransformActionExecuter.PARAM_CONVERT_COMMAND);
|
||||
this.currentActionProperties.put(PROP_TRANSFORM_OPTIONS, options != null ? options : "");
|
||||
|
||||
NodeRef destNodeRef = (NodeRef)actionProps.get(CopyActionExecuter.PARAM_DESTINATION_FOLDER);
|
||||
this.currentActionProperties.put(PROP_DESTINATION, destNodeRef);
|
||||
}
|
||||
else if (this.action.equals(MailActionExecuter.NAME))
|
||||
{
|
||||
String subject = (String)actionProps.get(MailActionExecuter.PARAM_SUBJECT);
|
||||
this.currentActionProperties.put(PROP_SUBJECT, subject);
|
||||
|
||||
String message = (String)actionProps.get(MailActionExecuter.PARAM_TEXT);
|
||||
this.currentActionProperties.put(PROP_MESSAGE, message);
|
||||
|
||||
// handle single email or multiple authority recipients
|
||||
String to = (String)actionProps.get(MailActionExecuter.PARAM_TO);
|
||||
if (to != null)
|
||||
{
|
||||
this.currentActionProperties.put(PROP_TO, to);
|
||||
}
|
||||
else
|
||||
{
|
||||
List<String> recipients = (List<String>)actionProps.get(MailActionExecuter.PARAM_TO_MANY);
|
||||
if (recipients != null && recipients.size() != 0)
|
||||
{
|
||||
// rebuild the list of RecipientWrapper objects from the stored action
|
||||
for (String authority : recipients)
|
||||
{
|
||||
this.emailRecipients.add(
|
||||
new RecipientWrapper(displayLabelForAuthority(authority), authority));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
NodeRef templateRef = (NodeRef)actionProps.get(MailActionExecuter.PARAM_TEMPLATE);
|
||||
if (templateRef != null)
|
||||
{
|
||||
this.currentActionProperties.put(PROP_TEMPLATE, templateRef.getId());
|
||||
this.usingTemplate = templateRef.getId();
|
||||
}
|
||||
}
|
||||
else if (this.action.equals(ImporterActionExecuter.NAME))
|
||||
{
|
||||
NodeRef destNodeRef = (NodeRef)actionProps.get(ImporterActionExecuter.PARAM_DESTINATION_FOLDER);
|
||||
this.currentActionProperties.put(PROP_DESTINATION, destNodeRef);
|
||||
}
|
||||
else if (this.action.equals(SpecialiseTypeActionExecuter.NAME) == true)
|
||||
{
|
||||
QName specialiseType = (QName)actionProps.get(SpecialiseTypeActionExecuter.PARAM_TYPE_NAME);
|
||||
this.currentActionProperties.put(PROP_OBJECT_TYPE, specialiseType.toString());
|
||||
}
|
||||
}
|
||||
}
|
@@ -14,9 +14,8 @@
|
||||
* language governing permissions and limitations under the
|
||||
* License.
|
||||
*/
|
||||
package org.alfresco.web.bean;
|
||||
package org.alfresco.web.bean.rules;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
@@ -25,14 +24,13 @@ import java.util.Map;
|
||||
import javax.faces.context.FacesContext;
|
||||
import javax.faces.event.ActionEvent;
|
||||
|
||||
import org.alfresco.service.cmr.action.Action;
|
||||
import org.alfresco.service.cmr.action.ActionCondition;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.cmr.rule.Rule;
|
||||
import org.alfresco.service.cmr.rule.RuleService;
|
||||
import org.alfresco.web.app.Application;
|
||||
import org.alfresco.web.app.context.IContextListener;
|
||||
import org.alfresco.web.app.context.UIContextService;
|
||||
import org.alfresco.web.bean.BrowseBean;
|
||||
import org.alfresco.web.bean.repository.Node;
|
||||
import org.alfresco.web.ui.common.Utils;
|
||||
import org.alfresco.web.ui.common.component.UIActionLink;
|
@@ -17,7 +17,7 @@ public class CreateSpaceDialog extends CreateSpaceWizard
|
||||
@Override
|
||||
public String getFinishButtonLabel()
|
||||
{
|
||||
return Application.getMessage(FacesContext.getCurrentInstance(), "new_space");
|
||||
return Application.getMessage(FacesContext.getCurrentInstance(), "create_space");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -682,7 +682,7 @@ public class CreateSpaceWizard extends BaseWizardBean
|
||||
{
|
||||
return MessageFormat.format(Application.getMessage(
|
||||
FacesContext.getCurrentInstance(), "error_space"),
|
||||
((FileExistsException)exception).getExisting().getName());
|
||||
exception.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,236 +0,0 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
package org.alfresco.web.bean.wizard;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.text.MessageFormat;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.faces.context.FacesContext;
|
||||
import javax.transaction.UserTransaction;
|
||||
|
||||
import org.alfresco.service.cmr.action.Action;
|
||||
import org.alfresco.web.app.Application;
|
||||
import org.alfresco.web.bean.repository.Repository;
|
||||
import org.alfresco.web.ui.common.Utils;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
/**
|
||||
* Handler class used by the New Action Wizard
|
||||
*
|
||||
* @author Kevin Roast
|
||||
*/
|
||||
public class NewActionWizard extends BaseActionWizard
|
||||
{
|
||||
private static Log logger = LogFactory.getLog(NewActionWizard.class);
|
||||
|
||||
private static final String ERROR = "error_action";
|
||||
|
||||
// TODO: retrieve these from the config service
|
||||
private static final String WIZARD_TITLE_ID = "create_action_title";
|
||||
private static final String WIZARD_DESC_ID = "create_action_desc";
|
||||
private static final String STEP1_TITLE_ID = "create_action_step1_title";
|
||||
private static final String STEP2_TITLE_ID = "create_action_step2_title";
|
||||
private static final String FINISH_INSTRUCTION_ID = "create_action_finish_instruction";
|
||||
|
||||
/**
|
||||
* Deals with the finish button being pressed
|
||||
*
|
||||
* @return outcome
|
||||
*/
|
||||
public String finish()
|
||||
{
|
||||
String outcome = FINISH_OUTCOME;
|
||||
|
||||
UserTransaction tx = null;
|
||||
|
||||
try
|
||||
{
|
||||
tx = Repository.getUserTransaction(FacesContext.getCurrentInstance());
|
||||
tx.begin();
|
||||
|
||||
// build the action params map based on the selected action instance
|
||||
Map<String, Serializable> actionParams = buildActionParams();
|
||||
|
||||
// build the action to execute
|
||||
Action action = this.actionService.createAction(getAction());
|
||||
action.setParameterValues(actionParams);
|
||||
|
||||
// execute the action on the current document node
|
||||
this.actionService.executeAction(action, this.browseBean.getDocument().getNodeRef());
|
||||
|
||||
if (logger.isDebugEnabled())
|
||||
{
|
||||
logger.debug("Executed action '" + this.action +
|
||||
"' with action params of " +
|
||||
this.currentActionProperties);
|
||||
}
|
||||
|
||||
// reset the current document properties/aspects in case we have changed them
|
||||
// during the execution of the custom action
|
||||
this.browseBean.getDocument().reset();
|
||||
|
||||
// commit the transaction
|
||||
tx.commit();
|
||||
}
|
||||
catch (Throwable e)
|
||||
{
|
||||
// rollback the transaction
|
||||
try { if (tx != null) {tx.rollback();} } catch (Exception ex) {}
|
||||
Utils.addErrorMessage(MessageFormat.format(Application.getMessage(
|
||||
FacesContext.getCurrentInstance(), ERROR), e.getMessage()), e);
|
||||
outcome = null;
|
||||
}
|
||||
|
||||
return outcome;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.alfresco.web.bean.wizard.AbstractWizardBean#getWizardDescription()
|
||||
*/
|
||||
public String getWizardDescription()
|
||||
{
|
||||
return Application.getMessage(FacesContext.getCurrentInstance(), WIZARD_DESC_ID);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.alfresco.web.bean.wizard.AbstractWizardBean#getWizardTitle()
|
||||
*/
|
||||
public String getWizardTitle()
|
||||
{
|
||||
return Application.getMessage(FacesContext.getCurrentInstance(), WIZARD_TITLE_ID);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.alfresco.web.bean.wizard.AbstractWizardBean#getStepDescription()
|
||||
*/
|
||||
public String getStepDescription()
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.alfresco.web.bean.wizard.AbstractWizardBean#getStepTitle()
|
||||
*/
|
||||
public String getStepTitle()
|
||||
{
|
||||
String stepTitle = null;
|
||||
|
||||
switch (this.currentStep)
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
stepTitle = Application.getMessage(FacesContext.getCurrentInstance(), STEP1_TITLE_ID);
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
stepTitle = Application.getMessage(FacesContext.getCurrentInstance(), STEP2_TITLE_ID);
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
{
|
||||
stepTitle = Application.getMessage(FacesContext.getCurrentInstance(), SUMMARY_TITLE_ID);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
stepTitle = "";
|
||||
}
|
||||
}
|
||||
|
||||
return stepTitle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.alfresco.web.bean.wizard.AbstractWizardBean#getStepInstructions()
|
||||
*/
|
||||
public String getStepInstructions()
|
||||
{
|
||||
String stepInstruction = null;
|
||||
|
||||
switch (this.currentStep)
|
||||
{
|
||||
case 3:
|
||||
{
|
||||
stepInstruction = Application.getMessage(FacesContext.getCurrentInstance(), FINISH_INSTRUCTION_ID);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
stepInstruction = Application.getMessage(FacesContext.getCurrentInstance(), DEFAULT_INSTRUCTION_ID);
|
||||
}
|
||||
}
|
||||
|
||||
return stepInstruction;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialises the wizard
|
||||
*/
|
||||
public void init()
|
||||
{
|
||||
super.init();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns the summary data for the wizard.
|
||||
*/
|
||||
public String getSummary()
|
||||
{
|
||||
String summaryAction = this.actionService.getActionDefinition(
|
||||
this.action).getTitle();
|
||||
|
||||
return buildSummary(
|
||||
new String[] {"Action"},
|
||||
new String[] {summaryAction});
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.alfresco.web.bean.wizard.AbstractWizardBean#determineOutcomeForStep(int)
|
||||
*/
|
||||
protected String determineOutcomeForStep(int step)
|
||||
{
|
||||
String outcome = null;
|
||||
|
||||
switch(step)
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
outcome = "action";
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
outcome = this.action;
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
{
|
||||
outcome = "summary";
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
outcome = CANCEL_OUTCOME;
|
||||
}
|
||||
}
|
||||
|
||||
return outcome;
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@@ -476,10 +476,10 @@
|
||||
|
||||
<managed-bean>
|
||||
<description>
|
||||
The bean that backs up the New Rule Wizard
|
||||
The bean that backs up the Create Rule Wizard
|
||||
</description>
|
||||
<managed-bean-name>NewRuleWizard</managed-bean-name>
|
||||
<managed-bean-class>org.alfresco.web.bean.wizard.NewRuleWizard</managed-bean-class>
|
||||
<managed-bean-name>CreateRuleWizard</managed-bean-name>
|
||||
<managed-bean-class>org.alfresco.web.bean.rules.CreateRuleWizard</managed-bean-class>
|
||||
<managed-bean-scope>session</managed-bean-scope>
|
||||
<managed-property>
|
||||
<property-name>nodeService</property-name>
|
||||
@@ -529,10 +529,63 @@
|
||||
|
||||
<managed-bean>
|
||||
<description>
|
||||
The bean that backs up the New Action Wizard
|
||||
The bean that backs up the Edit Rule Wizard
|
||||
</description>
|
||||
<managed-bean-name>NewActionWizard</managed-bean-name>
|
||||
<managed-bean-class>org.alfresco.web.bean.wizard.NewActionWizard</managed-bean-class>
|
||||
<managed-bean-name>EditRuleWizard</managed-bean-name>
|
||||
<managed-bean-class>org.alfresco.web.bean.rules.EditRuleWizard</managed-bean-class>
|
||||
<managed-bean-scope>session</managed-bean-scope>
|
||||
<managed-property>
|
||||
<property-name>nodeService</property-name>
|
||||
<value>#{NodeService}</value>
|
||||
</managed-property>
|
||||
<managed-property>
|
||||
<property-name>searchService</property-name>
|
||||
<value>#{SearchService}</value>
|
||||
</managed-property>
|
||||
<managed-property>
|
||||
<property-name>navigator</property-name>
|
||||
<value>#{NavigationBean}</value>
|
||||
</managed-property>
|
||||
<managed-property>
|
||||
<property-name>browseBean</property-name>
|
||||
<value>#{BrowseBean}</value>
|
||||
</managed-property>
|
||||
<managed-property>
|
||||
<property-name>ruleService</property-name>
|
||||
<value>#{RuleService}</value>
|
||||
</managed-property>
|
||||
<managed-property>
|
||||
<property-name>actionService</property-name>
|
||||
<value>#{ActionService}</value>
|
||||
</managed-property>
|
||||
<managed-property>
|
||||
<property-name>dictionaryService</property-name>
|
||||
<value>#{DictionaryService}</value>
|
||||
</managed-property>
|
||||
<managed-property>
|
||||
<property-name>mimetypeService</property-name>
|
||||
<value>#{MimetypeService}</value>
|
||||
</managed-property>
|
||||
<managed-property>
|
||||
<property-name>rulesBean</property-name>
|
||||
<value>#{RulesBean}</value>
|
||||
</managed-property>
|
||||
<managed-property>
|
||||
<property-name>personService</property-name>
|
||||
<value>#{PersonService}</value>
|
||||
</managed-property>
|
||||
<managed-property>
|
||||
<property-name>authorityService</property-name>
|
||||
<value>#{AuthorityService}</value>
|
||||
</managed-property>
|
||||
</managed-bean>
|
||||
|
||||
<managed-bean>
|
||||
<description>
|
||||
The bean that backs up the Run Action Wizard
|
||||
</description>
|
||||
<managed-bean-name>RunActionWizard</managed-bean-name>
|
||||
<managed-bean-class>org.alfresco.web.bean.actions.RunActionWizard</managed-bean-class>
|
||||
<managed-bean-scope>session</managed-bean-scope>
|
||||
<managed-property>
|
||||
<property-name>nodeService</property-name>
|
||||
@@ -803,7 +856,7 @@
|
||||
The bean that holds manage content rules state
|
||||
</description>
|
||||
<managed-bean-name>RulesBean</managed-bean-name>
|
||||
<managed-bean-class>org.alfresco.web.bean.RulesBean</managed-bean-class>
|
||||
<managed-bean-class>org.alfresco.web.bean.rules.RulesBean</managed-bean-class>
|
||||
<managed-bean-scope>session</managed-bean-scope>
|
||||
<managed-property>
|
||||
<property-name>browseBean</property-name>
|
||||
|
154
source/web/jsp/actions/actions.jsp
Normal file
154
source/web/jsp/actions/actions.jsp
Normal file
@@ -0,0 +1,154 @@
|
||||
<%--
|
||||
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="/WEB-INF/alfresco.tld" prefix="a" %>
|
||||
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
|
||||
|
||||
<f:verbatim>
|
||||
<script type="text/javascript">
|
||||
function itemSelected(inputField)
|
||||
{
|
||||
if (inputField.selectedIndex == 0)
|
||||
{
|
||||
document.getElementById("wizard:wizard-body:set-add-button").disabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById("wizard:wizard-body:set-add-button").disabled = false;
|
||||
}
|
||||
|
||||
// also check to see if a no parameters option has been selected, if it has, change
|
||||
// the explanation text and the button label
|
||||
var short_text = "</f:verbatim><a:outputText value='#{msg.click_add_to_list}' /><f:verbatim>";
|
||||
var long_text = "</f:verbatim><a:outputText value='#{msg.click_set_and_add}' /><f:verbatim>";
|
||||
var short_label = "</f:verbatim><a:outputText value='#{msg.add_to_list_button}' encodeForJavaScript='true' /><f:verbatim>";
|
||||
var long_label = "</f:verbatim><a:outputText value='#{msg.set_and_add_button}' encodeForJavaScript='true' /><f:verbatim>";
|
||||
|
||||
if (inputField.value == "no-condition")
|
||||
{
|
||||
document.getElementById("wizard:wizard-body:set-add-button").value = decodeURI(short_label);
|
||||
document.getElementById("wizard:wizard-body:instruction-text").innerHTML = short_text;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById("wizard:wizard-body:set-add-button").value = decodeURI(long_label);
|
||||
document.getElementById("wizard:wizard-body:instruction-text").innerHTML = long_text;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</f:verbatim>
|
||||
|
||||
<%-- TODO: Move this to the container page and add error-message-id attribute to dialog config --%>
|
||||
|
||||
<a:errors message="#{msg.error_wizard}" styleClass="errorMessage" />
|
||||
|
||||
<f:verbatim>
|
||||
<table cellpadding="2" cellspacing="2" border="0" width="100%">
|
||||
<tr>
|
||||
<td>1.</td>
|
||||
<td>
|
||||
</f:verbatim>
|
||||
<h:outputText value="#{msg.select_action}"/>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td width="98%">
|
||||
</f:verbatim>
|
||||
<h:selectOneMenu value="#{WizardManager.bean.action}"
|
||||
id="action" onchange="javascript:itemSelected(this);">
|
||||
<f:selectItems value="#{WizardManager.bean.actions}" />
|
||||
</h:selectOneMenu>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td>2.</td>
|
||||
<td>
|
||||
</f:verbatim>
|
||||
<h:outputText value="#{msg.click_set_and_add}" id="instruction-text"/>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td>
|
||||
</f:verbatim>
|
||||
<h:commandButton id="set-add-button" value="#{msg.set_and_add_button}"
|
||||
action="#{WizardManager.bean.promptForActionValues}"
|
||||
disabled="true"/>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td colspan='2'>
|
||||
</f:verbatim>
|
||||
<h:outputText value="#{msg.selected_actions}" />
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2'>
|
||||
</f:verbatim>
|
||||
<h:dataTable value="#{WizardManager.bean.allActionsDataModel}" var="row"
|
||||
rowClasses="selectedItemsRow,selectedItemsRowAlt"
|
||||
styleClass="selectedItems" headerClass="selectedItemsHeader"
|
||||
cellspacing="0" cellpadding="4"
|
||||
rendered="#{WizardManager.bean.allActionsDataModel.rowCount != 0}">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputText value="#{msg.summary}" />
|
||||
</f:facet>
|
||||
<h:outputText value="#{row.actionSummary}"/>
|
||||
<h:outputText value=" " escape="false"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<a:actionLink action="#{WizardManager.bean.removeAction}" image="/images/icons/delete.gif"
|
||||
value="#{msg.remove}" showLink="false" style="padding-left:6px;padding-right:2px" />
|
||||
<a:actionLink action="#{WizardManager.bean.editAction}" image="/images/icons/edit_icon.gif"
|
||||
value="#{msg.change}" showLink="false" />
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
<a:panel id="no-items" rendered="#{WizardManager.bean.allActionsDataModel.rowCount == 0}">
|
||||
<f:verbatim>
|
||||
<table cellspacing='0' cellpadding='2' border='0' class='selectedItems'>
|
||||
<tr>
|
||||
<td colspan='2' class='selectedItemsHeader'>
|
||||
</f:verbatim>
|
||||
<h:outputText id="no-items-name" value="#{msg.summary}" />
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='selectedItemsRow'>
|
||||
</f:verbatim>
|
||||
<h:outputText id="no-items-msg" value="#{msg.no_selected_items}" />
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</f:verbatim>
|
||||
</a:panel>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</f:verbatim>
|
@@ -24,14 +24,14 @@
|
||||
<%@ page isELIgnored="false" %>
|
||||
<%@ page import="org.alfresco.web.ui.common.PanelGenerator" %>
|
||||
|
||||
<r:page titleId="title_new_rule_remove_feature">
|
||||
<r:page titleId="title_action_add_feature">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="new-rule-remove-features">
|
||||
<h:form acceptCharset="UTF-8" id="add-features-action">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
@@ -39,7 +39,7 @@
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
<%@ include file="../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -47,14 +47,14 @@
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
<%@ include file="../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
<%@ include file="../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
@@ -69,8 +69,8 @@
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewRuleWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewRuleWizard.wizardDescription}" /></div>
|
||||
<div class="mainTitle"><h:outputText value="#{WizardManager.title}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{WizardManager.description}" /></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -105,8 +105,8 @@
|
||||
<tr>
|
||||
<td><nobr><h:outputText value="#{msg.select_feature}"/></nobr></td>
|
||||
<td width="90%">
|
||||
<h:selectOneMenu value="#{NewRuleWizard.actionProperties.aspect}">
|
||||
<f:selectItems value="#{NewRuleWizard.aspects}" />
|
||||
<h:selectOneMenu value="#{WizardManager.bean.actionProperties.aspect}">
|
||||
<f:selectItems value="#{WizardManager.bean.aspects}" />
|
||||
</h:selectOneMenu>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -120,12 +120,12 @@
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.ok}" action="#{NewRuleWizard.addAction}" styleClass="wizardButton" />
|
||||
<h:commandButton value="#{msg.ok}" action="#{WizardManager.bean.addAction}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewRuleWizard.cancelAddAction}"
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{WizardManager.bean.cancelAddAction}"
|
||||
styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
@@ -24,14 +24,14 @@
|
||||
<%@ page isELIgnored="false" %>
|
||||
<%@ page import="org.alfresco.web.ui.common.PanelGenerator" %>
|
||||
|
||||
<r:page titleId="title_new_rule_checkin">
|
||||
<r:page titleId="title_action_checkin">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="new-rule-check-in">
|
||||
<h:form acceptCharset="UTF-8" id="check-in-action">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
@@ -39,7 +39,7 @@
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
<%@ include file="../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -47,14 +47,14 @@
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
<%@ include file="../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
<%@ include file="../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
@@ -69,8 +69,8 @@
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewRuleWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewRuleWizard.wizardDescription}" /></div>
|
||||
<div class="mainTitle"><h:outputText value="#{WizardManager.title}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{WizardManager.description}" /></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -105,14 +105,14 @@
|
||||
<tr>
|
||||
<td valign="top"><nobr><h:outputText value="#{msg.version_notes}"/>:</nobr></td>
|
||||
<td width="90%">
|
||||
<h:inputTextarea value="#{NewRuleWizard.actionProperties.checkinDescription}"
|
||||
<h:inputTextarea value="#{WizardManager.bean.actionProperties.checkinDescription}"
|
||||
rows="2" cols="50" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td>
|
||||
<h:selectBooleanCheckbox value="#{NewRuleWizard.actionProperties.checkinMinorChange}" />
|
||||
<h:selectBooleanCheckbox value="#{WizardManager.bean.actionProperties.checkinMinorChange}" />
|
||||
<span style="vertical-align:20%"><h:outputText value="#{msg.minor_change}" /></span>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -126,12 +126,12 @@
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.ok}" action="#{NewRuleWizard.addAction}" styleClass="wizardButton" />
|
||||
<h:commandButton value="#{msg.ok}" action="#{WizardManager.bean.addAction}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewRuleWizard.cancelAddAction}"
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{WizardManager.bean.cancelAddAction}"
|
||||
styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
@@ -24,14 +24,14 @@
|
||||
<%@ page isELIgnored="false" %>
|
||||
<%@ page import="org.alfresco.web.ui.common.PanelGenerator" %>
|
||||
|
||||
<r:page titleId="title_new_rule_checkout">
|
||||
<r:page titleId="title_action_checkout">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="new-rule-check-out">
|
||||
<h:form acceptCharset="UTF-8" id="check-out-action">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
@@ -39,7 +39,7 @@
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
<%@ include file="../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -47,14 +47,14 @@
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
<%@ include file="../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
<%@ include file="../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
@@ -69,8 +69,8 @@
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewRuleWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewRuleWizard.wizardDescription}" /></div>
|
||||
<div class="mainTitle"><h:outputText value="#{WizardManager.title}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{WizardManager.description}" /></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -106,7 +106,7 @@
|
||||
<td><nobr><h:outputText value="#{msg.checkout_location}"/>:</nobr></td>
|
||||
<td width="100%">
|
||||
<r:spaceSelector id="space-selector" label="#{msg.select_checkout_prompt}"
|
||||
value="#{NewRuleWizard.actionProperties.destinationLocation}"
|
||||
value="#{WizardManager.bean.actionProperties.destinationLocation}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
styleClass="selector"/>
|
||||
</td>
|
||||
@@ -121,13 +121,13 @@
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.ok}" action="#{NewRuleWizard.addAction}" styleClass="wizardButton"
|
||||
disabled="#{NewRuleWizard.actionProperties.destinationLocation == null}" />
|
||||
<h:commandButton value="#{msg.ok}" action="#{WizardManager.bean.addAction}" styleClass="wizardButton"
|
||||
disabled="#{WizardManager.bean.actionProperties.destinationLocation == null}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewRuleWizard.cancelAddAction}"
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{WizardManager.bean.cancelAddAction}"
|
||||
styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
@@ -24,14 +24,14 @@
|
||||
<%@ page isELIgnored="false" %>
|
||||
<%@ page import="org.alfresco.web.ui.common.PanelGenerator" %>
|
||||
|
||||
<r:page titleId="title_new_rule_move">
|
||||
<r:page titleId="title_action_copy">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="new-rule-move">
|
||||
<h:form acceptCharset="UTF-8" id="copy-action">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
@@ -39,7 +39,7 @@
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
<%@ include file="../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -47,14 +47,14 @@
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
<%@ include file="../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
<%@ include file="../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
@@ -69,8 +69,8 @@
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewRuleWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewRuleWizard.wizardDescription}" /></div>
|
||||
<div class="mainTitle"><h:outputText value="#{WizardManager.title}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{WizardManager.description}" /></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -106,7 +106,7 @@
|
||||
<td><h:outputText value="#{msg.destination}"/>:</td>
|
||||
<td width="90%">
|
||||
<r:spaceSelector id="space-selector" label="#{msg.select_destination_prompt}"
|
||||
value="#{NewRuleWizard.actionProperties.destinationLocation}"
|
||||
value="#{WizardManager.bean.actionProperties.destinationLocation}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
styleClass="selector"/>
|
||||
</td>
|
||||
@@ -121,13 +121,13 @@
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.ok}" action="#{NewRuleWizard.addAction}" styleClass="wizardButton"
|
||||
disabled="#{NewRuleWizard.actionProperties.destinationLocation == null}" />
|
||||
<h:commandButton value="#{msg.ok}" action="#{WizardManager.bean.addAction}" styleClass="wizardButton"
|
||||
disabled="#{WizardManager.bean.actionProperties.destinationLocation == null}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewRuleWizard.cancelAddAction}"
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{WizardManager.bean.cancelAddAction}"
|
||||
styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
@@ -24,14 +24,14 @@
|
||||
<%@ page isELIgnored="false" %>
|
||||
<%@ page import="org.alfresco.web.ui.common.PanelGenerator" %>
|
||||
|
||||
<r:page titleId="title_new_rule_import">
|
||||
<r:page titleId="title_action_import">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="new-rule-import">
|
||||
<h:form acceptCharset="UTF-8" id="import-action">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
@@ -39,7 +39,7 @@
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
<%@ include file="../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -47,14 +47,14 @@
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
<%@ include file="../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
<%@ include file="../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
@@ -69,8 +69,8 @@
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewRuleWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewRuleWizard.wizardDescription}" /></div>
|
||||
<div class="mainTitle"><h:outputText value="#{WizardManager.title}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{WizardManager.description}" /></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -107,7 +107,7 @@
|
||||
<td width="90%">
|
||||
<r:spaceSelector id="category-selector"
|
||||
label="#{msg.select_destination_prompt}"
|
||||
value="#{NewRuleWizard.actionProperties.destinationLocation}"
|
||||
value="#{WizardManager.bean.actionProperties.destinationLocation}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
style="border: 1px dashed #cccccc; padding: 6px;"/>
|
||||
</td>
|
||||
@@ -117,8 +117,8 @@
|
||||
<tr>
|
||||
<td><nobr><h:outputText value="#{msg.encoding}"/>:</nobr></td>
|
||||
<td>
|
||||
<h:selectOneMenu value="#{NewRuleWizard.actionProperties.encoding}">
|
||||
<f:selectItems value="#{NewRuleWizard.encodings}" />
|
||||
<h:selectOneMenu value="#{WizardManager.bean.actionProperties.encoding}">
|
||||
<f:selectItems value="#{WizardManager.bean.encodings}" />
|
||||
</h:selectOneMenu>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -133,13 +133,13 @@
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.ok}" action="#{NewRuleWizard.addAction}" styleClass="wizardButton"
|
||||
disabled="#{NewRuleWizard.actionProperties.destinationLocation == null}" />
|
||||
<h:commandButton value="#{msg.ok}" action="#{WizardManager.bean.addAction}" styleClass="wizardButton"
|
||||
disabled="#{WizardManager.bean.actionProperties.destinationLocation == null}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewRuleWizard.cancelAddAction}"
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{WizardManager.bean.cancelAddAction}"
|
||||
styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
@@ -24,14 +24,14 @@
|
||||
<%@ page isELIgnored="false" %>
|
||||
<%@ page import="org.alfresco.web.ui.common.PanelGenerator" %>
|
||||
|
||||
<r:page titleId="title_new_rule_link_category">
|
||||
<r:page titleId="title_action_link_category">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="new-rule-link-category">
|
||||
<h:form acceptCharset="UTF-8" id="link-category-action">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
@@ -39,7 +39,7 @@
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
<%@ include file="../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -47,14 +47,14 @@
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
<%@ include file="../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
<%@ include file="../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
@@ -69,8 +69,8 @@
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewRuleWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewRuleWizard.wizardDescription}" /></div>
|
||||
<div class="mainTitle"><h:outputText value="#{WizardManager.title}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{WizardManager.description}" /></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -106,7 +106,7 @@
|
||||
<td valign="top"><h:outputText value="#{msg.category}"/>:</td>
|
||||
<td width="90%">
|
||||
<r:categorySelector id="category-selector" label="#{msg.select_category_prompt}"
|
||||
value="#{NewRuleWizard.actionProperties.category}"
|
||||
value="#{WizardManager.bean.actionProperties.category}"
|
||||
styleClass="selector"/>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -120,13 +120,13 @@
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.ok}" action="#{NewRuleWizard.addAction}" styleClass="wizardButton"
|
||||
disabled="#{NewRuleWizard.actionProperties.category == null}" />
|
||||
<h:commandButton value="#{msg.ok}" action="#{WizardManager.bean.addAction}" styleClass="wizardButton"
|
||||
disabled="#{WizardManager.bean.actionProperties.category == null}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewRuleWizard.cancelAddAction}"
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{WizardManager.bean.cancelAddAction}"
|
||||
styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
@@ -24,28 +24,28 @@
|
||||
<%@ page isELIgnored="false" %>
|
||||
<%@ page import="org.alfresco.web.ui.common.PanelGenerator" %>
|
||||
|
||||
<r:page titleId="title_new_rule_email">
|
||||
<r:page titleId="title_action_email">
|
||||
|
||||
|
||||
<script language="JavaScript1.2">
|
||||
<script type="text/javascript">
|
||||
|
||||
window.onload = pageLoaded;
|
||||
|
||||
function pageLoaded()
|
||||
{
|
||||
document.getElementById("new-rule-email:subject").focus();
|
||||
document.getElementById("email-action:subject").focus();
|
||||
checkButtonState();
|
||||
}
|
||||
|
||||
function checkButtonState()
|
||||
{
|
||||
if (document.getElementById("new-rule-email:subject").value.length == 0)
|
||||
if (document.getElementById("email-action:subject").value.length == 0)
|
||||
{
|
||||
document.getElementById("new-rule-email:ok-button").disabled = true;
|
||||
document.getElementById("email-action:ok-button").disabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById("new-rule-email:ok-button").disabled = false;
|
||||
document.getElementById("email-action:ok-button").disabled = false;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -55,7 +55,7 @@
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="new-rule-email">
|
||||
<h:form acceptCharset="UTF-8" id="email-action">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
@@ -63,7 +63,7 @@
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
<%@ include file="../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -71,14 +71,14 @@
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
<%@ include file="../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
<%@ include file="../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
@@ -93,8 +93,8 @@
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewRuleWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewRuleWizard.wizardDescription}" /></div>
|
||||
<div class="mainTitle"><h:outputText value="#{WizardManager.title}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{WizardManager.description}" /></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -135,18 +135,18 @@
|
||||
<td colspan=2 style="padding-left:16px">
|
||||
<a:genericPicker id="picker" filters="#{InviteSpaceUsersWizard.filters}"
|
||||
queryCallback="#{InviteSpaceUsersWizard.pickerCallback}"
|
||||
actionListener="#{NewRuleWizard.addRecipient}" />
|
||||
actionListener="#{WizardManager.bean.addRecipient}" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr><td colspan="2" style="padding-left:12px">2. <h:outputText value="#{msg.selected_recipients}" /></td></tr>
|
||||
<tr>
|
||||
<td colspan=2 style="padding-left:12px">
|
||||
<h:dataTable value="#{NewRuleWizard.emailRecipientsDataModel}" var="row"
|
||||
<h:dataTable value="#{WizardManager.bean.emailRecipientsDataModel}" var="row"
|
||||
rowClasses="selectedItemsRow,selectedItemsRowAlt"
|
||||
styleClass="selectedItems" headerClass="selectedItemsHeader"
|
||||
cellspacing="0" cellpadding="4"
|
||||
rendered="#{NewRuleWizard.emailRecipientsDataModel.rowCount != 0}">
|
||||
rendered="#{WizardManager.bean.emailRecipientsDataModel.rowCount != 0}">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputText value="#{msg.name}" />
|
||||
@@ -154,11 +154,11 @@
|
||||
<h:outputText value="#{row.name}" />
|
||||
</h:column>
|
||||
<h:column>
|
||||
<a:actionLink actionListener="#{NewRuleWizard.removeRecipient}" image="/images/icons/delete.gif"
|
||||
<a:actionLink actionListener="#{WizardManager.bean.removeRecipient}" image="/images/icons/delete.gif"
|
||||
value="#{msg.remove}" showLink="false" style="padding-left:6px" />
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
<a:panel id="no-items" rendered="#{NewRuleWizard.emailRecipientsDataModel.rowCount == 0}">
|
||||
<a:panel id="no-items" rendered="#{WizardManager.bean.emailRecipientsDataModel.rowCount == 0}">
|
||||
<table cellspacing='0' cellpadding='2' border='0' class='selectedItems'>
|
||||
<tr>
|
||||
<td colspan='2' class='selectedItemsHeader'><h:outputText id="no-items-name" value="#{msg.name}" /></td>
|
||||
@@ -177,7 +177,7 @@
|
||||
<tr>
|
||||
<td style="padding-left:16px"><h:outputText value="#{msg.subject}"/>:</td>
|
||||
<td width="90%">
|
||||
<h:inputText id="subject" value="#{NewRuleWizard.actionProperties.subject}" size="75" maxlength="1024"
|
||||
<h:inputText id="subject" value="#{WizardManager.bean.actionProperties.subject}" size="75" maxlength="1024"
|
||||
onkeyup="javascript:checkButtonState();" /> *
|
||||
</td>
|
||||
</tr>
|
||||
@@ -185,17 +185,17 @@
|
||||
<tr>
|
||||
<td></td>
|
||||
<td valign="top">
|
||||
<table cellspacing=0 cellpadding=2 border=0
|
||||
<table cellspacing="0" cellpadding="2" border="0">
|
||||
<tr>
|
||||
<td><h:outputText value="#{msg.action_mail_template}"/>:</td>
|
||||
<td>
|
||||
<%-- Templates drop-down selector --%>
|
||||
<h:selectOneMenu value="#{NewRuleWizard.actionProperties.template}">
|
||||
<h:selectOneMenu value="#{WizardManager.bean.actionProperties.template}">
|
||||
<f:selectItems value="#{TemplateSupportBean.emailTemplates}" />
|
||||
</h:selectOneMenu>
|
||||
</td>
|
||||
<td><h:commandButton value="#{msg.insert_template}" actionListener="#{NewRuleWizard.insertTemplate}" styleClass="wizardButton" /></td>
|
||||
<td><h:commandButton value="#{msg.discard_template}" actionListener="#{NewRuleWizard.discardTemplate}" styleClass="wizardButton" disabled="#{NewRuleWizard.usingTemplate == null}" /></td>
|
||||
<td><h:commandButton value="#{msg.insert_template}" actionListener="#{WizardManager.bean.insertTemplate}" styleClass="wizardButton" /></td>
|
||||
<td><h:commandButton value="#{msg.discard_template}" actionListener="#{WizardManager.bean.discardTemplate}" styleClass="wizardButton" disabled="#{WizardManager.bean.usingTemplate == null}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@@ -204,8 +204,8 @@
|
||||
<tr>
|
||||
<td style="padding-left:16px"><h:outputText value="#{msg.message}"/>:</td>
|
||||
<td>
|
||||
<h:inputTextarea value="#{NewRuleWizard.actionProperties.message}"
|
||||
rows="4" cols="75" disabled="#{NewRuleWizard.usingTemplate != null}" />
|
||||
<h:inputTextarea value="#{WizardManager.bean.actionProperties.message}"
|
||||
rows="4" cols="75" disabled="#{WizardManager.bean.usingTemplate != null}" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -219,13 +219,13 @@
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton id="ok-button" value="#{msg.ok}" action="#{NewRuleWizard.addAction}"
|
||||
<h:commandButton id="ok-button" value="#{msg.ok}" action="#{WizardManager.bean.addAction}"
|
||||
styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewRuleWizard.cancelAddAction}"
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{WizardManager.bean.cancelAddAction}"
|
||||
styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
@@ -24,14 +24,14 @@
|
||||
<%@ page isELIgnored="false" %>
|
||||
<%@ page import="org.alfresco.web.ui.common.PanelGenerator" %>
|
||||
|
||||
<r:page titleId="title_new_rule_copy">
|
||||
<r:page titleId="title_action_move">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="new-rule-copy">
|
||||
<h:form acceptCharset="UTF-8" id="move-action">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
@@ -39,7 +39,7 @@
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
<%@ include file="../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -47,14 +47,14 @@
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
<%@ include file="../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
<%@ include file="../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
@@ -69,8 +69,8 @@
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewRuleWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewRuleWizard.wizardDescription}" /></div>
|
||||
<div class="mainTitle"><h:outputText value="#{WizardManager.title}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{WizardManager.description}" /></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -106,7 +106,7 @@
|
||||
<td><h:outputText value="#{msg.destination}"/>:</td>
|
||||
<td width="90%">
|
||||
<r:spaceSelector id="space-selector" label="#{msg.select_destination_prompt}"
|
||||
value="#{NewRuleWizard.actionProperties.destinationLocation}"
|
||||
value="#{WizardManager.bean.actionProperties.destinationLocation}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
styleClass="selector"/>
|
||||
</td>
|
||||
@@ -121,13 +121,13 @@
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.ok}" action="#{NewRuleWizard.addAction}" styleClass="wizardButton"
|
||||
disabled="#{NewRuleWizard.actionProperties.destinationLocation == null}" />
|
||||
<h:commandButton value="#{msg.ok}" action="#{WizardManager.bean.addAction}" styleClass="wizardButton"
|
||||
disabled="#{WizardManager.bean.actionProperties.destinationLocation == null}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewRuleWizard.cancelAddAction}"
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{WizardManager.bean.cancelAddAction}"
|
||||
styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
@@ -24,14 +24,14 @@
|
||||
<%@ page isELIgnored="false" %>
|
||||
<%@ page import="org.alfresco.web.ui.common.PanelGenerator" %>
|
||||
|
||||
<r:page titleId="title_specialise_type_action">
|
||||
<r:page titleId="title_action_remove_feature">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="new-rule-specialise-type-action">
|
||||
<h:form acceptCharset="UTF-8" id="remove-feature-action">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
@@ -39,7 +39,7 @@
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
<%@ include file="../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -47,14 +47,14 @@
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
<%@ include file="../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
<%@ include file="../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
@@ -69,8 +69,8 @@
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewRuleWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewRuleWizard.wizardDescription}" /></div>
|
||||
<div class="mainTitle"><h:outputText value="#{WizardManager.title}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{WizardManager.description}" /></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -105,8 +105,8 @@
|
||||
<tr>
|
||||
<td><nobr><h:outputText value="#{msg.select_feature}"/></nobr></td>
|
||||
<td width="90%">
|
||||
<h:selectOneMenu value="#{NewRuleWizard.actionProperties.objecttype}">
|
||||
<f:selectItems value="#{NewRuleWizard.objectTypes}" />
|
||||
<h:selectOneMenu value="#{WizardManager.bean.actionProperties.aspect}">
|
||||
<f:selectItems value="#{WizardManager.bean.aspects}" />
|
||||
</h:selectOneMenu>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -120,12 +120,12 @@
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.ok}" action="#{NewRuleWizard.addAction}" styleClass="wizardButton" />
|
||||
<h:commandButton value="#{msg.ok}" action="#{WizardManager.bean.addAction}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewRuleWizard.cancelAddAction}"
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{WizardManager.bean.cancelAddAction}"
|
||||
styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
@@ -24,29 +24,29 @@
|
||||
<%@ page isELIgnored="false" %>
|
||||
<%@ page import="org.alfresco.web.ui.common.PanelGenerator" %>
|
||||
|
||||
<r:page titleId="title_new_rule_simple_workflow">
|
||||
<r:page titleId="title_action_simple_workflow">
|
||||
|
||||
<script language="JavaScript1.2">
|
||||
<script type="text/javascript">
|
||||
|
||||
window.onload = pageLoaded;
|
||||
|
||||
function pageLoaded()
|
||||
{
|
||||
document.getElementById("new-rule-simple-workflow:approve-step-name").focus();
|
||||
document.getElementById("simple-workflow-action:approve-step-name").focus();
|
||||
checkButtonState();
|
||||
}
|
||||
|
||||
function checkButtonState()
|
||||
{
|
||||
if (document.getElementById("new-rule-simple-workflow:approve-step-name").value.length == 0 ||
|
||||
document.getElementById("new-rule-simple-workflow:client-approve-folder_selected").value.length == 0 ||
|
||||
if (document.getElementById("simple-workflow-action:approve-step-name").value.length == 0 ||
|
||||
document.getElementById("simple-workflow-action:client-approve-folder_selected").value.length == 0 ||
|
||||
rejectValid() == false)
|
||||
{
|
||||
document.getElementById("new-rule-simple-workflow:ok-button").disabled = true;
|
||||
document.getElementById("simple-workflow-action:ok-button").disabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById("new-rule-simple-workflow:ok-button").disabled = false;
|
||||
document.getElementById("simple-workflow-action:ok-button").disabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,9 +54,9 @@
|
||||
{
|
||||
var result = true;
|
||||
|
||||
if (document.forms['new-rule-simple-workflow']['new-rule-simple-workflow:reject-step-present'][0].checked &&
|
||||
(document.getElementById("new-rule-simple-workflow:reject-step-name").value.length == 0 ||
|
||||
document.getElementById("new-rule-simple-workflow:client-reject-folder_selected").value.length == 0))
|
||||
if (document.forms['simple-workflow-action']['simple-workflow-action:reject-step-present'][0].checked &&
|
||||
(document.getElementById("simple-workflow-action:reject-step-name").value.length == 0 ||
|
||||
document.getElementById("simple-workflow-action:client-reject-folder_selected").value.length == 0))
|
||||
{
|
||||
result = false;
|
||||
}
|
||||
@@ -70,7 +70,7 @@
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="new-rule-simple-workflow">
|
||||
<h:form acceptCharset="UTF-8" id="simple-workflow-action">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
@@ -78,7 +78,7 @@
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
<%@ include file="../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -86,14 +86,14 @@
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
<%@ include file="../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
<%@ include file="../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
@@ -108,8 +108,8 @@
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewRuleWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewRuleWizard.wizardDescription}" /></div>
|
||||
<div class="mainTitle"><h:outputText value="#{WizardManager.title}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{WizardManager.description}" /></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -147,7 +147,7 @@
|
||||
<tr>
|
||||
<td><nobr><h:outputText value="#{msg.approve_step_name}"/>:</nobr></td>
|
||||
<td width="90%">
|
||||
<h:inputText id="approve-step-name" value="#{NewRuleWizard.actionProperties.approveStepName}"
|
||||
<h:inputText id="approve-step-name" value="#{WizardManager.bean.actionProperties.approveStepName}"
|
||||
onkeyup="javascript:checkButtonState();" />
|
||||
</td>
|
||||
</tr>
|
||||
@@ -158,7 +158,7 @@
|
||||
<table cellpadding="2" cellspacing="2" border="0">
|
||||
<tr>
|
||||
<td valign="top">
|
||||
<h:selectOneRadio value="#{NewRuleWizard.actionProperties.approveAction}">
|
||||
<h:selectOneRadio value="#{WizardManager.bean.actionProperties.approveAction}">
|
||||
<f:selectItem itemValue="move" itemLabel="#{msg.move}" />
|
||||
<f:selectItem itemValue="copy" itemLabel="#{msg.copy}" />
|
||||
</h:selectOneRadio>
|
||||
@@ -169,7 +169,7 @@
|
||||
<td style="padding-top:6px;">
|
||||
<r:spaceSelector id="client-approve-folder"
|
||||
label="#{msg.select_destination_prompt}"
|
||||
value="#{NewRuleWizard.actionProperties.approveFolder}"
|
||||
value="#{WizardManager.bean.actionProperties.approveFolder}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
styleClass="selector"/>
|
||||
</td>
|
||||
@@ -186,7 +186,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<h:selectOneRadio id="reject-step-present" value="#{NewRuleWizard.actionProperties.rejectStepPresent}"
|
||||
<h:selectOneRadio id="reject-step-present" value="#{WizardManager.bean.actionProperties.rejectStepPresent}"
|
||||
onclick="javascript:checkButtonState();" >
|
||||
<f:selectItem itemValue="yes" itemLabel="#{msg.yes}" />
|
||||
<f:selectItem itemValue="no" itemLabel="#{msg.no}" />
|
||||
@@ -203,7 +203,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<nobr><h:outputText value="#{msg.reject_step_name}"/>:</nobr>
|
||||
<h:inputText id="reject-step-name" value="#{NewRuleWizard.actionProperties.rejectStepName}"
|
||||
<h:inputText id="reject-step-name" value="#{WizardManager.bean.actionProperties.rejectStepName}"
|
||||
onkeyup="javascript:checkButtonState();" />
|
||||
</td>
|
||||
</tr>
|
||||
@@ -214,7 +214,7 @@
|
||||
<table cellpadding="2" cellspacing="2" border="0">
|
||||
<tr>
|
||||
<td valign="top">
|
||||
<h:selectOneRadio value="#{NewRuleWizard.actionProperties.rejectAction}">
|
||||
<h:selectOneRadio value="#{WizardManager.bean.actionProperties.rejectAction}">
|
||||
<f:selectItem itemValue="move" itemLabel="#{msg.move}" />
|
||||
<f:selectItem itemValue="copy" itemLabel="#{msg.copy}" />
|
||||
</h:selectOneRadio>
|
||||
@@ -225,7 +225,7 @@
|
||||
<td style="padding-top:6px;">
|
||||
<r:spaceSelector id="client-reject-folder"
|
||||
label="#{msg.select_destination_prompt}"
|
||||
value="#{NewRuleWizard.actionProperties.rejectFolder}"
|
||||
value="#{WizardManager.bean.actionProperties.rejectFolder}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
styleClass="selector"/>
|
||||
</td>
|
||||
@@ -249,13 +249,13 @@
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton id="ok-button" value="#{msg.ok}" action="#{NewRuleWizard.addAction}"
|
||||
<h:commandButton id="ok-button" value="#{msg.ok}" action="#{WizardManager.bean.addAction}"
|
||||
styleClass="wizardButton" disabled="true" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewRuleWizard.cancelAddAction}"
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{WizardManager.bean.cancelAddAction}"
|
||||
styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
@@ -24,14 +24,14 @@
|
||||
<%@ page isELIgnored="false" %>
|
||||
<%@ page import="org.alfresco.web.ui.common.PanelGenerator" %>
|
||||
|
||||
<r:page titleId="title_new_rule_add_feature">
|
||||
<r:page titleId="title_action_specialise_type">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="new-rule-add-features">
|
||||
<h:form acceptCharset="UTF-8" id="specialise-type-action">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
@@ -39,7 +39,7 @@
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
<%@ include file="../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -47,14 +47,14 @@
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
<%@ include file="../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
<%@ include file="../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
@@ -69,8 +69,8 @@
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewRuleWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewRuleWizard.wizardDescription}" /></div>
|
||||
<div class="mainTitle"><h:outputText value="#{WizardManager.title}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{WizardManager.description}" /></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -103,10 +103,10 @@
|
||||
</tr>
|
||||
<tr><td colspan="2" class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td><nobr><h:outputText value="#{msg.select_feature}"/></nobr></td>
|
||||
<td><nobr><h:outputText value="#{msg.select_type}"/></nobr></td>
|
||||
<td width="90%">
|
||||
<h:selectOneMenu value="#{NewRuleWizard.actionProperties.aspect}">
|
||||
<f:selectItems value="#{NewRuleWizard.aspects}" />
|
||||
<h:selectOneMenu value="#{WizardManager.bean.actionProperties.objecttype}">
|
||||
<f:selectItems value="#{WizardManager.bean.objectTypes}" />
|
||||
</h:selectOneMenu>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -120,12 +120,12 @@
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.ok}" action="#{NewRuleWizard.addAction}" styleClass="wizardButton" />
|
||||
<h:commandButton value="#{msg.ok}" action="#{WizardManager.bean.addAction}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewRuleWizard.cancelAddAction}"
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{WizardManager.bean.cancelAddAction}"
|
||||
styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
@@ -24,14 +24,14 @@
|
||||
<%@ page isELIgnored="false" %>
|
||||
<%@ page import="org.alfresco.web.ui.common.PanelGenerator" %>
|
||||
|
||||
<r:page titleId="title_new_rule_transform_image">
|
||||
<r:page titleId="title_action_transform_image">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="new-rule-transform-image">
|
||||
<h:form acceptCharset="UTF-8" id="transform-image-action">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
@@ -39,7 +39,7 @@
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
<%@ include file="../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -47,14 +47,14 @@
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
<%@ include file="../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
<%@ include file="../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
@@ -69,8 +69,8 @@
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewRuleWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewRuleWizard.wizardDescription}" /></div>
|
||||
<div class="mainTitle"><h:outputText value="#{WizardManager.title}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{WizardManager.description}" /></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -105,15 +105,15 @@
|
||||
<tr>
|
||||
<td><nobr><h:outputText value="#{msg.required_format}"/>:</nobr></td>
|
||||
<td width="90%">
|
||||
<h:selectOneMenu value="#{NewRuleWizard.actionProperties.imageTransformer}">
|
||||
<f:selectItems value="#{NewRuleWizard.imageTransformers}" />
|
||||
<h:selectOneMenu value="#{WizardManager.bean.actionProperties.imageTransformer}">
|
||||
<f:selectItems value="#{WizardManager.bean.imageTransformers}" />
|
||||
</h:selectOneMenu>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h:outputText value="#{msg.options}"/>:</td>
|
||||
<td>
|
||||
<h:inputText value="#{NewRuleWizard.actionProperties.transformOptions}" size="50" maxlength="1024" />
|
||||
<h:inputText value="#{WizardManager.bean.actionProperties.transformOptions}" size="50" maxlength="1024" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan="2" class="paddingRow"></td></tr>
|
||||
@@ -121,7 +121,7 @@
|
||||
<td><h:outputText value="#{msg.destination}"/>:</td>
|
||||
<td>
|
||||
<r:spaceSelector id="space-selector" label="#{msg.select_destination_prompt}"
|
||||
value="#{NewRuleWizard.actionProperties.destinationLocation}"
|
||||
value="#{WizardManager.bean.actionProperties.destinationLocation}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
styleClass="selector"/>
|
||||
</td>
|
||||
@@ -136,13 +136,13 @@
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.ok}" action="#{NewRuleWizard.addAction}" styleClass="wizardButton"
|
||||
disabled="#{NewRuleWizard.actionProperties.destinationLocation == null}" />
|
||||
<h:commandButton value="#{msg.ok}" action="#{WizardManager.bean.addAction}" styleClass="wizardButton"
|
||||
disabled="#{WizardManager.bean.actionProperties.destinationLocation == null}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewRuleWizard.cancelAddAction}"
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{WizardManager.bean.cancelAddAction}"
|
||||
styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
@@ -24,14 +24,14 @@
|
||||
<%@ page isELIgnored="false" %>
|
||||
<%@ page import="org.alfresco.web.ui.common.PanelGenerator" %>
|
||||
|
||||
<r:page titleId="title_new_rule_transform">
|
||||
<r:page titleId="title_action_transform">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="new-rule-transform">
|
||||
<h:form acceptCharset="UTF-8" id="transform-action">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
@@ -39,7 +39,7 @@
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
<%@ include file="../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -47,14 +47,14 @@
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
<%@ include file="../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
<%@ include file="../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
@@ -69,8 +69,8 @@
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewRuleWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewRuleWizard.wizardDescription}" /></div>
|
||||
<div class="mainTitle"><h:outputText value="#{WizardManager.title}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{WizardManager.description}" /></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -105,8 +105,8 @@
|
||||
<tr>
|
||||
<td><nobr><h:outputText value="#{msg.required_format}"/>:</nobr></td>
|
||||
<td width="90%">
|
||||
<h:selectOneMenu value="#{NewRuleWizard.actionProperties.transformer}">
|
||||
<f:selectItems value="#{NewRuleWizard.transformers}" />
|
||||
<h:selectOneMenu value="#{WizardManager.bean.actionProperties.transformer}">
|
||||
<f:selectItems value="#{WizardManager.bean.transformers}" />
|
||||
</h:selectOneMenu>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -115,7 +115,7 @@
|
||||
<td><h:outputText value="#{msg.destination}"/>:</td>
|
||||
<td>
|
||||
<r:spaceSelector id="space-selector" label="#{msg.select_destination_prompt}"
|
||||
value="#{NewRuleWizard.actionProperties.destinationLocation}"
|
||||
value="#{WizardManager.bean.actionProperties.destinationLocation}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
styleClass="selector"/>
|
||||
</td>
|
||||
@@ -130,13 +130,13 @@
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.ok}" action="#{NewRuleWizard.addAction}" styleClass="wizardButton"
|
||||
disabled="#{NewRuleWizard.actionProperties.destinationLocation == null}" />
|
||||
<h:commandButton value="#{msg.ok}" action="#{WizardManager.bean.addAction}" styleClass="wizardButton"
|
||||
disabled="#{WizardManager.bean.actionProperties.destinationLocation == null}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewRuleWizard.cancelAddAction}"
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{WizardManager.bean.cancelAddAction}"
|
||||
styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
@@ -193,7 +193,7 @@
|
||||
<f:facet name="empty">
|
||||
<%-- TODO: either build complete message in BrowseBean or have no icon... --%>
|
||||
<h:outputFormat value="#{msg.no_space_items}" escape="false" rendered="#{NavigationBean.searchContext == null}">
|
||||
<f:param value="#{msg.new_space}" />
|
||||
<f:param value="#{msg.create_space}" />
|
||||
</h:outputFormat>
|
||||
</f:facet>
|
||||
|
||||
|
@@ -74,7 +74,7 @@
|
||||
</td>
|
||||
<td align=right>
|
||||
<%-- Current object actions --%>
|
||||
<a:actionLink value="#{msg.create_rule}" image="/images/icons/new_rule.gif" padding="4" action="createRule" actionListener="#{NewRuleWizard.startWizard}" />
|
||||
<a:actionLink value="#{msg.create_rule}" image="/images/icons/new_rule.gif" padding="4" action="wizard:createRule" />
|
||||
</td>
|
||||
<td class="separator" width=1></td>
|
||||
<td width="125" style="padding-left:2px">
|
||||
@@ -125,7 +125,7 @@
|
||||
<h:panelGroup>
|
||||
<a:booleanEvaluator value="#{r.local}">
|
||||
<a:actionLink value="#{r.title}" image="/images/icons/rule.gif"
|
||||
actionListener="#{NewRuleWizard.startWizardForEdit}" action="editRule"
|
||||
actionListener="#{RulesBean.setupRuleAction}" action="wizard:editRule"
|
||||
showLink="false">
|
||||
<f:param name="id" value="#{r.id}" />
|
||||
</a:actionLink>
|
||||
@@ -136,8 +136,8 @@
|
||||
</h:panelGroup>
|
||||
</f:facet>
|
||||
<a:booleanEvaluator value="#{r.local}">
|
||||
<a:actionLink value="#{r.title}" actionListener="#{NewRuleWizard.startWizardForEdit}"
|
||||
action="editRule">
|
||||
<a:actionLink value="#{r.title}" actionListener="#{RulesBean.setupRuleAction}"
|
||||
action="wizard:editRule">
|
||||
<f:param name="id" value="#{r.id}" />
|
||||
</a:actionLink>
|
||||
</a:booleanEvaluator>
|
||||
@@ -197,7 +197,7 @@
|
||||
</a:actionLink>
|
||||
<a:actionLink value="#{msg.change_details}" image="/images/icons/change_rule.gif"
|
||||
showLink="false" styleClass="inlineAction"
|
||||
actionListener="#{NewRuleWizard.startWizardForEdit}" action="editRule">
|
||||
actionListener="#{RulesBean.setupRuleAction}" action="wizard:editRule">
|
||||
<f:param name="id" value="#{r.id}" />
|
||||
</a:actionLink>
|
||||
</a:booleanEvaluator>
|
||||
|
@@ -24,14 +24,14 @@
|
||||
<%@ page isELIgnored="false" %>
|
||||
<%@ page import="org.alfresco.web.ui.common.PanelGenerator" %>
|
||||
|
||||
<r:page titleId="title_new_rule_cond_subtype">
|
||||
<r:page titleId="title_condition_has_mimetype">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="new-rule-is-subtype">
|
||||
<h:form acceptCharset="UTF-8" id="has-mimetype-condition">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
@@ -39,7 +39,7 @@
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
<%@ include file="../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -47,14 +47,14 @@
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
<%@ include file="../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
<%@ include file="../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
@@ -69,8 +69,8 @@
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewRuleWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewRuleWizard.wizardDescription}" /></div>
|
||||
<div class="mainTitle"><h:outputText value="#{WizardManager.title}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{WizardManager.description}" /></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -105,8 +105,8 @@
|
||||
<tr>
|
||||
<td><nobr><h:outputText value="#{msg.type}"/>:</nobr></td>
|
||||
<td width="98%">
|
||||
<h:selectOneMenu value="#{NewRuleWizard.conditionProperties.modeltype}">
|
||||
<f:selectItems value="#{NewRuleWizard.modelTypes}" />
|
||||
<h:selectOneMenu value="#{WizardManager.bean.conditionProperties.mimetype}">
|
||||
<f:selectItems value="#{WizardManager.bean.mimeTypes}" />
|
||||
</h:selectOneMenu>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -114,7 +114,7 @@
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table><tr>
|
||||
<td><h:selectBooleanCheckbox value="#{NewRuleWizard.conditionProperties.notcondition}"/></td>
|
||||
<td><h:selectBooleanCheckbox value="#{WizardManager.bean.conditionProperties.notcondition}"/></td>
|
||||
<td><h:outputText value="#{msg.not_condition_result}"/></td>
|
||||
</tr></table>
|
||||
</td>
|
||||
@@ -129,12 +129,12 @@
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.ok}" action="#{NewRuleWizard.addCondition}" styleClass="wizardButton"/>
|
||||
<h:commandButton value="#{msg.ok}" action="#{WizardManager.bean.addCondition}" styleClass="wizardButton"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewRuleWizard.cancelAddCondition}"
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{WizardManager.bean.cancelAddCondition}"
|
||||
styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
@@ -24,13 +24,13 @@
|
||||
<%@ page isELIgnored="false" %>
|
||||
<%@ page import="org.alfresco.web.ui.common.PanelGenerator" %>
|
||||
|
||||
<r:page titleId="title_new_rule_cond_contains">
|
||||
<r:page titleId="title_condition_contains_text">
|
||||
|
||||
<script language="JavaScript1.2">
|
||||
function checkButtonState(inputField)
|
||||
{
|
||||
var disabled = (inputField.value.length == 0);
|
||||
document.getElementById("new-rule-contains-text:ok-button").disabled = disabled;
|
||||
document.getElementById("contains-text-condition:ok-button").disabled = disabled;
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="new-rule-contains-text">
|
||||
<h:form acceptCharset="UTF-8" id="contains-text-condition">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
@@ -47,7 +47,7 @@
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
<%@ include file="../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -55,14 +55,14 @@
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
<%@ include file="../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
<%@ include file="../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
@@ -77,8 +77,8 @@
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewRuleWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewRuleWizard.wizardDescription}" /></div>
|
||||
<div class="mainTitle"><h:outputText value="#{WizardManager.title}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{WizardManager.description}" /></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -117,14 +117,14 @@
|
||||
<tr>
|
||||
<td>
|
||||
<h:outputText value="#{msg.file_name_pattern}"/>:
|
||||
<h:inputText id="pattern" value="#{NewRuleWizard.conditionProperties.containstext}"
|
||||
<h:inputText id="pattern" value="#{WizardManager.bean.conditionProperties.containstext}"
|
||||
onkeyup="javascript:checkButtonState(this);" size="35" maxlength="1024" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table><tr>
|
||||
<td><h:selectBooleanCheckbox value="#{NewRuleWizard.conditionProperties.notcondition}"/></td>
|
||||
<td><h:selectBooleanCheckbox value="#{WizardManager.bean.conditionProperties.notcondition}"/></td>
|
||||
<td><h:outputText value="#{msg.not_condition_result}"/></td>
|
||||
</tr></table>
|
||||
</td>
|
||||
@@ -144,14 +144,14 @@
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton id="ok-button" value="#{msg.ok}" action="#{NewRuleWizard.addCondition}"
|
||||
<h:commandButton id="ok-button" value="#{msg.ok}" action="#{WizardManager.bean.addCondition}"
|
||||
styleClass="wizardButton"
|
||||
disabled="#{NewRuleWizard.conditionProperties.containstext == null}" />
|
||||
disabled="#{WizardManager.bean.conditionProperties.containstext == null}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewRuleWizard.cancelAddCondition}"
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{WizardManager.bean.cancelAddCondition}"
|
||||
styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
154
source/web/jsp/rules/conditions.jsp
Normal file
154
source/web/jsp/rules/conditions.jsp
Normal file
@@ -0,0 +1,154 @@
|
||||
<%--
|
||||
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="/WEB-INF/alfresco.tld" prefix="a" %>
|
||||
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
|
||||
|
||||
<f:verbatim>
|
||||
<script type="text/javascript">
|
||||
function itemSelected(inputField)
|
||||
{
|
||||
if (inputField.selectedIndex == 0)
|
||||
{
|
||||
document.getElementById("wizard:wizard-body:set-add-button").disabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById("wizard:wizard-body:set-add-button").disabled = false;
|
||||
}
|
||||
|
||||
// also check to see if the 'no-condition' option has been selected, if it has, change
|
||||
// the explanation text and the button label
|
||||
var short_text = "</f:verbatim><a:outputText value='#{msg.click_add_to_list}' /><f:verbatim>";
|
||||
var long_text = "</f:verbatim><a:outputText value='#{msg.click_set_and_add}' /><f:verbatim>";
|
||||
var short_label = "</f:verbatim><a:outputText value='#{msg.add_to_list_button}' encodeForJavaScript='true' /><f:verbatim>";
|
||||
var long_label = "</f:verbatim><a:outputText value='#{msg.set_and_add_button}' encodeForJavaScript='true' /><f:verbatim>";
|
||||
|
||||
if (inputField.value == "no-condition")
|
||||
{
|
||||
document.getElementById("wizard:wizard-body:set-add-button").value = decodeURI(short_label);
|
||||
document.getElementById("wizard:wizard-body:instruction-text").innerHTML = short_text;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById("wizard:wizard-body:set-add-button").value = decodeURI(long_label);
|
||||
document.getElementById("wizard:wizard-body:instruction-text").innerHTML = long_text;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</f:verbatim>
|
||||
|
||||
<%-- TODO: Move this to the container page and add error-message-id attribute to dialog config --%>
|
||||
|
||||
<a:errors message="#{msg.error_wizard}" styleClass="errorMessage" />
|
||||
|
||||
<f:verbatim>
|
||||
<table cellpadding="2" cellspacing="2" border="0" width="100%">
|
||||
<tr>
|
||||
<td>1.</td>
|
||||
<td>
|
||||
</f:verbatim>
|
||||
<h:outputText value="#{msg.select_condition}"/>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td width="98%">
|
||||
</f:verbatim>
|
||||
<h:selectOneMenu value="#{WizardManager.bean.condition}"
|
||||
id="condition" onchange="javascript:itemSelected(this);">
|
||||
<f:selectItems value="#{WizardManager.bean.conditions}" />
|
||||
</h:selectOneMenu>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td>2.</td>
|
||||
<td>
|
||||
</f:verbatim>
|
||||
<h:outputText value="#{msg.click_set_and_add}" id="instruction-text"/>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td>
|
||||
</f:verbatim>
|
||||
<h:commandButton id="set-add-button" value="#{msg.set_and_add_button}"
|
||||
action="#{WizardManager.bean.promptForConditionValues}"
|
||||
disabled="true"/>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td colspan='2'>
|
||||
</f:verbatim>
|
||||
<h:outputText value="#{msg.selected_conditions}"/>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2'>
|
||||
</f:verbatim>
|
||||
<h:dataTable value="#{WizardManager.bean.allConditionsDataModel}" var="row"
|
||||
rowClasses="selectedItemsRow,selectedItemsRowAlt"
|
||||
styleClass="selectedItems" headerClass="selectedItemsHeader"
|
||||
cellspacing="0" cellpadding="4"
|
||||
rendered="#{WizardManager.bean.allConditionsDataModel.rowCount != 0}">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputText value="#{msg.summary}" />
|
||||
</f:facet>
|
||||
<h:outputText value="#{row.conditionSummary}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<a:actionLink action="#{WizardManager.bean.removeCondition}" image="/images/icons/delete.gif"
|
||||
value="#{msg.remove}" showLink="false" style="padding-left:6px;padding-right:2px" />
|
||||
<a:actionLink action="#{WizardManager.bean.editCondition}" image="/images/icons/edit_icon.gif"
|
||||
value="#{msg.change}" showLink="false"
|
||||
rendered='#{row.conditionName != "no-condition"}'/>
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
<a:panel id="no-items" rendered="#{WizardManager.bean.allConditionsDataModel.rowCount == 0}">
|
||||
<f:verbatim>
|
||||
<table cellspacing='0' cellpadding='2' border='0' class='selectedItems'>
|
||||
<tr>
|
||||
<td colspan='2' class='selectedItemsHeader'>
|
||||
</f:verbatim>
|
||||
<h:outputText id="no-items-name" value="#{msg.summary}" />
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='selectedItemsRow'>
|
||||
</f:verbatim>
|
||||
<h:outputText id="no-items-msg" value="#{msg.no_selected_items}" />
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</f:verbatim>
|
||||
</a:panel>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</f:verbatim>
|
127
source/web/jsp/rules/details.jsp
Normal file
127
source/web/jsp/rules/details.jsp
Normal file
@@ -0,0 +1,127 @@
|
||||
<%--
|
||||
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="/WEB-INF/alfresco.tld" prefix="a" %>
|
||||
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
|
||||
|
||||
<f:verbatim>
|
||||
<script type="text/javascript">
|
||||
function checkButtonState()
|
||||
{
|
||||
if (document.getElementById("wizard:wizard-body:title").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;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</f:verbatim>
|
||||
|
||||
<%-- TODO: Move this to the container page and add error-message-id attribute to dialog config --%>
|
||||
|
||||
<a:errors message="#{msg.error_wizard}" styleClass="errorMessage" />
|
||||
|
||||
<f:verbatim>
|
||||
<table cellpadding="2" cellspacing="2" border="0" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
</f:verbatim>
|
||||
<h:outputText value="#{msg.type}:"/>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
<td width="90%">
|
||||
</f:verbatim>
|
||||
<%--
|
||||
disabled="#{WizardManager.bean.inEditMode}"
|
||||
--%>
|
||||
<h:selectOneMenu id="rule-type" value="#{WizardManager.bean.type}">
|
||||
<f:selectItems value="#{WizardManager.bean.types}" />
|
||||
</h:selectOneMenu>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
</f:verbatim>
|
||||
<h:outputText value="#{msg.title}:"/>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
<td>
|
||||
</f:verbatim>
|
||||
<h:inputText id="title" value="#{WizardManager.bean.title}" size="35" maxlength="1024"
|
||||
onkeyup="checkButtonState();" /><f:verbatim> *
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
</f:verbatim>
|
||||
<h:outputText value="#{msg.description}:"/>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
<td>
|
||||
</f:verbatim>
|
||||
<h:inputText value="#{WizardManager.bean.description}" size="35" maxlength="1024" />
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan="2" class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td colspan="2" class="wizardSectionHeading">
|
||||
</f:verbatim>
|
||||
<h:outputText value="#{msg.other_options}" />
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
</f:verbatim>
|
||||
<h:panelGrid columns="2">
|
||||
<h:selectBooleanCheckbox value="#{WizardManager.bean.applyToSubSpaces}" />
|
||||
<h:outputText value="#{msg.apply_to_sub_spaces}" />
|
||||
</h:panelGrid>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
</f:verbatim>
|
||||
<h:panelGrid columns="2">
|
||||
<h:selectBooleanCheckbox value="#{WizardManager.bean.runInBackground}" />
|
||||
<h:outputText value="#{msg.run_in_background}" />
|
||||
</h:panelGrid>
|
||||
<f:verbatim>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<div id="rule-info" style="padding-left: 26px;">
|
||||
</f:verbatim>
|
||||
<h:graphicImage alt="" value="/images/icons/info_icon.gif" style="vertical-align: middle;" />
|
||||
<h:outputText value=" " escape="false" />
|
||||
<h:outputText value="#{msg.rule_background_info}" />
|
||||
<f:verbatim>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</f:verbatim>
|
@@ -24,14 +24,14 @@
|
||||
<%@ page isELIgnored="false" %>
|
||||
<%@ page import="org.alfresco.web.ui.common.PanelGenerator" %>
|
||||
|
||||
<r:page titleId="title_new_rule_cond_aspect">
|
||||
<r:page titleId="title_condition_has_aspect">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="new-rule-has-aspect">
|
||||
<h:form acceptCharset="UTF-8" id="has-aspect-condition">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
@@ -39,7 +39,7 @@
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
<%@ include file="../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -47,14 +47,14 @@
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
<%@ include file="../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
<%@ include file="../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
@@ -69,8 +69,8 @@
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewRuleWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewRuleWizard.wizardDescription}" /></div>
|
||||
<div class="mainTitle"><h:outputText value="#{WizardManager.title}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{WizardManager.description}" /></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -105,8 +105,8 @@
|
||||
<tr>
|
||||
<td><nobr><h:outputText value="#{msg.aspect}"/>:</nobr></td>
|
||||
<td width="98%">
|
||||
<h:selectOneMenu value="#{NewRuleWizard.conditionProperties.aspect}">
|
||||
<f:selectItems value="#{NewRuleWizard.aspects}" />
|
||||
<h:selectOneMenu value="#{WizardManager.bean.conditionProperties.aspect}">
|
||||
<f:selectItems value="#{WizardManager.bean.aspects}" />
|
||||
</h:selectOneMenu>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -114,7 +114,7 @@
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table><tr>
|
||||
<td><h:selectBooleanCheckbox value="#{NewRuleWizard.conditionProperties.notcondition}"/></td>
|
||||
<td><h:selectBooleanCheckbox value="#{WizardManager.bean.conditionProperties.notcondition}"/></td>
|
||||
<td><h:outputText value="#{msg.not_condition_result}"/></td>
|
||||
</tr></table>
|
||||
</td>
|
||||
@@ -129,12 +129,12 @@
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.ok}" action="#{NewRuleWizard.addCondition}" styleClass="wizardButton"/>
|
||||
<h:commandButton value="#{msg.ok}" action="#{WizardManager.bean.addCondition}" styleClass="wizardButton"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewRuleWizard.cancelAddCondition}"
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{WizardManager.bean.cancelAddCondition}"
|
||||
styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
@@ -24,14 +24,14 @@
|
||||
<%@ page isELIgnored="false" %>
|
||||
<%@ page import="org.alfresco.web.ui.common.PanelGenerator" %>
|
||||
|
||||
<r:page titleId="title_new_rule_cond_category">
|
||||
<r:page titleId="title_condition_in_category">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="new-rule-in-category">
|
||||
<h:form acceptCharset="UTF-8" id="in-category-condition">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
@@ -39,7 +39,7 @@
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
<%@ include file="../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -47,14 +47,14 @@
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
<%@ include file="../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
<%@ include file="../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
@@ -69,8 +69,8 @@
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewRuleWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewRuleWizard.wizardDescription}" /></div>
|
||||
<div class="mainTitle"><h:outputText value="#{WizardManager.title}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{WizardManager.description}" /></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -106,7 +106,7 @@
|
||||
<td valign="top"><h:outputText value="#{msg.category}"/>:</td>
|
||||
<td width="90%">
|
||||
<r:categorySelector id="category-selector" label="#{msg.select_category_prompt}"
|
||||
value="#{NewRuleWizard.conditionProperties.category}"
|
||||
value="#{WizardManager.bean.conditionProperties.category}"
|
||||
styleClass="selector"/>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -114,7 +114,7 @@
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table><tr>
|
||||
<td><h:selectBooleanCheckbox value="#{NewRuleWizard.conditionProperties.notcondition}"/></td>
|
||||
<td><h:selectBooleanCheckbox value="#{WizardManager.bean.conditionProperties.notcondition}"/></td>
|
||||
<td><h:outputText value="#{msg.not_condition_result}"/></td>
|
||||
</tr></table>
|
||||
</td>
|
||||
@@ -129,13 +129,13 @@
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.ok}" action="#{NewRuleWizard.addCondition}" styleClass="wizardButton"
|
||||
disabled="#{NewRuleWizard.conditionProperties.category == null}" />
|
||||
<h:commandButton value="#{msg.ok}" action="#{WizardManager.bean.addCondition}" styleClass="wizardButton"
|
||||
disabled="#{WizardManager.bean.conditionProperties.category == null}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewRuleWizard.cancelAddCondition}"
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{WizardManager.bean.cancelAddCondition}"
|
||||
styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
@@ -24,14 +24,14 @@
|
||||
<%@ page isELIgnored="false" %>
|
||||
<%@ page import="org.alfresco.web.ui.common.PanelGenerator" %>
|
||||
|
||||
<r:page titleId="title_new_rule_cond_mimetype">
|
||||
<r:page titleId="title_condition_is_subtype">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="new-rule-is-mimetype">
|
||||
<h:form acceptCharset="UTF-8" id="is-subtype-condition">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
@@ -39,7 +39,7 @@
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
<%@ include file="../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -47,14 +47,14 @@
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
<%@ include file="../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
<%@ include file="../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
@@ -69,8 +69,8 @@
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewRuleWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewRuleWizard.wizardDescription}" /></div>
|
||||
<div class="mainTitle"><h:outputText value="#{WizardManager.title}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{WizardManager.description}" /></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -105,8 +105,8 @@
|
||||
<tr>
|
||||
<td><nobr><h:outputText value="#{msg.type}"/>:</nobr></td>
|
||||
<td width="98%">
|
||||
<h:selectOneMenu value="#{NewRuleWizard.conditionProperties.mimetype}">
|
||||
<f:selectItems value="#{NewRuleWizard.mimeTypes}" />
|
||||
<h:selectOneMenu value="#{WizardManager.bean.conditionProperties.modeltype}">
|
||||
<f:selectItems value="#{WizardManager.bean.modelTypes}" />
|
||||
</h:selectOneMenu>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -114,7 +114,7 @@
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table><tr>
|
||||
<td><h:selectBooleanCheckbox value="#{NewRuleWizard.conditionProperties.notcondition}"/></td>
|
||||
<td><h:selectBooleanCheckbox value="#{WizardManager.bean.conditionProperties.notcondition}"/></td>
|
||||
<td><h:outputText value="#{msg.not_condition_result}"/></td>
|
||||
</tr></table>
|
||||
</td>
|
||||
@@ -129,12 +129,12 @@
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.ok}" action="#{NewRuleWizard.addCondition}" styleClass="wizardButton"/>
|
||||
<h:commandButton value="#{msg.ok}" action="#{WizardManager.bean.addCondition}" styleClass="wizardButton"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewRuleWizard.cancelAddCondition}"
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{WizardManager.bean.cancelAddCondition}"
|
||||
styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
@@ -1,157 +0,0 @@
|
||||
<%--
|
||||
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" %>
|
||||
|
||||
<%-- REPLACE ME: set the title I18N message Id here --%>
|
||||
<r:page titleId="">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<%-- REPLACE ME: set the form name here --%>
|
||||
<h:form acceptCharset="UTF-8" id="myform">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%-- Main area --%>
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_4.gif)" width="4"></td>
|
||||
<td bgcolor="#EEEEEE">
|
||||
|
||||
<%-- Status and Actions inner contents table --%>
|
||||
<%-- Generally this consists of an icon, textual summary and actions for the current object --%>
|
||||
<table cellspacing="4" cellpadding="0" width="100%">
|
||||
<tr valign="top">
|
||||
<td width="26">
|
||||
<%-- REPLACE ME: icon here --%>
|
||||
</td>
|
||||
<td>
|
||||
<%-- Summary --%>
|
||||
<%-- REPLACE ME: summary here --%>
|
||||
</td>
|
||||
<td bgcolor="#465F7D" width="1"></td>
|
||||
<td width="100" style="padding-left:2px">
|
||||
<%-- Current object actions --%>
|
||||
<%-- REPLACE ME: object actions --%>
|
||||
</td>
|
||||
<td bgcolor="#465F7D" width="1"></td>
|
||||
<td width="100">
|
||||
<%-- Details View settings --%>
|
||||
<%-- REPLACE ME: views --%>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with gradient shadow --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_7.gif" width="4" height="9"></td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_9.gif" width="4" height="9"></td>
|
||||
</tr>
|
||||
|
||||
<%-- Toolbar --%>
|
||||
<tr style="padding-top:4px">
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_4.gif)" width="4"></td>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="4">
|
||||
<tr>
|
||||
<td>
|
||||
<%-- Toolbar actions --%>
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "bluetoolbar", "#E9F0F4"); %>
|
||||
<%-- REPLACE ME: toolbar actions --%>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "bluetoolbar"); %>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- Details --%>
|
||||
<tr valign=top>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_4.gif)" width="4"></td>
|
||||
<td height="300">
|
||||
|
||||
<%-- Details inner components --%>
|
||||
<%-- REPLACE ME: details components --%>
|
||||
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- Error Messages --%>
|
||||
<tr valign="top">
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_4.gif)" width="4"></td>
|
||||
<td>
|
||||
<%-- messages tag to show messages not handled by other specific message tags --%>
|
||||
<h:messages globalOnly="true" styleClass="errorMessage" layout="table" />
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with bottom panel graphics --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_7.gif" width="4" height="4"></td>
|
||||
<td width="100%" align="center" style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_9.gif" width="4" height="4"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</h:form>
|
||||
|
||||
</f:view>
|
||||
|
||||
</r:page>
|
@@ -1,42 +0,0 @@
|
||||
<%--
|
||||
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="/WEB-INF/alfresco.tld" prefix="a" %>
|
||||
|
||||
<f:view>
|
||||
<%-- load a bundle of properties I18N strings here --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="userForm" >
|
||||
|
||||
<h3>New User details:</h3>
|
||||
|
||||
<%@ include file="userform.jsp" %>
|
||||
|
||||
<p>
|
||||
|
||||
<h:commandButton id="submit" value="OK" action="success" actionListener="#{UserListBean.addUserOK}" />
|
||||
<%-- Use of the 'immediate' attribute forces the cancel action impl to execute
|
||||
in the Apply Request Values processing phase - it would normally be deferred to
|
||||
the Invoke Application phase. This means is fires before the form validation
|
||||
occurs - allow pure UI events to either navigate or change the UI without
|
||||
seeing validation errors etc. --%>
|
||||
<h:commandButton id="cancel" value="Cancel" action="cancel" immediate="true" />
|
||||
|
||||
</h:form>
|
||||
</f:view>
|
@@ -1,42 +0,0 @@
|
||||
<%--
|
||||
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="/WEB-INF/alfresco.tld" prefix="a" %>
|
||||
|
||||
<f:view>
|
||||
<%-- load a bundle of properties I18N strings here --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="userForm" >
|
||||
|
||||
<h3>Edit User details:</h3>
|
||||
|
||||
<%@ include file="userform.jsp" %>
|
||||
|
||||
<p>
|
||||
|
||||
<h:commandButton id="submit" value="OK" action="success" actionListener="#{UserListBean.editUserOK}" />
|
||||
<%-- Use of the 'immediate' attribute forces the cancel action impl to execute
|
||||
in the Apply Request Values processing phase - it would normally be deferred to
|
||||
the Invoke Application phase. This means is fires before the form validation
|
||||
occurs - allow pure UI events to either navigate or change the UI without
|
||||
seeing validation errors etc. --%>
|
||||
<h:commandButton id="cancel" value="Cancel" action="cancel" immediate="true" />
|
||||
|
||||
</h:form>
|
||||
</f:view>
|
@@ -1,89 +0,0 @@
|
||||
<%--
|
||||
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.
|
||||
--%>
|
||||
<%-- JSP fragment - included directly by other complete JSP pages --%>
|
||||
<table border=0 cellspacing=2 cellpadding=2>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<%-- use an I18N message --%>
|
||||
<h:outputText value="#{msg.username}"/>:
|
||||
</td>
|
||||
<td>
|
||||
<%-- example of the 'disabled' attribute bound to a form bean property --%>
|
||||
<h:inputText id="username" value="#{UserListBean.user.username}" required="true" disabled="#{!UserListBean.isNewUser}">
|
||||
<f:validateLength minimum="5" maximum="12" />
|
||||
</h:inputText>
|
||||
<%-- message tag to show errors for the 'username' field --%>
|
||||
<h:message id="errors1" for="username" style="color:red; font-size:10px" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<h:outputText value="#{msg.password}"/>:
|
||||
</td>
|
||||
<td>
|
||||
<h:inputText id="userpassword" value="#{UserListBean.user.password}" validator="#{LoginBean.validatePassword}" required="true">
|
||||
<f:validateLength minimum="5" maximum="12" />
|
||||
</h:inputText>
|
||||
<h:message id="errors2" for="userpassword" style="color:red; font-size:10px" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<h:outputText value="#{msg.name}"/>:
|
||||
</td>
|
||||
<td>
|
||||
<h:inputText id="name" value="#{UserListBean.user.name}" required="true" />
|
||||
<h:message id="errors3" for="name" style="color:red; font-size:10px" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<h:outputText value="#{msg.joindate}"/>:
|
||||
</td>
|
||||
<td>
|
||||
<%-- Example of a tag utilising an Input Component with a custom renderer.
|
||||
The renderer handles encoding and decoding of date values to UI elements --%>
|
||||
<a:inputDatePicker id="joined" value="#{UserListBean.user.dateJoined}" startYear="1996" yearCount="10"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<h:outputText value="#{msg.roles}"/>:
|
||||
</td>
|
||||
<td>
|
||||
<%-- Show an example of a listbox populated by a server-side List of SelectItem
|
||||
objects. The preselection is controlled by the selectItems tag which contains
|
||||
a list of values that the control will try to select.
|
||||
Also shows an example of a valueChangedListener which uses onchange() Javascript
|
||||
to submit the form immediately to update the UI. --%>
|
||||
<h:selectManyListbox id="rolesListbox" value="#{UserListBean.user.roles}" valueChangeListener="#{UserListBean.roleValueChanged}" immediate="true" onchange="javascript:document.forms['userForm'].submit();">
|
||||
<f:selectItems value="#{UserListBean.user.allRolesList}" />
|
||||
</h:selectManyListbox>
|
||||
<h:message id="errors5" for="rolesListbox" style="color:red; font-size:10px" />
|
||||
<br>
|
||||
<%-- Example of a direct component binding. The setting method on the bean
|
||||
is called and the OutputText component can be programmically modified --%>
|
||||
<h:outputText id='roles-text' binding="#{UserListBean.rolesOutputText}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
@@ -1,108 +0,0 @@
|
||||
<%--
|
||||
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" %>
|
||||
|
||||
<%@ page isELIgnored="false" %>
|
||||
|
||||
|
||||
|
||||
<f:view>
|
||||
<%-- load a bundle of properties I18N strings here --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="userListForm">
|
||||
|
||||
<h2>UserList Test</h2>
|
||||
|
||||
<%-- use JSTL as simple example way to list the users --%>
|
||||
<%-- TODO: find out how to get this working - currently it can't find the JSF bean
|
||||
in the session scope. Using useBean tag creates a new copy --%>
|
||||
<%--<jsp:useBean id="UserListBean" scope="session" class="jsftest.UserListBean" />--%>
|
||||
<%--
|
||||
<ol>
|
||||
<c:forEach items="${sessionScope.UserListBean.users}" var="u">
|
||||
<li>Username: ${u.username}, Name: ${u.name}, Roles: ${u.roles}</li>
|
||||
</c:forEach>
|
||||
</ol>
|
||||
|
||||
<p>
|
||||
--%>
|
||||
|
||||
<%-- example of using a JSF DataTable to list the users --%>
|
||||
<%-- iterates around the List of User objects in the UserListBean --%>
|
||||
<b>JSF dataTable component test.</b><br>
|
||||
<h:dataTable id="userlist" value="#{UserListBean.usersModel}" var="u">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<%-- NOTE: You cannot insert plain HTML text here, due to the way that some JSF
|
||||
components are architected, the plain HTML would get displayed before
|
||||
the body of the datatable tag is output. This is also true of the
|
||||
other container tags including 'panel'.
|
||||
The datatable is considerably inferior to our portal data tags
|
||||
or even the freely available 'displaytag' tag library --%>
|
||||
<%-- You can also use the nasty 'f:verbatim' tag to wrap any non JSF elements --%>
|
||||
<h:outputText value="#{msg.username}"/>
|
||||
</f:facet>
|
||||
<h:outputText value="#{u.username}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputText value="#{msg.name}"/>
|
||||
</f:facet>
|
||||
<h:outputText value="#{u.name}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputText value="#{msg.joindate}"/>
|
||||
</f:facet>
|
||||
<h:outputText value="#{u.dateJoined}">
|
||||
<%-- example of a DateTime converter --%>
|
||||
<%-- can be used to convert both input and output text --%>
|
||||
<f:convertDateTime dateStyle="short" />
|
||||
</h:outputText>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputText value="#{msg.roles}"/>
|
||||
</f:facet>
|
||||
<h:outputText value="#{u.roles}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="actions">
|
||||
<h:outputText value="#{msg.actions}"/>
|
||||
</f:facet>
|
||||
<%-- inline command link - has an action listener which will decode which
|
||||
item in the grid it was clicked using the param tag below
|
||||
Then the action listener will delegate to the action view --%>
|
||||
<h:commandLink id="edit" value="Edit" action="edituser" actionListener="#{UserListBean.editUser}">
|
||||
<f:param id="userId" name="id" value="#{u.username}" />
|
||||
</h:commandLink>
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
|
||||
<p>
|
||||
|
||||
<h:commandButton id="add-user" value="Add" action="adduser" actionListener="#{UserListBean.addUser}"/>
|
||||
|
||||
<p>
|
||||
|
||||
<h:commandButton id="show-zoo-page" value="Show Zoo" action="showZoo" />
|
||||
|
||||
</h:form>
|
||||
</f:view>
|
@@ -112,8 +112,9 @@
|
||||
<td width="100%" valign="top">
|
||||
|
||||
<%-- Externalise the error message into an error-message-id attribute on the wizard config --%>
|
||||
|
||||
<%--
|
||||
<a:errors message="#{msg.error_wizard}" styleClass="errorMessage" />
|
||||
--%>
|
||||
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "white", "white"); %>
|
||||
<table cellpadding="2" cellspacing="2" border="0" width="100%">
|
||||
|
@@ -1,182 +0,0 @@
|
||||
<%--
|
||||
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" %>
|
||||
|
||||
<r:page titleId="title_create_action_add_feature">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="add-features">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%-- Main area --%>
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_4.gif)" width="4"></td>
|
||||
<td bgcolor="#EEEEEE">
|
||||
|
||||
<%-- Status and Actions inner contents table --%>
|
||||
<%-- Generally this consists of an icon, textual summary and actions for the current object --%>
|
||||
<table cellspacing="4" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td width="32">
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewActionWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewActionWizard.wizardDescription}" /> '<h:outputText value="#{DocumentDetailsBean.name}" />'</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with gradient shadow --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_7.gif" width="4" height="9"></td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_9.gif" width="4" height="9"></td>
|
||||
</tr>
|
||||
|
||||
<%-- Details --%>
|
||||
<tr valign=top>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_4.gif)" width="4"></td>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="3" border="0" width="100%">
|
||||
<tr>
|
||||
<td width="20%" valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<h:outputText styleClass="mainSubTitle" value="#{msg.steps}"/><br>
|
||||
<a:modeList itemSpacing="3" iconColumnWidth="2" selectedStyleClass="statusListHighlight"
|
||||
value="2" disabled="true">
|
||||
<a:listItem value="1" label="1. #{msg.action}" />
|
||||
<a:listItem value="2" label="2. #{msg.action_settings}" />
|
||||
<a:listItem value="3" label="3. #{msg.summary}" />
|
||||
</a:modeList>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
|
||||
<td width="100%" valign="top">
|
||||
|
||||
<a:errors message="#{msg.error_wizard}" styleClass="errorMessage" />
|
||||
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "white", "white"); %>
|
||||
<table cellpadding="2" cellspacing="2" border="0" width="100%">
|
||||
<tr>
|
||||
<td colspan="2" class="mainSubTitle"><h:outputText value="#{NewActionWizard.stepTitle}" /></td>
|
||||
</tr>
|
||||
<tr><td colspan="2" class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td><nobr><h:outputText value="#{msg.select_feature}"/>:</nobr></td>
|
||||
<td width="90%">
|
||||
<h:selectOneMenu value="#{NewActionWizard.actionProperties.aspect}">
|
||||
<f:selectItems value="#{NewActionWizard.aspects}" />
|
||||
</h:selectOneMenu>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td colspan="2"><h:outputText value="#{NewActionWizard.stepInstructions}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "white"); %>
|
||||
</td>
|
||||
|
||||
<td valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.next_button}" action="#{NewActionWizard.next}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.back_button}" action="#{NewActionWizard.back}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.finish_button}" action="#{NewActionWizard.finish}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="wizardButtonSpacing"></td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewActionWizard.cancel}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with bottom panel graphics --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_7.gif" width="4" height="4"></td>
|
||||
<td width="100%" align="center" style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_9.gif" width="4" height="4"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</h:form>
|
||||
|
||||
</f:view>
|
||||
|
||||
</r:page>
|
@@ -1,188 +0,0 @@
|
||||
<%--
|
||||
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" %>
|
||||
|
||||
<r:page titleId="title_create_action_checkin">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="action-check-in">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%-- Main area --%>
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_4.gif)" width="4"></td>
|
||||
<td bgcolor="#EEEEEE">
|
||||
|
||||
<%-- Status and Actions inner contents table --%>
|
||||
<%-- Generally this consists of an icon, textual summary and actions for the current object --%>
|
||||
<table cellspacing="4" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td width="32">
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewActionWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewActionWizard.wizardDescription}" /> '<h:outputText value="#{DocumentDetailsBean.name}" />'</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with gradient shadow --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_7.gif" width="4" height="9"></td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_9.gif" width="4" height="9"></td>
|
||||
</tr>
|
||||
|
||||
<%-- Details --%>
|
||||
<tr valign=top>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_4.gif)" width="4"></td>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="3" border="0" width="100%">
|
||||
<tr>
|
||||
<td width="20%" valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<h:outputText styleClass="mainSubTitle" value="#{msg.steps}"/><br>
|
||||
<a:modeList itemSpacing="3" iconColumnWidth="2" selectedStyleClass="statusListHighlight"
|
||||
value="2" disabled="true">
|
||||
<a:listItem value="1" label="1. #{msg.action}" />
|
||||
<a:listItem value="2" label="2. #{msg.action_settings}" />
|
||||
<a:listItem value="3" label="3. #{msg.summary}" />
|
||||
</a:modeList>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
|
||||
<td width="100%" valign="top">
|
||||
|
||||
<a:errors message="#{msg.error_wizard}" styleClass="errorMessage" />
|
||||
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "white", "white"); %>
|
||||
<table cellpadding="2" cellspacing="2" border="0" width="100%">
|
||||
<tr>
|
||||
<td colspan="2" class="mainSubTitle"><h:outputText value="#{NewActionWizard.stepTitle}" /></td>
|
||||
</tr>
|
||||
<tr><td colspan="2" class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td valign="top"><nobr><h:outputText value="#{msg.version_notes}"/>:</nobr></td>
|
||||
<td width="90%">
|
||||
<h:inputTextarea value="#{NewActionWizard.actionProperties.checkinDescription}"
|
||||
rows="2" cols="50" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td>
|
||||
<h:selectBooleanCheckbox value="#{NewActionWizard.actionProperties.checkinMinorChange}" />
|
||||
<span style="vertical-align:20%"><h:outputText value="#{msg.minor_change}" /></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td colspan="2"><h:outputText value="#{NewActionWizard.stepInstructions}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "white"); %>
|
||||
</td>
|
||||
|
||||
<td valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.next_button}" action="#{NewActionWizard.next}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.back_button}" action="#{NewActionWizard.back}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.finish_button}" action="#{NewActionWizard.finish}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="wizardButtonSpacing"></td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewActionWizard.cancel}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with bottom panel graphics --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_7.gif" width="4" height="4"></td>
|
||||
<td width="100%" align="center" style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_9.gif" width="4" height="4"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</h:form>
|
||||
|
||||
</f:view>
|
||||
|
||||
</r:page>
|
@@ -1,185 +0,0 @@
|
||||
<%--
|
||||
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" %>
|
||||
|
||||
<r:page titleId="title_create_action_checkout">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="action-check-out">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%-- Main area --%>
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_4.gif)" width="4"></td>
|
||||
<td bgcolor="#EEEEEE">
|
||||
|
||||
<%-- Status and Actions inner contents table --%>
|
||||
<%-- Generally this consists of an icon, textual summary and actions for the current object --%>
|
||||
<table cellspacing="4" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td width="32">
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewActionWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewActionWizard.wizardDescription}" /> '<h:outputText value="#{DocumentDetailsBean.name}" />'</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with gradient shadow --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_7.gif" width="4" height="9"></td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_9.gif" width="4" height="9"></td>
|
||||
</tr>
|
||||
|
||||
<%-- Details --%>
|
||||
<tr valign=top>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_4.gif)" width="4"></td>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="3" border="0" width="100%">
|
||||
<tr>
|
||||
<td width="20%" valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<h:outputText styleClass="mainSubTitle" value="#{msg.steps}"/><br>
|
||||
<a:modeList itemSpacing="3" iconColumnWidth="2" selectedStyleClass="statusListHighlight"
|
||||
value="2" disabled="true">
|
||||
<a:listItem value="1" label="1. #{msg.action}" />
|
||||
<a:listItem value="2" label="2. #{msg.action_settings}" />
|
||||
<a:listItem value="3" label="3. #{msg.summary}" />
|
||||
</a:modeList>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
|
||||
<td width="100%" valign="top">
|
||||
|
||||
<a:errors message="#{msg.error_wizard}" styleClass="errorMessage" />
|
||||
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "white", "white"); %>
|
||||
<table cellpadding="2" cellspacing="2" border="0" width="100%">
|
||||
<tr>
|
||||
<td colspan="2" class="mainSubTitle"><h:outputText value="#{NewActionWizard.stepTitle}" /></td>
|
||||
</tr>
|
||||
<tr><td colspan="2" class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td><nobr><h:outputText value="#{msg.checkout_location}"/>:</nobr></td>
|
||||
<td width="100%">
|
||||
<r:spaceSelector id="space-selector" label="#{msg.select_checkout_prompt}"
|
||||
value="#{NewActionWizard.actionProperties.destinationLocation}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
styleClass="selector"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td colspan="2"><h:outputText value="#{NewActionWizard.stepInstructions}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "white"); %>
|
||||
</td>
|
||||
|
||||
<td valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.next_button}" action="#{NewActionWizard.next}" styleClass="wizardButton"
|
||||
disabled="#{NewActionWizard.actionProperties.destinationLocation == null}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.back_button}" action="#{NewActionWizard.back}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.finish_button}" action="#{NewActionWizard.finish}" styleClass="wizardButton"
|
||||
disabled="#{NewActionWizard.actionProperties.destinationLocation == null}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="wizardButtonSpacing"></td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewActionWizard.cancel}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with bottom panel graphics --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_7.gif" width="4" height="4"></td>
|
||||
<td width="100%" align="center" style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_9.gif" width="4" height="4"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</h:form>
|
||||
|
||||
</f:view>
|
||||
|
||||
</r:page>
|
@@ -1,185 +0,0 @@
|
||||
<%--
|
||||
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" %>
|
||||
|
||||
<r:page titleId="title_create_action_copy">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="action-copy">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%-- Main area --%>
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_4.gif)" width="4"></td>
|
||||
<td bgcolor="#EEEEEE">
|
||||
|
||||
<%-- Status and Actions inner contents table --%>
|
||||
<%-- Generally this consists of an icon, textual summary and actions for the current object --%>
|
||||
<table cellspacing="4" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td width="32">
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewActionWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewActionWizard.wizardDescription}" /> '<h:outputText value="#{DocumentDetailsBean.name}" />'</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with gradient shadow --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_7.gif" width="4" height="9"></td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_9.gif" width="4" height="9"></td>
|
||||
</tr>
|
||||
|
||||
<%-- Details --%>
|
||||
<tr valign=top>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_4.gif)" width="4"></td>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="3" border="0" width="100%">
|
||||
<tr>
|
||||
<td width="20%" valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<h:outputText styleClass="mainSubTitle" value="#{msg.steps}"/><br>
|
||||
<a:modeList itemSpacing="3" iconColumnWidth="2" selectedStyleClass="statusListHighlight"
|
||||
value="2" disabled="true">
|
||||
<a:listItem value="1" label="1. #{msg.action}" />
|
||||
<a:listItem value="2" label="2. #{msg.action_settings}" />
|
||||
<a:listItem value="3" label="3. #{msg.summary}" />
|
||||
</a:modeList>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
|
||||
<td width="100%" valign="top">
|
||||
|
||||
<a:errors message="#{msg.error_wizard}" styleClass="errorMessage" />
|
||||
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "white", "white"); %>
|
||||
<table cellpadding="2" cellspacing="2" border="0" width="100%">
|
||||
<tr>
|
||||
<td colspan="2" class="mainSubTitle"><h:outputText value="#{NewActionWizard.stepTitle}" /></td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td><h:outputText value="#{msg.destination}"/>:</td>
|
||||
<td width="90%">
|
||||
<r:spaceSelector id="space-selector" label="#{msg.select_destination_prompt}"
|
||||
value="#{NewActionWizard.actionProperties.destinationLocation}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
styleClass="selector"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td colspan="2"><h:outputText value="#{NewActionWizard.stepInstructions}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "white"); %>
|
||||
</td>
|
||||
|
||||
<td valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.next_button}" action="#{NewActionWizard.next}" styleClass="wizardButton"
|
||||
disabled="#{NewActionWizard.actionProperties.destinationLocation == null}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.back_button}" action="#{NewActionWizard.back}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.finish_button}" action="#{NewActionWizard.finish}" styleClass="wizardButton"
|
||||
disabled="#{NewActionWizard.actionProperties.destinationLocation == null}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="wizardButtonSpacing"></td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewActionWizard.cancel}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with bottom panel graphics --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_7.gif" width="4" height="4"></td>
|
||||
<td width="100%" align="center" style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_9.gif" width="4" height="4"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</h:form>
|
||||
|
||||
</f:view>
|
||||
|
||||
</r:page>
|
@@ -1,283 +0,0 @@
|
||||
<%--
|
||||
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" %>
|
||||
|
||||
<r:page titleId="title_create_action_email">
|
||||
|
||||
|
||||
<script language="JavaScript1.2">
|
||||
|
||||
window.onload = pageLoaded;
|
||||
|
||||
function pageLoaded()
|
||||
{
|
||||
document.getElementById("action-email:subject").focus();
|
||||
checkButtonState();
|
||||
}
|
||||
|
||||
function checkButtonState()
|
||||
{
|
||||
if (document.getElementById("action-email:subject").value.length == 0)
|
||||
{
|
||||
document.getElementById("action-email:next-button").disabled = true;
|
||||
document.getElementById("action-email:finish-button").disabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById("action-email:next-button").disabled = false;
|
||||
document.getElementById("action-email:finish-button").disabled = false;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="action-email">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%-- Main area --%>
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_4.gif)" width="4"></td>
|
||||
<td bgcolor="#EEEEEE">
|
||||
|
||||
<%-- Status and Actions inner contents table --%>
|
||||
<%-- Generally this consists of an icon, textual summary and actions for the current object --%>
|
||||
<table cellspacing="4" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td width="32">
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewActionWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewActionWizard.wizardDescription}" /> '<h:outputText value="#{DocumentDetailsBean.name}" />'</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with gradient shadow --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_7.gif" width="4" height="9"></td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_9.gif" width="4" height="9"></td>
|
||||
</tr>
|
||||
|
||||
<%-- Details --%>
|
||||
<tr valign=top>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_4.gif)" width="4"></td>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="3" border="0" width="100%">
|
||||
<tr>
|
||||
<td width="20%" valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<h:outputText styleClass="mainSubTitle" value="#{msg.steps}"/><br>
|
||||
<a:modeList itemSpacing="3" iconColumnWidth="2" selectedStyleClass="statusListHighlight"
|
||||
value="2" disabled="true">
|
||||
<a:listItem value="1" label="1. #{msg.action}" />
|
||||
<a:listItem value="2" label="2. #{msg.action_settings}" />
|
||||
<a:listItem value="3" label="3. #{msg.summary}" />
|
||||
</a:modeList>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
|
||||
<td width="100%" valign="top">
|
||||
|
||||
<a:errors message="#{msg.error_wizard}" styleClass="errorMessage" />
|
||||
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "white", "white"); %>
|
||||
<table cellpadding="2" cellspacing="2" border="0" width="100%">
|
||||
<tr>
|
||||
<td colspan="2" class="mainSubTitle"><h:outputText value="#{NewActionWizard.stepTitle}" /></td>
|
||||
</tr>
|
||||
|
||||
<%-- Select the email receipients --%>
|
||||
<tr><td colspan="2" class="paddingRow"></td></tr>
|
||||
<tr><td colspan="2" class="mainSubTitle"><h:outputText value="#{msg.message_recipients}" /></td></tr>
|
||||
<tr><td colspan="2" style="padding-left:12px">1. <h:outputText value="#{msg.select_recipients}" /></td></tr>
|
||||
<tr>
|
||||
<%-- Generic Picker to select Users/Groups --%>
|
||||
<td colspan=2 style="padding-left:16px">
|
||||
<a:genericPicker id="picker" filters="#{InviteSpaceUsersWizard.filters}"
|
||||
queryCallback="#{InviteSpaceUsersWizard.pickerCallback}"
|
||||
actionListener="#{NewActionWizard.addRecipient}" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr><td colspan="2" style="padding-left:12px">2. <h:outputText value="#{msg.selected_recipients}" /></td></tr>
|
||||
<tr>
|
||||
<td colspan=2 style="padding-left:12px">
|
||||
<h:dataTable value="#{NewActionWizard.emailRecipientsDataModel}" var="row"
|
||||
rowClasses="selectedItemsRow,selectedItemsRowAlt"
|
||||
styleClass="selectedItems" headerClass="selectedItemsHeader"
|
||||
cellspacing="0" cellpadding="4"
|
||||
rendered="#{NewActionWizard.emailRecipientsDataModel.rowCount != 0}">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputText value="#{msg.name}" />
|
||||
</f:facet>
|
||||
<h:outputText value="#{row.name}" />
|
||||
</h:column>
|
||||
<h:column>
|
||||
<a:actionLink actionListener="#{NewActionWizard.removeRecipient}" image="/images/icons/delete.gif"
|
||||
value="#{msg.remove}" showLink="false" style="padding-left:6px" />
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
<a:panel id="no-items" rendered="#{NewActionWizard.emailRecipientsDataModel.rowCount == 0}">
|
||||
<table cellspacing='0' cellpadding='2' border='0' class='selectedItems'>
|
||||
<tr>
|
||||
<td colspan='2' class='selectedItemsHeader'><h:outputText id="no-items-name" value="#{msg.name}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='selectedItemsRow'><h:outputText id="no-items-msg" value="#{msg.no_selected_items}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</a:panel>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%-- Enter the message subject and body --%>
|
||||
<tr><td colspan="2" class="paddingRow"></td></tr>
|
||||
<tr><td colspan="2" class="mainSubTitle"><h:outputText value="#{msg.email_message}" /></td></tr>
|
||||
<tr>
|
||||
<td style="padding-left:16px"><h:outputText value="#{msg.subject}"/>:</td>
|
||||
<td width="90%">
|
||||
<h:inputText id="subject" value="#{NewActionWizard.actionProperties.subject}" size="75" maxlength="1024"
|
||||
onkeyup="javascript:checkButtonState();" /> *
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
<td valign="top">
|
||||
<table cellspacing=0 cellpadding=2 border=0
|
||||
<tr>
|
||||
<td><h:outputText value="#{msg.action_mail_template}"/>:</td>
|
||||
<td>
|
||||
<%-- Templates drop-down selector --%>
|
||||
<h:selectOneMenu value="#{NewActionWizard.actionProperties.template}">
|
||||
<f:selectItems value="#{TemplateSupportBean.emailTemplates}" />
|
||||
</h:selectOneMenu>
|
||||
</td>
|
||||
<td><h:commandButton value="#{msg.insert_template}" actionListener="#{NewActionWizard.insertTemplate}" styleClass="wizardButton" /></td>
|
||||
<td><h:commandButton value="#{msg.discard_template}" actionListener="#{NewActionWizard.discardTemplate}" styleClass="wizardButton" disabled="#{NewActionWizard.usingTemplate == null}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="padding-left:16px"><h:outputText value="#{msg.message}"/>:</td>
|
||||
<td>
|
||||
<h:inputTextarea value="#{NewActionWizard.actionProperties.message}"
|
||||
rows="4" cols="75" disabled="#{NewActionWizard.usingTemplate != null}" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td colspan="2"><h:outputText value="#{NewActionWizard.stepInstructions}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "white"); %>
|
||||
</td>
|
||||
|
||||
<td valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton id="next-button" value="#{msg.next_button}" action="#{NewActionWizard.next}" styleClass="wizardButton" disabled="#{NewActionWizard.emailRecipientsDataModel.rowCount == 0}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.back_button}" action="#{NewActionWizard.back}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton id="finish-button" value="#{msg.finish_button}" action="#{NewActionWizard.finish}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="wizardButtonSpacing"></td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewActionWizard.cancel}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with bottom panel graphics --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_7.gif" width="4" height="4"></td>
|
||||
<td width="100%" align="center" style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_9.gif" width="4" height="4"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</h:form>
|
||||
|
||||
</f:view>
|
||||
|
||||
</r:page>
|
@@ -1,196 +0,0 @@
|
||||
<%--
|
||||
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" %>
|
||||
|
||||
<r:page titleId="title_create_action_import">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="action-import">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%-- Main area --%>
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_4.gif)" width="4"></td>
|
||||
<td bgcolor="#EEEEEE">
|
||||
|
||||
<%-- Status and Actions inner contents table --%>
|
||||
<%-- Generally this consists of an icon, textual summary and actions for the current object --%>
|
||||
<table cellspacing="4" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td width="32">
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewActionWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewActionWizard.wizardDescription}" /> '<h:outputText value="#{DocumentDetailsBean.name}" />'</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with gradient shadow --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_7.gif" width="4" height="9"></td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_9.gif" width="4" height="9"></td>
|
||||
</tr>
|
||||
|
||||
<%-- Details --%>
|
||||
<tr valign=top>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_4.gif)" width="4"></td>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="3" border="0" width="100%">
|
||||
<tr>
|
||||
<td width="20%" valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<h:outputText styleClass="mainSubTitle" value="#{msg.steps}"/><br>
|
||||
<a:modeList itemSpacing="3" iconColumnWidth="2" selectedStyleClass="statusListHighlight"
|
||||
value="2" disabled="true">
|
||||
<a:listItem value="1" label="1. #{msg.action}" />
|
||||
<a:listItem value="2" label="2. #{msg.action_settings}" />
|
||||
<a:listItem value="3" label="3. #{msg.summary}" />
|
||||
</a:modeList>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
|
||||
<td width="100%" valign="top">
|
||||
|
||||
<a:errors message="#{msg.error_wizard}" styleClass="errorMessage" />
|
||||
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "white", "white"); %>
|
||||
<table cellpadding="2" cellspacing="2" border="0" width="100%">
|
||||
<tr>
|
||||
<td colspan="2" class="mainSubTitle"><h:outputText value="#{NewActionWizard.stepTitle}" /></td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td><h:outputText value="#{msg.destination}"/>:</td>
|
||||
<td width="90%">
|
||||
<r:spaceSelector id="space-selector" label="#{msg.select_destination_prompt}"
|
||||
value="#{NewActionWizard.actionProperties.destinationLocation}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
style="border: 1px dashed #cccccc; padding: 6px;"/>
|
||||
</td>
|
||||
</tr>
|
||||
<%--
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td><nobr><h:outputText value="#{msg.encoding}"/>:</nobr></td>
|
||||
<td>
|
||||
<h:selectOneMenu value="#{NewActionWizard.actionProperties.encoding}">
|
||||
<f:selectItems value="#{NewActionWizard.encodings}" />
|
||||
</h:selectOneMenu>
|
||||
</td>
|
||||
</tr>
|
||||
--%>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td colspan="2"><h:outputText value="#{NewActionWizard.stepInstructions}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "white"); %>
|
||||
</td>
|
||||
|
||||
<td valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.next_button}" action="#{NewActionWizard.next}" styleClass="wizardButton"
|
||||
disabled="#{NewActionWizard.actionProperties.destinationLocation == null}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.back_button}" action="#{NewActionWizard.back}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.finish_button}" action="#{NewActionWizard.finish}" styleClass="wizardButton"
|
||||
disabled="#{NewActionWizard.actionProperties.destinationLocation == null}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="wizardButtonSpacing"></td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewActionWizard.cancel}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with bottom panel graphics --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_7.gif" width="4" height="4"></td>
|
||||
<td width="100%" align="center" style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_9.gif" width="4" height="4"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</h:form>
|
||||
|
||||
</f:view>
|
||||
|
||||
</r:page>
|
@@ -1,184 +0,0 @@
|
||||
<%--
|
||||
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" %>
|
||||
|
||||
<r:page titleId="title_create_action_link_category">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="action-link-category">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%-- Main area --%>
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_4.gif)" width="4"></td>
|
||||
<td bgcolor="#EEEEEE">
|
||||
|
||||
<%-- Status and Actions inner contents table --%>
|
||||
<%-- Generally this consists of an icon, textual summary and actions for the current object --%>
|
||||
<table cellspacing="4" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewActionWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewActionWizard.wizardDescription}" /> '<h:outputText value="#{DocumentDetailsBean.name}" />'</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with gradient shadow --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_7.gif" width="4" height="9"></td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_9.gif" width="4" height="9"></td>
|
||||
</tr>
|
||||
|
||||
<%-- Details --%>
|
||||
<tr valign=top>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_4.gif)" width="4"></td>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="3" border="0" width="100%">
|
||||
<tr>
|
||||
<td width="20%" valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<h:outputText styleClass="mainSubTitle" value="#{msg.steps}"/><br>
|
||||
<a:modeList itemSpacing="3" iconColumnWidth="2" selectedStyleClass="statusListHighlight"
|
||||
value="2" disabled="true">
|
||||
<a:listItem value="1" label="1. #{msg.action}" />
|
||||
<a:listItem value="2" label="2. #{msg.action_settings}" />
|
||||
<a:listItem value="3" label="3. #{msg.summary}" />
|
||||
</a:modeList>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
|
||||
<td width="100%" valign="top">
|
||||
|
||||
<a:errors message="#{msg.error_wizard}" styleClass="errorMessage" />
|
||||
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "white", "white"); %>
|
||||
<table cellpadding="2" cellspacing="2" border="0" width="100%">
|
||||
<tr>
|
||||
<td colspan="2" class="mainSubTitle"><h:outputText value="#{NewActionWizard.stepTitle}" /></td>
|
||||
</tr>
|
||||
<tr><td colspan="2" class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td valign="top"><h:outputText value="#{msg.category}"/>:</td>
|
||||
<td width="90%">
|
||||
<r:categorySelector id="category-selector" label="#{msg.select_category_prompt}"
|
||||
value="#{NewActionWizard.actionProperties.category}"
|
||||
styleClass="selector"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td colspan="2"><h:outputText value="#{NewActionWizard.stepInstructions}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "white"); %>
|
||||
</td>
|
||||
|
||||
<td valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.next_button}" action="#{NewActionWizard.next}" styleClass="wizardButton"
|
||||
disabled="#{NewActionWizard.actionProperties.category == null}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.back_button}" action="#{NewActionWizard.back}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.finish_button}" action="#{NewActionWizard.finish}" styleClass="wizardButton"
|
||||
disabled="#{NewActionWizard.actionProperties.category == null}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="wizardButtonSpacing"></td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewActionWizard.cancel}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with bottom panel graphics --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_7.gif" width="4" height="4"></td>
|
||||
<td width="100%" align="center" style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_9.gif" width="4" height="4"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</h:form>
|
||||
|
||||
</f:view>
|
||||
|
||||
</r:page>
|
@@ -1,185 +0,0 @@
|
||||
<%--
|
||||
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" %>
|
||||
|
||||
<r:page titleId="title_create_action_move">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="action-move">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%-- Main area --%>
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_4.gif)" width="4"></td>
|
||||
<td bgcolor="#EEEEEE">
|
||||
|
||||
<%-- Status and Actions inner contents table --%>
|
||||
<%-- Generally this consists of an icon, textual summary and actions for the current object --%>
|
||||
<table cellspacing="4" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td width="32">
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewActionWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewActionWizard.wizardDescription}" /> '<h:outputText value="#{DocumentDetailsBean.name}" />'</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with gradient shadow --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_7.gif" width="4" height="9"></td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_9.gif" width="4" height="9"></td>
|
||||
</tr>
|
||||
|
||||
<%-- Details --%>
|
||||
<tr valign=top>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_4.gif)" width="4"></td>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="3" border="0" width="100%">
|
||||
<tr>
|
||||
<td width="20%" valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<h:outputText styleClass="mainSubTitle" value="#{msg.steps}"/><br>
|
||||
<a:modeList itemSpacing="3" iconColumnWidth="2" selectedStyleClass="statusListHighlight"
|
||||
value="2" disabled="true">
|
||||
<a:listItem value="1" label="1. #{msg.action}" />
|
||||
<a:listItem value="2" label="2. #{msg.action_settings}" />
|
||||
<a:listItem value="3" label="3. #{msg.summary}" />
|
||||
</a:modeList>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
|
||||
<td width="100%" valign="top">
|
||||
|
||||
<a:errors message="#{msg.error_wizard}" styleClass="errorMessage" />
|
||||
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "white", "white"); %>
|
||||
<table cellpadding="2" cellspacing="2" border="0" width="100%">
|
||||
<tr>
|
||||
<td colspan="2" class="mainSubTitle"><h:outputText value="#{NewActionWizard.stepTitle}" /></td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td><h:outputText value="#{msg.destination}"/>:</td>
|
||||
<td width="90%">
|
||||
<r:spaceSelector id="space-selector" label="#{msg.select_destination_prompt}"
|
||||
value="#{NewActionWizard.actionProperties.destinationLocation}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
styleClass="selector"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td colspan="2"><h:outputText value="#{NewActionWizard.stepInstructions}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "white"); %>
|
||||
</td>
|
||||
|
||||
<td valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.next_button}" action="#{NewActionWizard.next}" styleClass="wizardButton"
|
||||
disabled="#{NewActionWizard.actionProperties.destinationLocation == null}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.back_button}" action="#{NewActionWizard.back}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.finish_button}" action="#{NewActionWizard.finish}" styleClass="wizardButton"
|
||||
disabled="#{NewActionWizard.actionProperties.destinationLocation == null}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="wizardButtonSpacing"></td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewActionWizard.cancel}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with bottom panel graphics --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_7.gif" width="4" height="4"></td>
|
||||
<td width="100%" align="center" style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_9.gif" width="4" height="4"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</h:form>
|
||||
|
||||
</f:view>
|
||||
|
||||
</r:page>
|
@@ -1,182 +0,0 @@
|
||||
<%--
|
||||
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" %>
|
||||
|
||||
<r:page titleId="title_create_action_remove_feature">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="remove-features">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%-- Main area --%>
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_4.gif)" width="4"></td>
|
||||
<td bgcolor="#EEEEEE">
|
||||
|
||||
<%-- Status and Actions inner contents table --%>
|
||||
<%-- Generally this consists of an icon, textual summary and actions for the current object --%>
|
||||
<table cellspacing="4" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td width="32">
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewActionWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewActionWizard.wizardDescription}" /> '<h:outputText value="#{DocumentDetailsBean.name}" />'</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with gradient shadow --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_7.gif" width="4" height="9"></td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_9.gif" width="4" height="9"></td>
|
||||
</tr>
|
||||
|
||||
<%-- Details --%>
|
||||
<tr valign=top>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_4.gif)" width="4"></td>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="3" border="0" width="100%">
|
||||
<tr>
|
||||
<td width="20%" valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<h:outputText styleClass="mainSubTitle" value="#{msg.steps}"/><br>
|
||||
<a:modeList itemSpacing="3" iconColumnWidth="2" selectedStyleClass="statusListHighlight"
|
||||
value="2" disabled="true">
|
||||
<a:listItem value="1" label="1. #{msg.action}" />
|
||||
<a:listItem value="2" label="2. #{msg.action_settings}" />
|
||||
<a:listItem value="3" label="3. #{msg.summary}" />
|
||||
</a:modeList>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
|
||||
<td width="100%" valign="top">
|
||||
|
||||
<a:errors message="#{msg.error_wizard}" styleClass="errorMessage" />
|
||||
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "white", "white"); %>
|
||||
<table cellpadding="2" cellspacing="2" border="0" width="100%">
|
||||
<tr>
|
||||
<td colspan="2" class="mainSubTitle"><h:outputText value="#{NewActionWizard.stepTitle}" /></td>
|
||||
</tr>
|
||||
<tr><td colspan="2" class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td><nobr><h:outputText value="#{msg.select_feature}"/>:</nobr></td>
|
||||
<td width="90%">
|
||||
<h:selectOneMenu value="#{NewActionWizard.actionProperties.aspect}">
|
||||
<f:selectItems value="#{NewActionWizard.aspects}" />
|
||||
</h:selectOneMenu>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td colspan="2"><h:outputText value="#{NewActionWizard.stepInstructions}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "white"); %>
|
||||
</td>
|
||||
|
||||
<td valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.next_button}" action="#{NewActionWizard.next}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.back_button}" action="#{NewActionWizard.back}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.finish_button}" action="#{NewActionWizard.finish}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="wizardButtonSpacing"></td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewActionWizard.cancel}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with bottom panel graphics --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_7.gif" width="4" height="4"></td>
|
||||
<td width="100%" align="center" style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_9.gif" width="4" height="4"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</h:form>
|
||||
|
||||
</f:view>
|
||||
|
||||
</r:page>
|
@@ -1,316 +0,0 @@
|
||||
<%--
|
||||
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" %>
|
||||
|
||||
<r:page titleId="title_create_action_simple_workflow">
|
||||
|
||||
<script language="JavaScript1.2">
|
||||
|
||||
window.onload = pageLoaded;
|
||||
|
||||
function pageLoaded()
|
||||
{
|
||||
document.getElementById("simple-workflow:approve-step-name").focus();
|
||||
checkButtonState();
|
||||
}
|
||||
|
||||
function checkButtonState()
|
||||
{
|
||||
if (document.getElementById("simple-workflow:approve-step-name").value.length == 0 ||
|
||||
document.getElementById("simple-workflow:client-approve-folder_selected").value.length == 0 ||
|
||||
rejectValid() == false)
|
||||
{
|
||||
document.getElementById("simple-workflow:next-button").disabled = true;
|
||||
document.getElementById("simple-workflow:finish-button").disabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById("simple-workflow:next-button").disabled = false;
|
||||
document.getElementById("simple-workflow:finish-button").disabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
function rejectValid()
|
||||
{
|
||||
var result = true;
|
||||
|
||||
if (document.forms['simple-workflow']['simple-workflow:reject-step-present'][0].checked &&
|
||||
(document.getElementById("simple-workflow:reject-step-name").value.length == 0 ||
|
||||
document.getElementById("simple-workflow:client-reject-folder_selected").value.length == 0))
|
||||
{
|
||||
result = false;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
</script>
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="simple-workflow">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%-- Main area --%>
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_4.gif)" width="4"></td>
|
||||
<td bgcolor="#EEEEEE">
|
||||
|
||||
<%-- Status and Actions inner contents table --%>
|
||||
<%-- Generally this consists of an icon, textual summary and actions for the current object --%>
|
||||
<table cellspacing="4" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td width="32">
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewActionWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewActionWizard.wizardDescription}" /> '<h:outputText value="#{DocumentDetailsBean.name}" />'</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with gradient shadow --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_7.gif" width="4" height="9"></td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_9.gif" width="4" height="9"></td>
|
||||
</tr>
|
||||
|
||||
<%-- Details --%>
|
||||
<tr valign=top>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_4.gif)" width="4"></td>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="3" border="0" width="100%">
|
||||
<tr>
|
||||
<td width="20%" valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<h:outputText styleClass="mainSubTitle" value="#{msg.steps}"/><br>
|
||||
<a:modeList itemSpacing="3" iconColumnWidth="2" selectedStyleClass="statusListHighlight"
|
||||
value="2" disabled="true">
|
||||
<a:listItem value="1" label="1. #{msg.action}" />
|
||||
<a:listItem value="2" label="2. #{msg.action_settings}" />
|
||||
<a:listItem value="3" label="3. #{msg.summary}" />
|
||||
</a:modeList>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
|
||||
<td width="100%" valign="top">
|
||||
|
||||
<a:errors message="#{msg.error_wizard}" styleClass="errorMessage" />
|
||||
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "white", "white"); %>
|
||||
<table cellpadding="2" cellspacing="2" border="0" width="100%">
|
||||
<tr>
|
||||
<td colspan="2" class="mainSubTitle"><h:outputText value="#{NewActionWizard.stepTitle}" /></td>
|
||||
</tr>
|
||||
<tr><td colspan="2" class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td colspan="2" class="wizardSectionHeading"><h:outputText value="#{msg.approve_flow}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><nobr><h:outputText value="#{msg.approve_step_name}"/>:</nobr></td>
|
||||
<td width="90%">
|
||||
<h:inputText id="approve-step-name" value="#{NewActionWizard.actionProperties.approveStepName}"
|
||||
onkeyup="javascript:checkButtonState();" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan="2" class="paddingRow"></td></tr>
|
||||
<tr><td colspan="2"><h:outputText value="#{msg.move_or_copy}"/></td>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table cellpadding="2" cellspacing="2" border="0">
|
||||
<tr>
|
||||
<td valign="top">
|
||||
<h:selectOneRadio value="#{NewActionWizard.actionProperties.approveAction}">
|
||||
<f:selectItem itemValue="move" itemLabel="#{msg.move}" />
|
||||
<f:selectItem itemValue="copy" itemLabel="#{msg.copy}" />
|
||||
</h:selectOneRadio>
|
||||
</td>
|
||||
<td style="padding-left:6px;"></td>
|
||||
<td valign="top" style="padding-top:10px;"><h:outputText value="#{msg.to}"/>:</td>
|
||||
<td style="padding-left:6px;"></td>
|
||||
<td style="padding-top:6px;">
|
||||
<r:spaceSelector id="client-approve-folder"
|
||||
label="#{msg.select_destination_prompt}"
|
||||
value="#{NewActionWizard.actionProperties.approveFolder}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
styleClass="selector"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan="2" class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td colspan="2" class="wizardSectionHeading"><h:outputText value="#{msg.reject_flow}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><h:outputText value="#{msg.want_reject_step}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<h:selectOneRadio id="reject-step-present" value="#{NewActionWizard.actionProperties.rejectStepPresent}"
|
||||
onclick="javascript:checkButtonState();" >
|
||||
<f:selectItem itemValue="yes" itemLabel="#{msg.yes}" />
|
||||
<f:selectItem itemValue="no" itemLabel="#{msg.no}" />
|
||||
</h:selectOneRadio>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td style="padding-left:24px;"></td>
|
||||
<td>
|
||||
<table cellpadding="2" cellspacing="2" border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<nobr><h:outputText value="#{msg.reject_step_name}"/>:</nobr>
|
||||
<h:inputText id="reject-step-name" value="#{NewActionWizard.actionProperties.rejectStepName}"
|
||||
onkeyup="javascript:checkButtonState();" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr><td><h:outputText value="#{msg.move_or_copy}"/></td>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellpadding="2" cellspacing="2" border="0">
|
||||
<tr>
|
||||
<td valign="top">
|
||||
<h:selectOneRadio value="#{NewActionWizard.actionProperties.rejectAction}">
|
||||
<f:selectItem itemValue="move" itemLabel="#{msg.move}" />
|
||||
<f:selectItem itemValue="copy" itemLabel="#{msg.copy}" />
|
||||
</h:selectOneRadio>
|
||||
</td>
|
||||
<td style="padding-left:6px;"></td>
|
||||
<td valign="top" style="padding-top:10px;"><h:outputText value="#{msg.to}"/>:</td>
|
||||
<td style="padding-left:6px;"></td>
|
||||
<td style="padding-top:6px;">
|
||||
<r:spaceSelector id="client-reject-folder"
|
||||
label="#{msg.select_destination_prompt}"
|
||||
value="#{NewActionWizard.actionProperties.rejectFolder}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
styleClass="selector"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td colspan="2"><h:outputText value="#{NewActionWizard.stepInstructions}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "white"); %>
|
||||
</td>
|
||||
|
||||
<td valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton id="next-button" value="#{msg.next_button}" action="#{NewActionWizard.next}" styleClass="wizardButton"
|
||||
disabled="true" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.back_button}" action="#{NewActionWizard.back}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton id="finish-button" value="#{msg.finish_button}" action="#{NewActionWizard.finish}" styleClass="wizardButton"
|
||||
disabled="true" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="wizardButtonSpacing"></td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewActionWizard.cancel}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with bottom panel graphics --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_7.gif" width="4" height="4"></td>
|
||||
<td width="100%" align="center" style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_9.gif" width="4" height="4"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
</h:form>
|
||||
|
||||
</f:view>
|
||||
|
||||
</r:page>
|
@@ -1,182 +0,0 @@
|
||||
<%--
|
||||
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" %>
|
||||
|
||||
<r:page titleId="title_create_specialise_action">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="create-action-specialise-type-action">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%-- Main area --%>
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_4.gif)" width="4"></td>
|
||||
<td bgcolor="#EEEEEE">
|
||||
|
||||
<%-- Status and Actions inner contents table --%>
|
||||
<%-- Generally this consists of an icon, textual summary and actions for the current object --%>
|
||||
<table cellspacing="4" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td width="32">
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewActionWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewActionWizard.wizardDescription}" /> '<h:outputText value="#{DocumentDetailsBean.name}" />'</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with gradient shadow --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_7.gif" width="4" height="9"></td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_9.gif" width="4" height="9"></td>
|
||||
</tr>
|
||||
|
||||
<%-- Details --%>
|
||||
<tr valign=top>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_4.gif)" width="4"></td>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="3" border="0" width="100%">
|
||||
<tr>
|
||||
<td width="20%" valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<h:outputText styleClass="mainSubTitle" value="#{msg.steps}"/><br>
|
||||
<a:modeList itemSpacing="3" iconColumnWidth="2" selectedStyleClass="statusListHighlight"
|
||||
value="2" disabled="true">
|
||||
<a:listItem value="1" label="1. #{msg.action}" />
|
||||
<a:listItem value="2" label="2. #{msg.action_settings}" />
|
||||
<a:listItem value="3" label="3. #{msg.summary}" />
|
||||
</a:modeList>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
|
||||
<td width="100%" valign="top">
|
||||
|
||||
<a:errors message="#{msg.error_wizard}" styleClass="errorMessage" />
|
||||
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "white", "white"); %>
|
||||
<table cellpadding="2" cellspacing="2" border="0" width="100%">
|
||||
<tr>
|
||||
<td colspan="2" class="mainSubTitle"><h:outputText value="#{NewActionWizard.stepTitle}" /></td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td><nobr><h:outputText value="#{msg.required_format}"/>:</nobr></td>
|
||||
<td width="90%">
|
||||
<h:selectOneMenu value="#{NewActionWizard.actionProperties.objecttype}">
|
||||
<f:selectItems value="#{NewActionWizard.objectTypes}" />
|
||||
</h:selectOneMenu>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td colspan="2"><h:outputText value="#{NewActionWizard.stepInstructions}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "white"); %>
|
||||
</td>
|
||||
|
||||
<td valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.next_button}" action="#{NewActionWizard.next}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.back_button}" action="#{NewActionWizard.back}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.finish_button}" action="#{NewActionWizard.finish}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="wizardButtonSpacing"></td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewActionWizard.cancel}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with bottom panel graphics --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_7.gif" width="4" height="4"></td>
|
||||
<td width="100%" align="center" style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_9.gif" width="4" height="4"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</h:form>
|
||||
|
||||
</f:view>
|
||||
|
||||
</r:page>
|
@@ -1,200 +0,0 @@
|
||||
<%--
|
||||
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" %>
|
||||
|
||||
<r:page titleId="title_create_action_transform_image">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="action-transform-image">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%-- Main area --%>
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_4.gif)" width="4"></td>
|
||||
<td bgcolor="#EEEEEE">
|
||||
|
||||
<%-- Status and Actions inner contents table --%>
|
||||
<%-- Generally this consists of an icon, textual summary and actions for the current object --%>
|
||||
<table cellspacing="4" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td width="32">
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewActionWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewActionWizard.wizardDescription}" /> '<h:outputText value="#{DocumentDetailsBean.name}" />'</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with gradient shadow --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_7.gif" width="4" height="9"></td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_9.gif" width="4" height="9"></td>
|
||||
</tr>
|
||||
|
||||
<%-- Details --%>
|
||||
<tr valign=top>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_4.gif)" width="4"></td>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="3" border="0" width="100%">
|
||||
<tr>
|
||||
<td width="20%" valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<h:outputText styleClass="mainSubTitle" value="#{msg.steps}"/><br>
|
||||
<a:modeList itemSpacing="3" iconColumnWidth="2" selectedStyleClass="statusListHighlight"
|
||||
value="2" disabled="true">
|
||||
<a:listItem value="1" label="1. #{msg.action}" />
|
||||
<a:listItem value="2" label="2. #{msg.action_settings}" />
|
||||
<a:listItem value="3" label="3. #{msg.summary}" />
|
||||
</a:modeList>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
|
||||
<td width="100%" valign="top">
|
||||
|
||||
<a:errors message="#{msg.error_wizard}" styleClass="errorMessage" />
|
||||
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "white", "white"); %>
|
||||
<table cellpadding="2" cellspacing="2" border="0" width="100%">
|
||||
<tr>
|
||||
<td colspan="2" class="mainSubTitle"><h:outputText value="#{NewActionWizard.stepTitle}" /></td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td><nobr><h:outputText value="#{msg.required_format}"/>:</nobr></td>
|
||||
<td width="90%">
|
||||
<h:selectOneMenu value="#{NewActionWizard.actionProperties.imageTransformer}">
|
||||
<f:selectItems value="#{NewActionWizard.imageTransformers}" />
|
||||
</h:selectOneMenu>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h:outputText value="#{msg.options}"/>:</td>
|
||||
<td>
|
||||
<h:inputText value="#{NewActionWizard.actionProperties.transformOptions}" size="50" maxlength="1024" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan="2" class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td><h:outputText value="#{msg.destination}"/>:</td>
|
||||
<td>
|
||||
<r:spaceSelector id="space-selector" label="#{msg.select_destination_prompt}"
|
||||
value="#{NewActionWizard.actionProperties.destinationLocation}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
styleClass="selector"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td colspan="2"><h:outputText value="#{NewActionWizard.stepInstructions}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "white"); %>
|
||||
</td>
|
||||
|
||||
<td valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.next_button}" action="#{NewActionWizard.next}" styleClass="wizardButton"
|
||||
disabled="#{NewActionWizard.actionProperties.destinationLocation == null}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.back_button}" action="#{NewActionWizard.back}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.finish_button}" action="#{NewActionWizard.finish}" styleClass="wizardButton"
|
||||
disabled="#{NewActionWizard.actionProperties.destinationLocation == null}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="wizardButtonSpacing"></td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewActionWizard.cancel}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with bottom panel graphics --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_7.gif" width="4" height="4"></td>
|
||||
<td width="100%" align="center" style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_9.gif" width="4" height="4"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</h:form>
|
||||
|
||||
</f:view>
|
||||
|
||||
</r:page>
|
@@ -1,194 +0,0 @@
|
||||
<%--
|
||||
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" %>
|
||||
|
||||
<r:page titleId="title_create_action_transform">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="action-transform">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%-- Main area --%>
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_4.gif)" width="4"></td>
|
||||
<td bgcolor="#EEEEEE">
|
||||
|
||||
<%-- Status and Actions inner contents table --%>
|
||||
<%-- Generally this consists of an icon, textual summary and actions for the current object --%>
|
||||
<table cellspacing="4" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td width="32">
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewActionWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewActionWizard.wizardDescription}" /> '<h:outputText value="#{DocumentDetailsBean.name}" />'</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with gradient shadow --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_7.gif" width="4" height="9"></td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_9.gif" width="4" height="9"></td>
|
||||
</tr>
|
||||
|
||||
<%-- Details --%>
|
||||
<tr valign=top>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_4.gif)" width="4"></td>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="3" border="0" width="100%">
|
||||
<tr>
|
||||
<td width="20%" valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<h:outputText styleClass="mainSubTitle" value="#{msg.steps}"/><br>
|
||||
<a:modeList itemSpacing="3" iconColumnWidth="2" selectedStyleClass="statusListHighlight"
|
||||
value="2" disabled="true">
|
||||
<a:listItem value="1" label="1. #{msg.action}" />
|
||||
<a:listItem value="2" label="2. #{msg.action_settings}" />
|
||||
<a:listItem value="3" label="3. #{msg.summary}" />
|
||||
</a:modeList>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
|
||||
<td width="100%" valign="top">
|
||||
|
||||
<a:errors message="#{msg.error_wizard}" styleClass="errorMessage" />
|
||||
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "white", "white"); %>
|
||||
<table cellpadding="2" cellspacing="2" border="0" width="100%">
|
||||
<tr>
|
||||
<td colspan="2" class="mainSubTitle"><h:outputText value="#{NewActionWizard.stepTitle}" /></td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td><nobr><h:outputText value="#{msg.required_format}"/>:</nobr></td>
|
||||
<td width="90%">
|
||||
<h:selectOneMenu value="#{NewActionWizard.actionProperties.transformer}">
|
||||
<f:selectItems value="#{NewActionWizard.transformers}" />
|
||||
</h:selectOneMenu>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan="2" class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td><h:outputText value="#{msg.destination}"/>:</td>
|
||||
<td>
|
||||
<r:spaceSelector id="space-selector" label="#{msg.select_destination_prompt}"
|
||||
value="#{NewActionWizard.actionProperties.destinationLocation}"
|
||||
initialSelection="#{NavigationBean.currentNodeId}"
|
||||
styleClass="selector"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td colspan="2"><h:outputText value="#{NewActionWizard.stepInstructions}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "white"); %>
|
||||
</td>
|
||||
|
||||
<td valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.next_button}" action="#{NewActionWizard.next}" styleClass="wizardButton"
|
||||
disabled="#{NewActionWizard.actionProperties.destinationLocation == null}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.back_button}" action="#{NewActionWizard.back}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.finish_button}" action="#{NewActionWizard.finish}" styleClass="wizardButton"
|
||||
disabled="#{NewActionWizard.actionProperties.destinationLocation == null}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="wizardButtonSpacing"></td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewActionWizard.cancel}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with bottom panel graphics --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_7.gif" width="4" height="4"></td>
|
||||
<td width="100%" align="center" style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_9.gif" width="4" height="4"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</h:form>
|
||||
|
||||
</f:view>
|
||||
|
||||
</r:page>
|
@@ -1,195 +0,0 @@
|
||||
<%--
|
||||
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" %>
|
||||
|
||||
<r:page titleId="title_create_action_action">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="new-action">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%-- Main area --%>
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_4.gif)" width="4"></td>
|
||||
<td bgcolor="#EEEEEE">
|
||||
|
||||
<%-- Status and Actions inner contents table --%>
|
||||
<%-- Generally this consists of an icon, textual summary and actions for the current object --%>
|
||||
<table cellspacing="4" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td width="32">
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewActionWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewActionWizard.wizardDescription}" /> '<h:outputText value="#{DocumentDetailsBean.name}" />'</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with gradient shadow --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_7.gif" width="4" height="9"></td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_9.gif" width="4" height="9"></td>
|
||||
</tr>
|
||||
|
||||
<%-- Details --%>
|
||||
<tr valign=top>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_4.gif)" width="4"></td>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="3" border="0" width="100%">
|
||||
<tr>
|
||||
<td width="20%" valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<h:outputText styleClass="mainSubTitle" value="#{msg.steps}"/><br>
|
||||
<a:modeList itemSpacing="3" iconColumnWidth="2" selectedStyleClass="statusListHighlight"
|
||||
value="1" disabled="true">
|
||||
<a:listItem value="1" label="1. #{msg.action}" />
|
||||
<a:listItem value="2" label="2. #{msg.action_settings}" />
|
||||
<a:listItem value="3" label="3. #{msg.summary}" />
|
||||
</a:modeList>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
|
||||
<td width="100%" valign="top">
|
||||
|
||||
<a:errors message="#{msg.error_wizard}" styleClass="errorMessage" />
|
||||
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "white", "white"); %>
|
||||
<table cellpadding="2" cellspacing="2" border="0" width="100%">
|
||||
<tr>
|
||||
<td colspan="2" class="mainSubTitle"><h:outputText value="#{NewActionWizard.stepTitle}" /></td>
|
||||
</tr>
|
||||
<tr><td colspan="2" class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td><h:outputText value="#{msg.action}"/>:</td>
|
||||
<td width="90%">
|
||||
<h:selectOneMenu value="#{NewActionWizard.action}"
|
||||
onchange="javascript:itemSelected(this);">
|
||||
<f:selectItems value="#{NewActionWizard.actions}" />
|
||||
</h:selectOneMenu>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td valign="top"><h:outputText value="#{msg.description}"/>:</td>
|
||||
<td>
|
||||
<div style="width: 300px">
|
||||
<a:dynamicDescription selected="#{NewActionWizard.action}">
|
||||
<a:descriptions value="#{NewActionWizard.actionDescriptions}" />
|
||||
</a:dynamicDescription>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td colspan="2"><h:outputText value="#{NewActionWizard.stepInstructions}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "white"); %>
|
||||
</td>
|
||||
|
||||
<td valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.next_button}" action="#{NewActionWizard.next}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.back_button}" action="#{NewActionWizard.back}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.finish_button}" action="#{NewActionWizard.finish}" styleClass="wizardButton"
|
||||
disabled="true" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="wizardButtonSpacing"></td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewActionWizard.cancel}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with bottom panel graphics --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_7.gif" width="4" height="4"></td>
|
||||
<td width="100%" align="center" style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_9.gif" width="4" height="4"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</h:form>
|
||||
|
||||
</f:view>
|
||||
|
||||
</r:page>
|
@@ -1,174 +0,0 @@
|
||||
<%--
|
||||
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" %>
|
||||
|
||||
<r:page titleId="title_create_action_summary">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="action-summary">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%-- Main area --%>
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_4.gif)" width="4"></td>
|
||||
<td bgcolor="#EEEEEE">
|
||||
|
||||
<%-- Status and Actions inner contents table --%>
|
||||
<%-- Generally this consists of an icon, textual summary and actions for the current object --%>
|
||||
<table cellspacing="4" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td width="32">
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewActionWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewActionWizard.wizardDescription}" /> '<h:outputText value="#{DocumentDetailsBean.name}" />'</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with gradient shadow --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_7.gif" width="4" height="9"></td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_9.gif" width="4" height="9"></td>
|
||||
</tr>
|
||||
|
||||
<%-- Details --%>
|
||||
<tr valign=top>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_4.gif)" width="4"></td>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="3" border="0" width="100%">
|
||||
<tr>
|
||||
<td width="20%" valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<h:outputText styleClass="mainSubTitle" value="#{msg.steps}"/><br>
|
||||
<a:modeList itemSpacing="3" iconColumnWidth="2" selectedStyleClass="statusListHighlight"
|
||||
value="3" disabled="true">
|
||||
<a:listItem value="1" label="1. #{msg.action}" />
|
||||
<a:listItem value="2" label="2. #{msg.action_settings}" />
|
||||
<a:listItem value="3" label="3. #{msg.summary}" />
|
||||
</a:modeList>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
|
||||
<td width="100%" valign="top">
|
||||
|
||||
<a:errors message="#{msg.error_wizard}" styleClass="errorMessage" />
|
||||
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "white", "white"); %>
|
||||
<table cellpadding="2" cellspacing="2" border="0" width="100%">
|
||||
<tr>
|
||||
<td colspan="2" class="mainSubTitle"><h:outputText value="#{NewActionWizard.stepTitle}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="mainSubText"><h:outputText value="#{NewActionWizard.stepDescription}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h:outputText value="#{NewActionWizard.summary}" escape="false"/></td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td colspan="2"><h:outputText value="#{NewActionWizard.stepInstructions}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "white"); %>
|
||||
</td>
|
||||
|
||||
<td valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.finish_button}" action="#{NewActionWizard.finish}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.back_button}" action="#{NewActionWizard.back}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="wizardButtonSpacing"></td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewActionWizard.cancel}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with bottom panel graphics --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_7.gif" width="4" height="4"></td>
|
||||
<td width="100%" align="center" style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_9.gif" width="4" height="4"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</h:form>
|
||||
|
||||
</f:view>
|
||||
|
||||
</r:page>
|
@@ -1,265 +0,0 @@
|
||||
<%--
|
||||
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" %>
|
||||
|
||||
<r:page titleId="title_new_rule_action">
|
||||
|
||||
<script language="JavaScript1.2">
|
||||
function itemSelected(inputField)
|
||||
{
|
||||
if (inputField.selectedIndex == 0)
|
||||
{
|
||||
document.getElementById("new-rule-action:set-add-button").disabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById("new-rule-action:set-add-button").disabled = false;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="new-rule-action">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%-- Main area --%>
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_4.gif)" width="4"></td>
|
||||
<td bgcolor="#EEEEEE">
|
||||
|
||||
<%-- Status and Actions inner contents table --%>
|
||||
<%-- Generally this consists of an icon, textual summary and actions for the current object --%>
|
||||
<table cellspacing="4" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td width="32">
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewRuleWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewRuleWizard.wizardDescription}" /></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with gradient shadow --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_7.gif" width="4" height="9"></td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_9.gif" width="4" height="9"></td>
|
||||
</tr>
|
||||
|
||||
<%-- Details --%>
|
||||
<tr valign=top>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_4.gif)" width="4"></td>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="3" border="0" width="100%">
|
||||
<tr>
|
||||
<td width="20%" valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<h:outputText styleClass="mainSubTitle" value="#{msg.steps}"/><br>
|
||||
<a:modeList itemSpacing="3" iconColumnWidth="2" selectedStyleClass="statusListHighlight"
|
||||
value="3" disabled="true">
|
||||
<a:listItem value="1" label="1. #{msg.details}" />
|
||||
<a:listItem value="2" label="2. #{msg.conditions}" />
|
||||
<a:listItem value="3" label="3. #{msg.actions}" />
|
||||
<a:listItem value="4" label="4. #{msg.summary}" />
|
||||
</a:modeList>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
|
||||
<td width="100%" valign="top">
|
||||
|
||||
<a:errors message="#{msg.error_wizard}" styleClass="errorMessage" />
|
||||
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "white", "white"); %>
|
||||
<table cellpadding="2" cellspacing="2" border="0" width="100%">
|
||||
<tr>
|
||||
<td colspan="2" class="mainSubTitle"><h:outputText value="#{NewRuleWizard.stepTitle}" /></td>
|
||||
</tr>
|
||||
<tr><td colspan="2" class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td>1.</td>
|
||||
<td><h:outputText value="#{msg.select_action}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td width="98%">
|
||||
<h:selectOneMenu value="#{NewRuleWizard.action}"
|
||||
onchange="javascript:itemSelected(this);">
|
||||
<f:selectItems value="#{NewRuleWizard.actions}" />
|
||||
</h:selectOneMenu>
|
||||
</td>
|
||||
</tr>
|
||||
<%--
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td valign="top"><h:outputText value="#{msg.description}"/>:</td>
|
||||
<td>
|
||||
<div style="width: 300px">
|
||||
<a:dynamicDescription selected="#{NewRuleWizard.action}">
|
||||
<a:descriptions value="#{NewRuleWizard.actionDescriptions}" />
|
||||
</a:dynamicDescription>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
--%>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td>2.</td>
|
||||
<td><h:outputText value="#{msg.click_set_and_add}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><h:commandButton id="set-add-button" value="#{msg.set_and_add_button}"
|
||||
action="#{NewRuleWizard.promptForActionValues}"
|
||||
disabled="true"/></td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td colspan='2'><h:outputText value="#{msg.selected_actions}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2'>
|
||||
<h:dataTable value="#{NewRuleWizard.allActionsDataModel}" var="row"
|
||||
rowClasses="selectedItemsRow,selectedItemsRowAlt"
|
||||
styleClass="selectedItems" headerClass="selectedItemsHeader"
|
||||
cellspacing="0" cellpadding="4"
|
||||
rendered="#{NewRuleWizard.allActionsDataModel.rowCount != 0}">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputText value="#{msg.summary}" />
|
||||
</f:facet>
|
||||
<h:outputText value="#{row.actionSummary}"/>
|
||||
<h:outputText value=" " escape="false"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<a:actionLink action="#{NewRuleWizard.removeAction}" image="/images/icons/delete.gif"
|
||||
value="#{msg.remove}" showLink="false" style="padding-left:6px;padding-right:2px" />
|
||||
<a:actionLink action="#{NewRuleWizard.editAction}" image="/images/icons/edit_icon.gif"
|
||||
value="#{msg.change}" showLink="false" />
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
<a:panel id="no-items" rendered="#{NewRuleWizard.allActionsDataModel.rowCount == 0}">
|
||||
<table cellspacing='0' cellpadding='2' border='0' class='selectedItems'>
|
||||
<tr>
|
||||
<td colspan='2' class='selectedItemsHeader'><h:outputText id="no-items-name" value="#{msg.summary}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='selectedItemsRow'><h:outputText id="no-items-msg" value="#{msg.no_selected_items}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</a:panel>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td colspan="2"><h:outputText value="#{NewRuleWizard.stepInstructions}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "white"); %>
|
||||
</td>
|
||||
|
||||
<td valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.next_button}" action="#{NewRuleWizard.next}" styleClass="wizardButton"
|
||||
disabled="#{NewRuleWizard.allActionsDataModel.rowCount == 0}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.back_button}" action="#{NewRuleWizard.back}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.finish_button}" action="#{NewRuleWizard.finish}" styleClass="wizardButton"
|
||||
disabled="#{NewRuleWizard.allActionsDataModel.rowCount == 0}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="wizardButtonSpacing"></td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewRuleWizard.cancel}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with bottom panel graphics --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_7.gif" width="4" height="4"></td>
|
||||
<td width="100%" align="center" style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_9.gif" width="4" height="4"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</h:form>
|
||||
|
||||
</f:view>
|
||||
|
||||
</r:page>
|
@@ -1,283 +0,0 @@
|
||||
<%--
|
||||
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" %>
|
||||
|
||||
<r:page titleId="title_new_rule_condition">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="new-rule-condition">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%-- Main area --%>
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_4.gif)" width="4"></td>
|
||||
<td bgcolor="#EEEEEE">
|
||||
|
||||
<%-- Status and Actions inner contents table --%>
|
||||
<%-- Generally this consists of an icon, textual summary and actions for the current object --%>
|
||||
<table cellspacing="4" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td width="32">
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewRuleWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewRuleWizard.wizardDescription}" /></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with gradient shadow --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_7.gif" width="4" height="9"></td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_9.gif" width="4" height="9"></td>
|
||||
</tr>
|
||||
|
||||
<%-- Details --%>
|
||||
<tr valign=top>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_4.gif)" width="4"></td>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="3" border="0" width="100%">
|
||||
<tr>
|
||||
<td width="20%" valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<h:outputText styleClass="mainSubTitle" value="#{msg.steps}"/><br>
|
||||
<a:modeList itemSpacing="3" iconColumnWidth="2" selectedStyleClass="statusListHighlight"
|
||||
value="2" disabled="true">
|
||||
<a:listItem value="1" label="1. #{msg.details}" />
|
||||
<a:listItem value="2" label="2. #{msg.conditions}" />
|
||||
<a:listItem value="3" label="3. #{msg.actions}" />
|
||||
<a:listItem value="4" label="4. #{msg.summary}" />
|
||||
</a:modeList>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
|
||||
<td width="100%" valign="top">
|
||||
|
||||
<a:errors message="#{msg.error_wizard}" styleClass="errorMessage" />
|
||||
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "white", "white"); %>
|
||||
<table cellpadding="2" cellspacing="2" border="0" width="100%">
|
||||
<tr>
|
||||
<td colspan="2" class="mainSubTitle"><h:outputText value="#{NewRuleWizard.stepTitle}" /></td>
|
||||
</tr>
|
||||
<tr><td colspan="2" class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td>1.</td>
|
||||
<td><h:outputText value="#{msg.select_condition}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td width="98%">
|
||||
<h:selectOneMenu value="#{NewRuleWizard.condition}"
|
||||
onchange="javascript:itemSelected(this);">
|
||||
<f:selectItems value="#{NewRuleWizard.conditions}" />
|
||||
</h:selectOneMenu>
|
||||
</td>
|
||||
</tr>
|
||||
<%--
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td valign="top"> </td>
|
||||
<td>
|
||||
<div>
|
||||
<a:dynamicDescription selected="#{NewRuleWizard.condition}">
|
||||
<a:descriptions value="#{NewRuleWizard.conditionDescriptions}" />
|
||||
</a:dynamicDescription>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
--%>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td>2.</td>
|
||||
<td><h:outputText value="#{msg.click_set_and_add}" id="instruction-text"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><h:commandButton id="set-add-button" value="#{msg.set_and_add_button}"
|
||||
action="#{NewRuleWizard.promptForConditionValues}"
|
||||
disabled="true"/></td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td colspan='2'><h:outputText value="#{msg.selected_conditions}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2'>
|
||||
<h:dataTable value="#{NewRuleWizard.allConditionsDataModel}" var="row"
|
||||
rowClasses="selectedItemsRow,selectedItemsRowAlt"
|
||||
styleClass="selectedItems" headerClass="selectedItemsHeader"
|
||||
cellspacing="0" cellpadding="4"
|
||||
rendered="#{NewRuleWizard.allConditionsDataModel.rowCount != 0}">
|
||||
<h:column>
|
||||
<f:facet name="header">
|
||||
<h:outputText value="#{msg.summary}" />
|
||||
</f:facet>
|
||||
<h:outputText value="#{row.conditionSummary}"/>
|
||||
</h:column>
|
||||
<h:column>
|
||||
<a:actionLink action="#{NewRuleWizard.removeCondition}" image="/images/icons/delete.gif"
|
||||
value="#{msg.remove}" showLink="false" style="padding-left:6px;padding-right:2px" />
|
||||
<a:actionLink action="#{NewRuleWizard.editCondition}" image="/images/icons/edit_icon.gif"
|
||||
value="#{msg.change}" showLink="false"
|
||||
rendered='#{row.conditionName != "no-condition"}'/>
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
<a:panel id="no-items" rendered="#{NewRuleWizard.allConditionsDataModel.rowCount == 0}">
|
||||
<table cellspacing='0' cellpadding='2' border='0' class='selectedItems'>
|
||||
<tr>
|
||||
<td colspan='2' class='selectedItemsHeader'><h:outputText id="no-items-name" value="#{msg.summary}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='selectedItemsRow'><h:outputText id="no-items-msg" value="#{msg.no_selected_items}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</a:panel>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td colspan="2"><h:outputText value="#{NewRuleWizard.stepInstructions}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "white"); %>
|
||||
</td>
|
||||
|
||||
<td valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.next_button}" action="#{NewRuleWizard.next}" styleClass="wizardButton"
|
||||
disabled="#{NewRuleWizard.allConditionsDataModel.rowCount == 0}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.back_button}" action="#{NewRuleWizard.back}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.finish_button}" action="#{NewRuleWizard.finish}" styleClass="wizardButton"
|
||||
disabled="true"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="wizardButtonSpacing"></td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewRuleWizard.cancel}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with bottom panel graphics --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_7.gif" width="4" height="4"></td>
|
||||
<td width="100%" align="center" style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_9.gif" width="4" height="4"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<script language="JavaScript">
|
||||
function itemSelected(inputField)
|
||||
{
|
||||
if (inputField.selectedIndex == 0)
|
||||
{
|
||||
document.getElementById("new-rule-condition:set-add-button").disabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById("new-rule-condition:set-add-button").disabled = false;
|
||||
}
|
||||
|
||||
// also check to see if the 'no-condition' option has been selected, if it has, change
|
||||
// the explanation text and the button label
|
||||
var short_text = "<a:outputText value='#{msg.click_add_to_list}' />";
|
||||
var long_text = "<a:outputText value='#{msg.click_set_and_add}' />";
|
||||
var short_label = "<a:outputText value='#{msg.add_to_list_button}' encodeForJavaScript='true' />";
|
||||
var long_label = "<a:outputText value='#{msg.set_and_add_button}' encodeForJavaScript='true' />";
|
||||
|
||||
if (inputField.value == "no-condition")
|
||||
{
|
||||
document.getElementById("new-rule-condition:set-add-button").value = decodeURI(short_label);
|
||||
document.getElementById("new-rule-condition:instruction-text").innerHTML = short_text;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById("new-rule-condition:set-add-button").value = decodeURI(long_label);
|
||||
document.getElementById("new-rule-condition:instruction-text").innerHTML = long_text;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
</h:form>
|
||||
|
||||
</f:view>
|
||||
|
||||
</r:page>
|
@@ -1,229 +0,0 @@
|
||||
<%--
|
||||
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" %>
|
||||
|
||||
<r:page titleId="title_new_rule_details">
|
||||
|
||||
<script language="JavaScript1.2">
|
||||
function checkButtonState(inputField)
|
||||
{
|
||||
var disabled = (inputField.value.length == 0);
|
||||
document.getElementById("new-rule-details:next-button").disabled = disabled;
|
||||
}
|
||||
</script>
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="new-rule-details">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%-- Main area --%>
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_4.gif)" width="4"></td>
|
||||
<td bgcolor="#EEEEEE">
|
||||
|
||||
<%-- Status and Actions inner contents table --%>
|
||||
<%-- Generally this consists of an icon, textual summary and actions for the current object --%>
|
||||
<table cellspacing="4" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td width="32">
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewRuleWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewRuleWizard.wizardDescription}" /></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with gradient shadow --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_7.gif" width="4" height="9"></td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_9.gif" width="4" height="9"></td>
|
||||
</tr>
|
||||
|
||||
<%-- Details --%>
|
||||
<tr valign=top>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_4.gif)" width="4"></td>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="3" border="0" width="100%">
|
||||
<tr>
|
||||
<td width="20%" valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<h:outputText styleClass="mainSubTitle" value="#{msg.steps}"/><br>
|
||||
<a:modeList itemSpacing="3" iconColumnWidth="2" selectedStyleClass="statusListHighlight"
|
||||
value="1" disabled="true">
|
||||
<a:listItem value="1" label="1. #{msg.details}" />
|
||||
<a:listItem value="2" label="2. #{msg.conditions}" />
|
||||
<a:listItem value="3" label="3. #{msg.actions}" />
|
||||
<a:listItem value="4" label="4. #{msg.summary}" />
|
||||
</a:modeList>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
|
||||
<td width="100%" valign="top">
|
||||
|
||||
<a:errors message="#{msg.error_wizard}" styleClass="errorMessage" />
|
||||
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "white", "white"); %>
|
||||
<table cellpadding="2" cellspacing="2" border="0" width="100%">
|
||||
<tr>
|
||||
<td colspan="2" class="mainSubTitle"><h:outputText value="#{NewRuleWizard.stepTitle}" /></td>
|
||||
</tr>
|
||||
<tr><td colspan="2" class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td><h:outputText value="#{msg.type}"/>:</td>
|
||||
<td width="90%">
|
||||
<h:selectOneMenu value="#{NewRuleWizard.type}" disabled="#{NewRuleWizard.inEditMode}">
|
||||
<f:selectItems value="#{NewRuleWizard.types}" />
|
||||
</h:selectOneMenu>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h:outputText value="#{msg.title}"/>:</td>
|
||||
<td>
|
||||
<h:inputText id="title" value="#{NewRuleWizard.title}" size="35" maxlength="1024"
|
||||
onkeyup="javascript:checkButtonState(this);" /> *
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h:outputText value="#{msg.description}"/>:</td>
|
||||
<td>
|
||||
<h:inputText value="#{NewRuleWizard.description}" size="35" maxlength="1024" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan="2" class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td colspan="2" class="wizardSectionHeading"><h:outputText value="#{msg.other_options}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table><tr>
|
||||
<td><h:selectBooleanCheckbox value="#{NewRuleWizard.applyToSubSpaces}"/></td>
|
||||
<td><h:outputText value="#{msg.apply_to_sub_spaces}"/></td>
|
||||
</tr></table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table><tr>
|
||||
<td><h:selectBooleanCheckbox value="#{NewRuleWizard.runInBackground}"/></td>
|
||||
<td><h:outputText value="#{msg.run_in_background}"/></td>
|
||||
</tr></table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<div id="rule-info" style="padding-left: 26px;">
|
||||
<h:graphicImage alt="" value="/images/icons/info_icon.gif" style="vertical-align: middle;" />
|
||||
<h:outputText value="#{msg.rule_background_info}" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td colspan="2"><h:outputText value="#{NewRuleWizard.stepInstructions}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "white"); %>
|
||||
</td>
|
||||
|
||||
<td valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton id="next-button" value="#{msg.next_button}" action="#{NewRuleWizard.next}"
|
||||
styleClass="wizardButton" disabled="#{NewRuleWizard.title == null}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.finish_button}" action="#{NewRuleWizard.finish}" styleClass="wizardButton"
|
||||
disabled="true"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="wizardButtonSpacing"></td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewRuleWizard.cancel}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with bottom panel graphics --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_7.gif" width="4" height="4"></td>
|
||||
<td width="100%" align="center" style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_9.gif" width="4" height="4"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</h:form>
|
||||
|
||||
</f:view>
|
||||
|
||||
</r:page>
|
@@ -1,175 +0,0 @@
|
||||
<%--
|
||||
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" %>
|
||||
|
||||
<r:page titleId="title_new_rule_summary">
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="new-rule-summary">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
|
||||
<%-- Title bar --%>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<%@ include file="../../parts/titlebar.jsp" %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%-- Main area --%>
|
||||
<tr valign="top">
|
||||
<%-- Shelf --%>
|
||||
<td>
|
||||
<%@ include file="../../parts/shelf.jsp" %>
|
||||
</td>
|
||||
|
||||
<%-- Work Area --%>
|
||||
<td width="100%">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<%-- Breadcrumb --%>
|
||||
<%@ include file="../../parts/breadcrumb.jsp" %>
|
||||
|
||||
<%-- Status and Actions --%>
|
||||
<tr>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_4.gif)" width="4"></td>
|
||||
<td bgcolor="#EEEEEE">
|
||||
|
||||
<%-- Status and Actions inner contents table --%>
|
||||
<%-- Generally this consists of an icon, textual summary and actions for the current object --%>
|
||||
<table cellspacing="4" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td width="32">
|
||||
<h:graphicImage id="wizard-logo" url="/images/icons/new_rule_large.gif" />
|
||||
</td>
|
||||
<td>
|
||||
<div class="mainTitle"><h:outputText value="#{NewRuleWizard.wizardTitle}" /></div>
|
||||
<div class="mainSubText"><h:outputText value="#{NewRuleWizard.wizardDescription}" /></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with gradient shadow --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_7.gif" width="4" height="9"></td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/statuspanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/statuspanel_9.gif" width="4" height="9"></td>
|
||||
</tr>
|
||||
|
||||
<%-- Details --%>
|
||||
<tr valign=top>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_4.gif)" width="4"></td>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="3" border="0" width="100%">
|
||||
<tr>
|
||||
<td width="20%" valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<h:outputText styleClass="mainSubTitle" value="#{msg.steps}"/><br>
|
||||
<a:modeList itemSpacing="3" iconColumnWidth="2" selectedStyleClass="statusListHighlight"
|
||||
value="4" disabled="true">
|
||||
<a:listItem value="1" label="1. #{msg.details}" />
|
||||
<a:listItem value="2" label="2. #{msg.conditions}" />
|
||||
<a:listItem value="3" label="3. #{msg.actions}" />
|
||||
<a:listItem value="4" label="4. #{msg.summary}" />
|
||||
</a:modeList>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
|
||||
<td width="100%" valign="top">
|
||||
|
||||
<a:errors message="#{msg.error_wizard}" styleClass="errorMessage" />
|
||||
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "white", "white"); %>
|
||||
<table cellpadding="2" cellspacing="2" border="0" width="100%">
|
||||
<tr>
|
||||
<td colspan="2" class="mainSubTitle"><h:outputText value="#{NewRuleWizard.stepTitle}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="mainSubText"><h:outputText value="#{NewRuleWizard.stepDescription}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h:outputText value="#{NewRuleWizard.summary}" escape="false"/></td>
|
||||
</tr>
|
||||
<tr><td class="paddingRow"></td></tr>
|
||||
<tr>
|
||||
<td colspan="2"><h:outputText value="#{NewRuleWizard.stepInstructions}" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "white"); %>
|
||||
</td>
|
||||
|
||||
<td valign="top">
|
||||
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %>
|
||||
<table cellpadding="1" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.finish_button}" action="#{NewRuleWizard.finish}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.back_button}" action="#{NewRuleWizard.back}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="wizardButtonSpacing"></td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton value="#{msg.cancel_button}" action="#{NewRuleWizard.cancel}" styleClass="wizardButton" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_6.gif)" width="4"></td>
|
||||
</tr>
|
||||
|
||||
<%-- separator row with bottom panel graphics --%>
|
||||
<tr>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_7.gif" width="4" height="4"></td>
|
||||
<td width="100%" align="center" style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_8.gif)"></td>
|
||||
<td><img src="<%=request.getContextPath()%>/images/parts/whitepanel_9.gif" width="4" height="4"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</h:form>
|
||||
|
||||
</f:view>
|
||||
|
||||
</r:page>
|
Reference in New Issue
Block a user