/[theodore]/snips/templates/form.txt


UCC Code Repository

Contents of /snips/templates/form.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 51 - (show annotations) (download)
Tue Jul 1 13:31:20 2008 UTC (11 years, 9 months ago) by theodore
File MIME type: text/plain
File size: 1377 byte(s)
More adding of stuff


1 <div id="${action}snip" class="form">
2 <form action="?" method="post">
3 % if action == 'new':
4 <h3>Making a snip is as easy as py</h3>
5 % endif
6 <p>
7 <label for="sniptags">Give your snip some tags:</label><br/>
8 <input class="textarea" type="text" name="tags" id="sniptags" value="${tags}"></input><br/>
9 <div class="suggestion">Suggestions:<div id="suggest"></div></div>
10
11 <label for="language">Pick your language</label>
12 <select name="language" id="language" >${languages}</select><br/>
13
14 <label for="sniptext">Add a description:</label><br/>
15 <textarea class="textarea" name="text" id="sniptext" rows="3" cols="">${description}</textarea><br/>
16
17 <label for="enableAI">Auto-indent:</label>
18 <input type="checkbox" name="enableAI" id="enableAI" checked="checked"></input><br/>
19
20 <label for="snipcode">Add your code:</label><br/>
21 <textarea class="textarea codearea" name="code" id="snipcode" rows="20" cols="" wrap="off" onkeydown="return process_keys_for_code(event, this);">${code}</textarea><br/>
22
23 % if action == 'new':
24 <h3>Making a snip is as easy as py</h3>
25 <label for="author">Tell us your name (not required):</label><br/>
26 <input class="textarea" type="text" name="tags" id="author" value=""></input><br/>
27 % endif
28 <input type="submit" name="submit" value="${submit}"></input>
29 ${hidden}
30 </p>
31 </form>
32 </div>

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26