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 @@ ...@@ -33,8 +33,8 @@
</a> </a>
<div class="hst-editor-form"> <div class="hst-editor-form">
<form wicket:id="editor"> <form wicket:id="editor">
<wicket:child/>
<div wicket:id="editor-feedback" class="hst-editor-feedback" onclick="this.style.display= 'none'">[ Feedback ]</div> <div wicket:id="editor-feedback" class="hst-editor-feedback" onclick="this.style.display= 'none'">[ Feedback ]</div>
<wicket:child/>
</form> </form>
</div> </div>
</wicket:extend> </wicket:extend>
......
...@@ -123,6 +123,7 @@ public abstract class BasicEditorPlugin<K extends EditorBean> extends EditorPlug ...@@ -123,6 +123,7 @@ public abstract class BasicEditorPlugin<K extends EditorBean> extends EditorPlug
form.add(feedback = new FeedbackPanel("editor-feedback")); form.add(feedback = new FeedbackPanel("editor-feedback"));
feedback.setOutputMarkupId(true); feedback.setOutputMarkupId(true);
feedback.setFilter(message -> !message.isRendered());
nodeSort = new NodeSortAction(); nodeSort = new NodeSortAction();
......
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
</a> </a>
<div class="hst-editor-form"> <div class="hst-editor-form">
<form wicket:id="editor"> <form wicket:id="editor">
<div wicket:id="editor-feedback" class="hst-editor-feedback" onclick="this.style.display= 'none'">[ Feedback ]</div>
<p> <p>
<wicket:message key="intro">Intro</wicket:message> <wicket:message key="intro">Intro</wicket:message>
</p> </p>
...@@ -81,8 +82,6 @@ ...@@ -81,8 +82,6 @@
</fieldset> </fieldset>
<div wicket:id="componentDescription" class="component-description">[ Component description ]</div> <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> </form>
</div> </div>
</div> </div>
......
...@@ -225,13 +225,14 @@ table.parameters td.remove em .hi { ...@@ -225,13 +225,14 @@ table.parameters td.remove em .hi {
div.hst-editor-feedback ul { div.hst-editor-feedback ul {
margin: 0 0 10px 0; margin: 0 0 10px 0;
background-color: #ffffcc; padding: 10px 12px;
padding: 5px 10px; background-color: #fffada;
border: #ffcc66 1px solid; border: 1px solid #ccc7b0;
font-size: 11px;
} }
div.hst-editor-feedback ul li { div.hst-editor-feedback ul li {
list-style-type: disc; list-style-type: none;
margin-left: 10px; 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