ThemeErrors are now tagged with classes so they be formatted using CSS.
git-svn-id: https://svn.libreccm.org/ccm/trunk@2705 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
deff1ebf63
commit
130eff10ed
|
|
@ -14,16 +14,16 @@ import com.arsdigita.toolbox.ui.ComponentMap;
|
|||
|
||||
/**
|
||||
* A listener to administer images.
|
||||
*
|
||||
*
|
||||
* This listerner is used by {@link ImagesPane}.
|
||||
*
|
||||
*
|
||||
* @author Sören Bernstein <quasi@quasiweb.de>
|
||||
*/
|
||||
class ImageComponentAdminListener extends ImageComponentAbstractListener implements ActionListener {
|
||||
|
||||
private final ComponentMap m_pane;
|
||||
|
||||
public ImageComponentAdminListener(final MapComponentSelectionModel imageComponent,
|
||||
public ImageComponentAdminListener(final MapComponentSelectionModel imageComponent,
|
||||
final ComponentMap pane) {
|
||||
super(imageComponent);
|
||||
m_pane = pane;
|
||||
|
|
@ -34,10 +34,20 @@ class ImageComponentAdminListener extends ImageComponentAbstractListener impleme
|
|||
m_pane.reset(state);
|
||||
}
|
||||
|
||||
/**
|
||||
* Call {@link #processImage(com.arsdigita.bebop.event.FormSectionEvent,
|
||||
* com.arsdigita.bebop.PageState, com.arsdigita.cms.ui.ImageComponent,
|
||||
* com.arsdigita.cms.ReusableImageAsset) }
|
||||
* if the save button was pressed.
|
||||
*
|
||||
* @param event the {@link FormSectionEvent}
|
||||
*
|
||||
* @throws FormProcessException
|
||||
*/
|
||||
@Override
|
||||
protected void processImage(final FormSectionEvent event,
|
||||
final PageState state,
|
||||
final ImageComponent component,
|
||||
protected void processImage(final FormSectionEvent event,
|
||||
final PageState state,
|
||||
final ImageComponent component,
|
||||
final ReusableImageAsset image) {
|
||||
//m_pane.reset(state);
|
||||
}
|
||||
|
|
@ -46,4 +56,5 @@ class ImageComponentAdminListener extends ImageComponentAbstractListener impleme
|
|||
public void actionPerformed(final ActionEvent event) {
|
||||
setImageComponent(event.getPageState(), ImageComponent.UPLOAD);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@
|
|||
|
||||
<!-- DE Ein Text-Label mit Formatierung -->
|
||||
<!-- EN A formatted text label -->
|
||||
<xsl:template match="bebop:label[@color != '' or @weight != '' or @id != '']">
|
||||
<xsl:template match="bebop:label[@color != '' or @weight != '' or @id != '' or @class != '']">
|
||||
<xsl:call-template name="mandalay:bebopLabelStyle">
|
||||
<xsl:with-param name="text">
|
||||
<xsl:value-of select="."/>
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@
|
|||
</xsl:template>
|
||||
|
||||
<xsl:template match="theme:xslErrors">
|
||||
<div>
|
||||
<div class="themeErrors">
|
||||
<h5>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'theme'"/>
|
||||
|
|
@ -79,7 +79,7 @@
|
|||
</xsl:template>
|
||||
|
||||
<xsl:template match="theme:xslFatals">
|
||||
<div>
|
||||
<div class="themeErrors">
|
||||
<h5>
|
||||
<xsl:call-template name="mandalay:getStaticText">
|
||||
<xsl:with-param name="module" select="'theme'"/>
|
||||
|
|
|
|||
|
|
@ -286,8 +286,12 @@ class ThemeValidationPanel extends GridPanel implements ThemeDirectorConstants {
|
|||
super();
|
||||
m_noErrorsLabel = new Label
|
||||
(GlobalizationUtil.globalize("themes.no_validation_errors"));
|
||||
//m_noErrorsLabel.setFontWeight("bold");
|
||||
m_noErrorsLabel.setClassAttr("noErrors");
|
||||
m_errorsLabel = new Label
|
||||
(GlobalizationUtil.globalize("themes.validation_errors"));
|
||||
m_errorsLabel.setClassAttr("errors");
|
||||
//m_errorsLabel.setFontWeight("bold");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in New Issue