random template manipulations
git-svn-id: http://yolanda.mister-muffin.de/svn@396 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
parent
a29670d81f
commit
d856372c0b
2 changed files with 31 additions and 13 deletions
|
@ -3,16 +3,17 @@
|
||||||
<!-- XHTML 5, baby ! -->
|
<!-- XHTML 5, baby ! -->
|
||||||
|
|
||||||
<%def name="search()">
|
<%def name="search()">
|
||||||
|
|
||||||
<div id="search">
|
<div id="search">
|
||||||
|
|
||||||
<h1>Search</h1>
|
<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')}
|
<input id="query" name="query" type="text"/>
|
||||||
${h.submit('Search Videos')}
|
<input type="submit" value="Search"/>
|
||||||
|
|
||||||
${h.end_form()}
|
</form>
|
||||||
|
|
||||||
<ul id="queries">
|
<ul id="queries">
|
||||||
|
|
||||||
|
@ -44,12 +45,13 @@
|
||||||
|
|
||||||
<h1>Login</h1>
|
<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')}
|
<input id="username" name="username" type="url"/>
|
||||||
${h.submit('Login (OpenID)')}
|
<input type="submit" value="Login (OpenID)"/>
|
||||||
|
|
||||||
${h.end_form()}
|
</form>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</%def>
|
</%def>
|
||||||
|
@ -105,6 +107,17 @@
|
||||||
</div>
|
</div>
|
||||||
</%def>
|
</%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">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
|
@ -133,7 +146,12 @@
|
||||||
Skip menu.
|
Skip menu.
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
<%doc>
|
||||||
|
login will be implemented later on
|
||||||
${self.login()}
|
${self.login()}
|
||||||
|
</%doc>
|
||||||
|
|
||||||
|
${self.upload()}
|
||||||
|
|
||||||
${self.search()}
|
${self.search()}
|
||||||
|
|
||||||
|
|
|
@ -49,8 +49,8 @@
|
||||||
<li id="language">
|
<li id="language">
|
||||||
<label for="language">language</label>
|
<label for="language">language</label>
|
||||||
<select name="language">
|
<select name="language">
|
||||||
<option value="de">German</option>
|
<option value="deu">German</option>
|
||||||
<option value="en">English</option>
|
<option value="eng">English</option>
|
||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
@ -60,11 +60,11 @@
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<div id="contributor" repeat="template">
|
<span id="contributor" repeat="template">
|
||||||
<label for="contributor">Contributor</label>
|
<label for="contributor.[contributor]">Contributor</label>
|
||||||
<input name="contributor.[contributor]" type="text"/>
|
<input name="contributor.[contributor]" type="text"/>
|
||||||
<button type="remove">Remove</button>
|
<button type="remove">Remove</button>
|
||||||
</div>
|
</span>
|
||||||
<button type="add" template="contributor">Add contributor</button>
|
<button type="add" template="contributor">Add contributor</button>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue