summaryrefslogtreecommitdiff
path: root/examples/console/templates/index.pt
blob: 26c7ff8a24b89edd1f8f9740cb14817853aa2946 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<html metal:use-macro="here/standard_template.pt/macros/page">
<metal:js fill-slot="extra_head">

<script type="text/javascript"
 tal:attributes="src python: servlet.baseStaticURL +
 '/command.js'"></script>

<style type="text/css">
.input {
  color: #006600;
}
.output {
  color: #000066;
}
</style>

</metal:js>
<metal:body fill-slot="body">

<form action="" onsubmit="return send_command()">

Run:<br>
<input type="text" style="width: 100%" id="command"><br>
Multiline commands:<br>
<textarea rows=4 cols=50 style="width: 100%" id="command_long"></textarea>

Output:  <button>run command</button>
<button type="button" onclick="clear_output()">clear output</button>
<br>
<pre id="output" style="width: 100%; border: 1px solid black;
                        background-color: #ddddff">
</pre>

</form>

</metal:body>
</html>