comparison makeitso/templates/index.html @ 17:941c1f73c2b6

update template
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 16 Nov 2010 19:41:37 -0800
parents bf1ce840d0f0
children c46ec69d6253
comparison
equal deleted inserted replaced
16:1818cc524cde 17:941c1f73c2b6
1 <!DOCTYPE html 1 <html>
2 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml"
5 xmlns:py="http://genshi.edgewall.org/"
6 xmlns:xi="http://www.w3.org/2001/XInclude">
7 <head> 2 <head>
8 <title>Hello world</title>
9 <script src="${link('jquery.js')}"></script>
10 <script type="text/javascript">
11 $(document).ready(function(){
12 $(".text-input").click(function(){
13 $(this).replaceWith('<form method="post"><input type="text" name="name" value="${name}"/><input type="submit" value="Go!"/></form>');
14 });
15 });
16 </script>
17 </head> 3 </head>
18 <body> 4 <body>
19 <xi:include href="navigation.html" /> 5
20 Hello <span class="text-input">${name}</span>! 6 <form method="post">
7 Type in some text
8 <textarea name="content" rows="25" cols="80"></textarea>
9 <input type="submit" value="Dissociate"/>
10 </form>
11
12 <form method="post" enctype="multipart/form-data">
13 or upload a file
14 <input type="file" name="content"/>
15 <input type="submit" value="Dissociate"/>
16 </form>
17
18 <form method="post">
19 or point to a URL
20 <input type="text" name="content"/>
21 <input type="submit" value="Dissociate"/>
22 </form>
21 </body> 23 </body>
22 </html> 24 </html>