FELIX-4122 - Import new Script Console Plugin
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1505607 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole-plugins/script-console/src/main/resources/templates/script-console.html b/webconsole-plugins/script-console/src/main/resources/templates/script-console.html
new file mode 100644
index 0000000..9c03db5
--- /dev/null
+++ b/webconsole-plugins/script-console/src/main/resources/templates/script-console.html
@@ -0,0 +1,34 @@
+<script type="text/javascript" src="${pluginRoot}/res/ui/codemirror/lib/codemirror.js"></script>
+<script type="text/javascript" src="${pluginRoot}/res/ui/codemirror/addon/runmode/runmode.js"></script>
+<script type="text/javascript" src="${pluginRoot}/res/ui/codemirror/addon/mode/loadmode.js"></script>
+<script type="text/javascript" src="${pluginRoot}/res/ui/script-console.js"></script>
+<script type="text/javascript">
+// <![CDATA[
+var scriptConfig = ${__scriptConfig__};
+// ]]>
+</script>
+
+<!-- status line -->
+<p class="statline"> </p>
+<div class="ui-widget-header ">
+ <img id="ajaxSpinner" src="${appRoot}/res/imgs/loading.gif" tile="Working..." />
+ <button type="button" id="executeButton">${console.execute}</button>
+ <button type="button" id="langButton">${console.lang}</button>
+ <select id="codeLang">
+ <option></option>
+ </select>
+</div>
+<div id="splitter" >
+ <div id="code-input">
+ <form method="post" action="${pluginRoot}" id="consoleForm">
+ <textarea id="code" name="code"
+ style="width: 90%; height: 7em; "></textarea>
+ <input type="hidden" name="client" value="webconsole" />
+ <input type="hidden" name="lang" value="" />
+ </form>
+ </div>
+ <div id="code-output">
+ <textarea id="result" style="width: 90%;" readonly="yes"></textarea>
+ </div>
+</div>
+