CCM NG/ccm-cms: Some fixes for the MultiPartArticle

git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@4873 8810af33-2d31-482b-a856-94f89814c4df
ccm-docs
jensp 2017-07-14 18:24:54 +00:00
parent 572c03c6a5
commit f18cf8dc99
5 changed files with 20 additions and 26 deletions

View File

@ -23,7 +23,6 @@ import com.arsdigita.bebop.Form;
import com.arsdigita.bebop.FormData;
import com.arsdigita.bebop.FormProcessException;
import com.arsdigita.bebop.Label;
import com.arsdigita.bebop.Page;
import com.arsdigita.bebop.PageState;
import com.arsdigita.bebop.SaveCancelSection;
import com.arsdigita.bebop.event.FormInitListener;
@ -33,7 +32,6 @@ import com.arsdigita.bebop.event.FormSubmissionListener;
import com.arsdigita.bebop.form.TextField;
import com.arsdigita.bebop.form.CheckboxGroup;
import com.arsdigita.bebop.form.Option;
import com.arsdigita.bebop.parameters.LongParameter;
import com.arsdigita.bebop.parameters.NotNullValidationListener;
import com.arsdigita.bebop.parameters.StringParameter;
import com.arsdigita.bebop.parameters.TrimmedStringParameter;
@ -73,8 +71,6 @@ public class SectionEditForm extends Form {
private final SectionSelectionModel<? extends MultiPartArticleSection> selectedSectionModel;
private final StringParameter selectedLanguageParam;
private LongParameter textParameter;
private ItemSelectionModel selectedTextModel;
private MultiPartArticleSectionsStep sectionsStep;
private SaveCancelSection saveCancelSection;
@ -181,11 +177,6 @@ public class SectionEditForm extends Form {
return section;
}
@Override
public void register(final Page page) {
super.register(page);
page.addGlobalStateParam(textParameter);
}
/**
* Initialise the form. If there is a selected section, ie. this is an

View File

@ -34,6 +34,7 @@ import javax.persistence.Table;
import org.hibernate.envers.Audited;
import org.libreccm.l10n.LocalizedString;
import org.librecms.CmsConstants;
import static org.librecms.CmsConstants.*;
@ -53,17 +54,17 @@ import org.librecms.contentsection.ContentItem;
steps = {
@AuthoringStep(
component = ArticlePropertiesStep.class,
labelBundle = "org.librecms.CmsResources",
labelBundle = CmsConstants.CMS_BUNDLE,
labelKey = "cms.contenttypes.shared.basic_properties.title",
descriptionBundle = "org.librecms.CmsResources",
descriptionBundle = CmsConstants.CMS_BUNDLE,
descriptionKey = "cms.contenttypes.shared.basic_properties"
+ ".description",
order = 1),
@AuthoringStep(
component = ArticleTextBody.class,
labelBundle = "org.librecms.CmsResources",
labelBundle = CmsConstants.CMS_BUNDLE,
labelKey = "cms.contenttypes.shared.body_text.title",
descriptionBundle = "org.librecms.CmsResources",
descriptionBundle = CmsConstants.CMS_BUNDLE,
descriptionKey = "cms.contenttypes.shared.body_text.description",
order = 2
)

View File

@ -39,6 +39,7 @@ import javax.persistence.TemporalType;
import org.hibernate.envers.Audited;
import org.libreccm.l10n.LocalizedString;
import org.librecms.CmsConstants;
import org.librecms.contentsection.ContentItem;
@ -60,18 +61,18 @@ import static org.librecms.CmsConstants.*;
steps = {
@AuthoringStep(
component = EventPropertiesStep.class,
labelBundle = "org.librecms.CmsResources",
labelBundle = CmsConstants.CMS_BUNDLE,
labelKey = "cms.contenttypes.shared.basic_properties.title",
descriptionBundle = "org.librecms.CmsResources",
descriptionBundle = CmsConstants.CMS_BUNDLE,
descriptionKey = "cms.contenttypes.shared.basic_properties"
+ ".description",
order = 1)
,
@AuthoringStep(
component = EventTextBody.class,
labelBundle = "org.librecms.CmsResources",
labelBundle = CmsConstants.CMS_BUNDLE,
labelKey = "cms.contenttypes.shared.body_text.title",
descriptionBundle = "org.librecms.CmsResources",
descriptionBundle = CmsConstants.CMS_BUNDLE,
descriptionKey = "cms.contenttypes.shared.body_text.description",
order = 2
)

View File

@ -24,6 +24,7 @@ import com.arsdigita.cms.ui.authoring.multipartarticle.MultiPartArticleSectionsS
import org.hibernate.envers.Audited;
import org.libreccm.l10n.LocalizedString;
import org.librecms.CmsConstants;
import org.librecms.contentsection.ContentItem;
import java.io.Serializable;
@ -59,19 +60,18 @@ import static org.librecms.CmsConstants.*;
steps = {
@AuthoringStep(
component = MultiPartArticleEdit.class,
labelBundle = "org.librecms.CmsResources",
labelBundle = CmsConstants.CMS_BUNDLE,
labelKey = "cms.contenttypes.shared.basic_properties.title",
descriptionBundle = "org.librecms.CmsResources",
descriptionBundle = CmsConstants.CMS_BUNDLE,
descriptionKey = "cms.contenttypes.shared.basic_properties"
+ ".description",
order = 1)
,
@AuthoringStep(
component = MultiPartArticleSectionsStep.class,
labelBundle = "org.librecms.CmsResources",
labelBundle = CmsConstants.CMS_BUNDLE,
labelKey = "cms.contenttypes.shared.body_text.title",
descriptionBundle
= "com.arsdigita.cms.contenttypes.MultiPartArticleResources",
descriptionBundle = CmsConstants.CMS_BUNDLE,
descriptionKey = "mparticle.authoring.body_text.description",
order = 2)
})

View File

@ -24,6 +24,7 @@ import com.arsdigita.cms.ui.contenttypes.NewsCreateForm;
import org.hibernate.envers.Audited;
import org.libreccm.l10n.LocalizedString;
import org.librecms.CmsConstants;
import org.librecms.contentsection.ContentItem;
import java.io.Serializable;
@ -57,18 +58,18 @@ import static org.librecms.CmsConstants.*;
steps = {
@AuthoringStep(
component = NewsPropertiesStep.class,
labelBundle = "org.librecms.CmsResources",
labelBundle = CmsConstants.CMS_BUNDLE,
labelKey = "cms.contenttypes.shared.basic_properties.title",
descriptionBundle = "org.librecms.CmsResources",
descriptionBundle = CmsConstants.CMS_BUNDLE,
descriptionKey = "cms.contenttypes.shared.basic_properties"
+ ".description",
order = 1)
,
@AuthoringStep(
component = NewsTextBody.class,
labelBundle = "org.librecms.CmsResources",
labelBundle = CmsConstants.CMS_BUNDLE,
labelKey = "cms.contenttypes.shared.body_text.title",
descriptionBundle = "org.librecms.CmsResources",
descriptionBundle = CmsConstants.CMS_BUNDLE,
descriptionKey = "cms.contenttypes.shared.body_text.description",
order = 2
)