- Fixed a layout problem in the content centre which occured when the option for creating

new content from listing of content sections was active (default is false).
- Added translation for the name of content type ccm-ldn-types-organization


git-svn-id: https://svn.libreccm.org/ccm/trunk@3119 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2015-02-05 12:22:46 +00:00
parent 5b5c25e642
commit dd79206512
5 changed files with 20 additions and 5 deletions

View File

@ -72,17 +72,22 @@ public abstract class NewItemForm extends Form {
private final Label m_createLabel;
public static final String TYPE_ID = "tid";
public NewItemForm(String name) {
this(name, BoxPanel.HORIZONTAL);
}
/**
* Construct a new NewItemForm. It sets a vertical BoxPanel as the component container.
*
* @param name the name attribute of the form.
*/
public NewItemForm(String name) {
public NewItemForm(String name, int orientation) {
super(name, new BoxPanel(BoxPanel.VERTICAL));
setIdAttr("new_item_form");
BoxPanel panel = new BoxPanel(BoxPanel.HORIZONTAL);
//BoxPanel panel = new BoxPanel(BoxPanel.HORIZONTAL);
BoxPanel panel = new BoxPanel(orientation);
panel.setWidth("2%");
panel.setBorder(0);

View File

@ -18,6 +18,7 @@
*/
package com.arsdigita.cms.ui.contentcenter;
import com.arsdigita.bebop.BoxPanel;
import java.math.BigDecimal;
import com.arsdigita.bebop.Component;
@ -209,7 +210,8 @@ public class ContentSectionContainer extends CMSContainer {
private final Hidden m_sectionIDParamWidget;
public StaticNewItemForm(BigDecimalParameter sectionParam) {
super("StaticNewItemForm");
super("StaticNewItemForm", BoxPanel.VERTICAL);
setClassAttr("static-new-item-form");
m_sectionIDParamWidget = new Hidden(sectionParam);
add(m_sectionIDParamWidget);
setProcessInvisible(true);

View File

@ -1761,3 +1761,11 @@ span#quickLinksCascade {
display: block;
}
.static-new-item-form select {
max-width: 12em;
}
.static-new-item-form input {
height: 1.8em;
}

View File

@ -12,4 +12,4 @@ cms.contenttypes.ui.organization.file_upload=Upload
cms.contenttypes.ui.organization.file_delete=Delete
cms.contenttypes.ui.organization.file_ignore=Ignore
#Fixed Key! Defined in class ContentType#getLabel()
cms.contenttypes.organization.type_label=Organization
cms.contenttypes.ldn.organization.type_label=Organization

View File

@ -12,4 +12,4 @@ cms.contenttypes.ui.organization.file_upload=Hochladen
cms.contenttypes.ui.organization.file_delete=L\u00f6schen
cms.contenttypes.ui.organization.file_ignore=\u00dcberspringen
#Fixed Key! Defined in class ContentType#getLabel()
cms.contenttypes.organization.type_label=Organisation
cms.contenttypes.ldn.organization.type_label=Organisation