random template manipulations

git-svn-id: http://yolanda.mister-muffin.de/svn@396 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
erlehmann 2008-12-02 04:46:15 +00:00
parent a29670d81f
commit d856372c0b
2 changed files with 31 additions and 13 deletions

View file

@ -3,16 +3,17 @@
<!-- XHTML 5, baby ! -->
<%def name="search()">
<div id="search">
<h1>Search</h1>
${h.form(h.url_for('search_results'), method='get')}
<form action="(h.url_for('search_results'))}" method="get">
${h.text_field('query')}
${h.submit('Search Videos')}
<input id="query" name="query" type="text"/>
<input type="submit" value="Search"/>
${h.end_form()}
</form>
<ul id="queries">
@ -44,12 +45,13 @@
<h1>Login</h1>
${h.form(h.url_for('account/login'), method='post')}
<form action="${h.url_for('account/login')}"
method="post">
${h.text_field('username')}
${h.submit('Login (OpenID)')}
<input id="username" name="username" type="url"/>
<input type="submit" value="Login (OpenID)"/>
${h.end_form()}
</form>
</div>
</%def>
@ -105,6 +107,17 @@
</div>
</%def>
<%def name="upload()">
<div id="upload">
<h1>Upload</h1>
<a href="${h.url_for('upload')}">Upload</a>
</div>
</%def>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
@ -133,7 +146,12 @@
Skip menu.
</a>
<%doc>
login will be implemented later on
${self.login()}
</%doc>
${self.upload()}
${self.search()}

View file

@ -49,8 +49,8 @@
<li id="language">
<label for="language">language</label>
<select name="language">
<option value="de">German</option>
<option value="en">English</option>
<option value="deu">German</option>
<option value="eng">English</option>
</select>
</li>
@ -60,11 +60,11 @@
</li>
<li>
<div id="contributor" repeat="template">
<label for="contributor">Contributor</label>
<span id="contributor" repeat="template">
<label for="contributor.[contributor]">Contributor</label>
<input name="contributor.[contributor]" type="text"/>
<button type="remove">Remove</button>
</div>
</span>
<button type="add" template="contributor">Add contributor</button>
</li>