Commit 55860406 authored by Arthur Bogaart's avatar Arthur Bogaart

HSTCONFIGEDIT-174: Fix feedback panel

- Move to top of page and style like ChannelManager widget
- only show feedback message once (maybe clear is better wrt memory?)
parent c499c82e
......@@ -33,8 +33,8 @@
</a>
<div class="hst-editor-form">
<form wicket:id="editor">
<wicket:child/>
<div wicket:id="editor-feedback" class="hst-editor-feedback" onclick="this.style.display= 'none'">[ Feedback ]</div>
<wicket:child/>
</form>
</div>
</wicket:extend>
......
......@@ -123,6 +123,7 @@ public abstract class BasicEditorPlugin<K extends EditorBean> extends EditorPlug
form.add(feedback = new FeedbackPanel("editor-feedback"));
feedback.setOutputMarkupId(true);
feedback.setFilter(message -> !message.isRendered());
nodeSort = new NodeSortAction();
......
......@@ -50,6 +50,7 @@
</a>
<div class="hst-editor-form">
<form wicket:id="editor">
<div wicket:id="editor-feedback" class="hst-editor-feedback" onclick="this.style.display= 'none'">[ Feedback ]</div>
<p>
<wicket:message key="intro">Intro</wicket:message>
</p>
......@@ -81,8 +82,6 @@
</fieldset>
<div wicket:id="componentDescription" class="component-description">[ Component description ]</div>
<div wicket:id="editor-feedback" class="hst-editor-feedback" onclick="this.style.display= 'none'">[ Feedback ]</div>
</form>
</div>
</div>
......
......@@ -225,13 +225,14 @@ table.parameters td.remove em .hi {
div.hst-editor-feedback ul {
margin: 0 0 10px 0;
background-color: #ffffcc;
padding: 5px 10px;
border: #ffcc66 1px solid;
padding: 10px 12px;
background-color: #fffada;
border: 1px solid #ccc7b0;
font-size: 11px;
}
div.hst-editor-feedback ul li {
list-style-type: disc;
list-style-type: none;
margin-left: 10px;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment