Mercurial > genshi > mirror
diff examples/trac/templates/settings.html @ 41:686059a8a32b trunk
Sync Trac port with vendor branch r44 and add missing template files.
author | cmlenz |
---|---|
date | Mon, 03 Jul 2006 21:01:42 +0000 |
parents | |
children | 448792ab1303 |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/examples/trac/templates/settings.html @@ -0,0 +1,76 @@ +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" + xmlns:py="http://purl.org/kid/ns#" + xmlns:xi="http://www.w3.org/2001/XInclude"> + <xi:include href="layout.html"><xi:fallback/></xi:include> + <head> + <title>Settings</title> + </head> + + <body> + <div id="ctxtnav" class="nav"></div> + + <div id="content" class="settings"> + + <h1>Settings and Session Management</h1> + + <h2>User Settings</h2> + <p> + This page lets you customize and personalize your Trac settings. Session + settings are stored on the server and identified using a 'Session Key' + stored in a browser cookie. The cookie lets Trac restore your settings. + </p> + <form method="post" action=""> + <div> + <h3>Personal Information</h3> + <div> + <input type="hidden" name="action" value="save" /> + <label for="name">Name:</label> + <input type="text" id="name" name="name" class="textwidget" size="30" + value="${settings.session.name}" /> + </div> + <div> + <label for="email">Email:</label> + <input type="text" id="email" name="email" class="textwidget" size="30" + value="${settings.session.email}" /> + </div> + <div py:if="settings.session_id" py:strip=""> + <h3>Session</h3> + <div> + <label for="newsid">Session Key:</label> + <input type="text" id="newsid" name="newsid" class="textwidget" size="30" + value="${settings.session_id}" /> + <p>The session key is used to identify stored custom settings and session + data on the server. Automatically generated by default, you may change it + to something easier to remember at any time if you wish to use your settings + in a different web browser.</p> + </div> + </div> + <div> + <br /> + <input type="submit" value="Submit changes" /> + </div > + </div> + </form> + <div py:if="settings.session_id" py:strip=""> + <hr /> + <h2>Load Session</h2> + <p>You may load a previously created session by entering the corresponding + session key below and clicking 'Recover'. This lets you share settings between + multiple computers and/or web browsers.</p> + <form method="post" action=""> + <div> + <input type="hidden" name="action" value="load" /> + <label for="loadsid">Existing Session Key:</label> + <input type="text" id="loadsid" name="loadsid" class="textwidget" size="30" + value="" /> + <input type="submit" value="Recover" /> + </div> + </form> + </div> + + </div> + </body> +</html> \ No newline at end of file