FELIX-2331 : webconsole event plugin should be able to send/post events.
https://issues.apache.org/jira/browse/FELIX-2331

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1172536 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole-plugins/event/src/main/resources/res/events.html b/webconsole-plugins/event/src/main/resources/res/events.html
index 9fe35ac..4f7b700 100644
--- a/webconsole-plugins/event/src/main/resources/res/events.html
+++ b/webconsole-plugins/event/src/main/resources/res/events.html
@@ -1,8 +1,13 @@
-<script type="text/javascript" src="${pluginRoot}/res/ui/events.js"></script>

+<script type="text/javascript" src="${pluginRoot}/res/ui/addremove.js"></script>

+<script type="text/javascript" src="${pluginRoot}/res/ui/propeditor.js"></script>

+<script type="text/javascript" src="${pluginRoot}/res/ui/events.js"></script>

 <script type="text/javascript">

 var i18n = {

 	displayTimeline: '${displayTimeline}',

-	displayList    : '${displayList}'

+	displayList    : '${displayList}',

+	close          : '${close}',

+	send           : '${send}',

+	post           : '${post}'

 }

 </script>

 

@@ -13,6 +18,7 @@
 <div class="ui-widget-header ui-corner-top buttonGroup">

 	<button id="switch">${displayTimeline}</button>

 	<button id="clear">${clear}</button>

+	<button id="sendButton">${sendEvent}</button>

 	<button id="reload">${reload}</button>

 </div>

 

@@ -35,9 +41,27 @@
 </table>

 

 <div id="timeline" class="ui-helper-hidden">&nbsp;</div>

+

 <div id="timelineLegend" class="ui-helper-hidden">

 	<span class="event eventservice">Service Event</span>

 	<span class="event eventbundle">Bundle Event</span>

 	<span class="event eventconfig">Config Event</span>

 	<span class="event eventframework">Framework Event</span>

 </div>

+

+<div id="sendDialog" title="${sendEvent}" class="ui-helper-hidden">

+	<table>

+	<tbody>

+		<tr>

+			<th>${topic}:</th>

+			<td><input id="sendTopic"/></td>

+		</tr>

+		<tr>

+			<th>${properties}:</th>

+			<td>

+				<div id="sendProperties">&nbsp;</div>

+			</td>

+		</tr>

+	</tbody>

+	</table>

+</div>