- 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-94f89814c4dfmaster
parent
5b5c25e642
commit
dd79206512
|
|
@ -72,17 +72,22 @@ public abstract class NewItemForm extends Form {
|
||||||
private final Label m_createLabel;
|
private final Label m_createLabel;
|
||||||
public static final String TYPE_ID = "tid";
|
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.
|
* Construct a new NewItemForm. It sets a vertical BoxPanel as the component container.
|
||||||
*
|
*
|
||||||
* @param name the name attribute of the form.
|
* @param name the name attribute of the form.
|
||||||
*/
|
*/
|
||||||
public NewItemForm(String name) {
|
public NewItemForm(String name, int orientation) {
|
||||||
|
|
||||||
super(name, new BoxPanel(BoxPanel.VERTICAL));
|
super(name, new BoxPanel(BoxPanel.VERTICAL));
|
||||||
setIdAttr("new_item_form");
|
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.setWidth("2%");
|
||||||
panel.setBorder(0);
|
panel.setBorder(0);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@
|
||||||
*/
|
*/
|
||||||
package com.arsdigita.cms.ui.contentcenter;
|
package com.arsdigita.cms.ui.contentcenter;
|
||||||
|
|
||||||
|
import com.arsdigita.bebop.BoxPanel;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
import com.arsdigita.bebop.Component;
|
import com.arsdigita.bebop.Component;
|
||||||
|
|
@ -209,7 +210,8 @@ public class ContentSectionContainer extends CMSContainer {
|
||||||
private final Hidden m_sectionIDParamWidget;
|
private final Hidden m_sectionIDParamWidget;
|
||||||
|
|
||||||
public StaticNewItemForm(BigDecimalParameter sectionParam) {
|
public StaticNewItemForm(BigDecimalParameter sectionParam) {
|
||||||
super("StaticNewItemForm");
|
super("StaticNewItemForm", BoxPanel.VERTICAL);
|
||||||
|
setClassAttr("static-new-item-form");
|
||||||
m_sectionIDParamWidget = new Hidden(sectionParam);
|
m_sectionIDParamWidget = new Hidden(sectionParam);
|
||||||
add(m_sectionIDParamWidget);
|
add(m_sectionIDParamWidget);
|
||||||
setProcessInvisible(true);
|
setProcessInvisible(true);
|
||||||
|
|
|
||||||
|
|
@ -1761,3 +1761,11 @@ span#quickLinksCascade {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.static-new-item-form select {
|
||||||
|
max-width: 12em;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.static-new-item-form input {
|
||||||
|
height: 1.8em;
|
||||||
|
}
|
||||||
|
|
@ -12,4 +12,4 @@ cms.contenttypes.ui.organization.file_upload=Upload
|
||||||
cms.contenttypes.ui.organization.file_delete=Delete
|
cms.contenttypes.ui.organization.file_delete=Delete
|
||||||
cms.contenttypes.ui.organization.file_ignore=Ignore
|
cms.contenttypes.ui.organization.file_ignore=Ignore
|
||||||
#Fixed Key! Defined in class ContentType#getLabel()
|
#Fixed Key! Defined in class ContentType#getLabel()
|
||||||
cms.contenttypes.organization.type_label=Organization
|
cms.contenttypes.ldn.organization.type_label=Organization
|
||||||
|
|
|
||||||
|
|
@ -12,4 +12,4 @@ cms.contenttypes.ui.organization.file_upload=Hochladen
|
||||||
cms.contenttypes.ui.organization.file_delete=L\u00f6schen
|
cms.contenttypes.ui.organization.file_delete=L\u00f6schen
|
||||||
cms.contenttypes.ui.organization.file_ignore=\u00dcberspringen
|
cms.contenttypes.ui.organization.file_ignore=\u00dcberspringen
|
||||||
#Fixed Key! Defined in class ContentType#getLabel()
|
#Fixed Key! Defined in class ContentType#getLabel()
|
||||||
cms.contenttypes.organization.type_label=Organisation
|
cms.contenttypes.ldn.organization.type_label=Organisation
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue