summaryrefslogtreecommitdiff
path: root/examples/console/templates/index.pt
blob: 87e91250025480508552d227f852ab33219669c8 (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
<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 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:<br>
<pre id="output" style="width: 100%; border: 1px solid black;
                        background-color: #ddddff">
</pre>

</form>

</metal:body>
</html>