add basic videoob-web frontend
This commit is contained in:
parent
109fb65f01
commit
c39f9d177e
5 changed files with 169 additions and 0 deletions
16
weboob/frontends/videoob_web/templates/base.mako
Normal file
16
weboob/frontends/videoob_web/templates/base.mako
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
|
||||
<%def name="title()" filter="trim">
|
||||
Videoob Web
|
||||
</%def>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>${self.title()}</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
</head>
|
||||
<body>
|
||||
${next.body()}
|
||||
</body>
|
||||
</html>
|
||||
20
weboob/frontends/videoob_web/templates/index.mako
Normal file
20
weboob/frontends/videoob_web/templates/index.mako
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
|
||||
<%inherit file="base.mako"/>
|
||||
|
||||
<%def name="body()">
|
||||
<h1>Videoob Web</h1>
|
||||
<div id="search">
|
||||
<form action="/" method="get">
|
||||
<label for="q">Search pattern:</label>
|
||||
<input id="q" type="text" name="q" value="${form_data['q']}" />
|
||||
<input type="submit" value="Search" />
|
||||
</form>
|
||||
</div>
|
||||
<div id="results">
|
||||
% for backend, items in results.iteritems():
|
||||
<h2>${backend}</h2>
|
||||
${items}
|
||||
% endfor
|
||||
</div>
|
||||
</%def>
|
||||
Loading…
Add table
Add a link
Reference in a new issue