. The user can now launch the Create Form wizard directly from the Form config page in the Create Web Project wizard

. List of workflows in Submit Dialog now shows warning message when no workflows match the assets for submission
. More fixes for CreateWebContentWizard when creating non-form based content
. Edit Web Project action now available from the main actions menu for a website
. Warning indicator added to Forms page of Create Web Project wizard, when a workflow is selected but not yet configured
. Warning indicator added to Ad-hoc workflows page of Create Web Project wizard, when a workflow is selected but not yet configured

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4590 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2006-12-13 11:36:10 +00:00
parent 08f2795110
commit d959ed0ce7
8 changed files with 40 additions and 11 deletions

View File

@@ -865,6 +865,7 @@ edit_website_desc=This wizard helps you modify the settings for a web project sp
edit_website_finish_instruction=To close this wizard and save the modified settings for your web project space click Finish. To review or change your selections click Back.
edit_website=Edit Web Project Settings
workflow_settings=Workflow Settings
workflow_not_configured=Workflow not configured
error_filename_pattern=Error with workflow filename pattern: {0}
# Invite web users wizard messages
@@ -968,6 +969,7 @@ submit_comment=Comment
submit_snapshotlabel=Snapshot Label
submit_workflow_selection=Use the following workflow to submit all modified items
submit_not_submit_warning=The following items will not be submitted
submit_no_workflow_warning=No suitable workflows could be found for the modified items below
submit_submit_info=The following items will be submitted
submit_items_title=Submit Items
submit_items_desc=This page helps you to submit modified items for publishing on the website.

View File

@@ -308,8 +308,9 @@
<!-- Actions Menu for More Actions in Web Project screen -->
<action-group id="browse_website_menu">
<action idref="details_space" />
<action idref="delete_space" />
<action idref="edit_website" />
<action idref="invite_website_users" />
<action idref="delete_space" />
</action-group>
</actions>

View File

@@ -186,6 +186,9 @@ public class CreateWebContentWizard extends BaseContentWizard
{
final int step = Application.getWizardManager().getCurrentStep();
if (step == 3)
{
// if rendering a form, then save the content now to generate the renditions
if (MimetypeMap.MIMETYPE_XML.equals(this.mimeType))
{
try
{
@@ -197,6 +200,7 @@ public class CreateWebContentWizard extends BaseContentWizard
Utils.addErrorMessage(e.getMessage(), e);
}
}
}
return super.next();
}
@@ -231,6 +235,7 @@ public class CreateWebContentWizard extends BaseContentWizard
@Override
public String finish()
{
// if a form is not being entered, then save just html/text content
if (this.formInstanceData == null || this.renditions == null)
{
try

View File

@@ -542,7 +542,7 @@ public class CreateWebsiteWizard extends BaseWizardBean
}
/**
* Action method to setup a form for dialog context for the current row
* Action handler to setup a form for dialog context for the current row
*/
public void setupFormAction(ActionEvent event)
{

View File

@@ -368,6 +368,14 @@ public class SubmitDialog extends BaseDialogBean
return this.workflowItems;
}
/**
* @return size of the workflow selection list
*/
public int getWorkflowListSize()
{
return getWorkflowList().size();
}
/**
* @return the List of bean items to show in the Submit list
*/

View File

@@ -33,6 +33,7 @@
</a:selectList>
<f:verbatim></div></f:verbatim>
</h:panelGroup>
<h:commandButton value="#{msg.create_form}" style="margin:2px" styleClass="dialogControls" action="wizard:createForm" />
<%-- Selected Form table, with configuration buttons and info text --%>
<f:verbatim><div style='padding:4px'></div></f:verbatim>
@@ -47,6 +48,8 @@
<h:outputText value="#{msg.name}" />
</f:facet>
<h:outputText value="#{row.title}" />
<h:graphicImage url="/images/icons/warning.gif" style="padding:2px" width="16" height="16"
rendered="#{row.workflow != null && row.workflow.params == null}" title="#{msg.workflow_not_configured}" />
</h:column>
<h:column>
<f:facet name="header">

View File

@@ -47,6 +47,8 @@
<h:outputText value="#{msg.name}" />
</f:facet>
<h:outputText value="#{row.title}" />
<h:graphicImage url="/images/icons/warning.gif" style="padding:2px" width="16" height="16"
rendered="#{row.params == null}" title="#{msg.workflow_not_configured}" />
</h:column>
<h:column>
<f:facet name="header">

View File

@@ -69,11 +69,19 @@
</h:panelGrid>
<h:panelGrid columns="1" cellpadding="2" cellpadding="2" width="100%" style="margin-left:8px">
<h:outputText value="#{msg.submit_workflow_selection}"/>
<h:outputText value="#{msg.submit_workflow_selection}" rendered="#{DialogManager.bean.workflowListSize != 0}" />
<a:selectList id="workflow-list" multiSelect="false" styleClass="selectListTable" itemStyleClass="selectListItem"
value="#{DialogManager.bean.workflowSelectedValue}">
value="#{DialogManager.bean.workflowSelectedValue}" rendered="#{DialogManager.bean.workflowListSize != 0}">
<a:listItems value="#{DialogManager.bean.workflowList}" />
</a:selectList>
<h:panelGroup rendered="#{DialogManager.bean.workflowListSize == 0}">
<f:verbatim><% PanelGenerator.generatePanelStart(out, request.getContextPath(), "yellowInner", "#ffffcc"); %></f:verbatim>
<h:panelGrid columns="2" cellpadding="0" cellpadding="0">
<h:graphicImage url="/images/icons/warning.gif" style="padding-top:2px;padding-right:4px" width="16" height="16"/>
<h:outputText styleClass="mainSubText" value="#{msg.submit_no_workflow_warning}" />
</h:panelGrid>
<f:verbatim><% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "yellowInner"); %></f:verbatim>
</h:panelGroup>
</h:panelGrid>
<h:panelGrid columns="1" cellpadding="2" style="padding-top:16px;padding-bottom:4px;"