nu doch mit template verstyled
This commit is contained in:
parent
114208504e
commit
fd3eb0a702
3 changed files with 248 additions and 62 deletions
52
CryptoBottle/views/generic.tpl
Normal file
52
CryptoBottle/views/generic.tpl
Normal file
|
@ -0,0 +1,52 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
|
||||
<title>CryptoBottle</title>
|
||||
<link rel="stylesheet" type="text/css" href="/style/default.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="main">
|
||||
<div id="lcol">
|
||||
<div id="llogo">
|
||||
<!-- <a href="http://senselab.org" title="Sense.Lab e.V."><img src="foo" title="Logo" /></a> -->
|
||||
<h3 class="first">sense.<span>lab</span></h3>
|
||||
</div>
|
||||
|
||||
<div id="menu">
|
||||
<ul>
|
||||
<li><a href="/">öffnen<span></span></a></li>
|
||||
<li><a href="/cryptclose">schließen<span></span></a></li>
|
||||
<li><a href="/status">status<span></span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="rcol">
|
||||
<div id="rlogo">
|
||||
<h1>Crypto<span>.Bottle<sup>0.2</sup></span></h1>
|
||||
<span class="slogan2">a minimalist webfrontend for cryptsetup</span>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
%for foo in output:
|
||||
%if foo == 'passwd':
|
||||
<div class="form">
|
||||
<h3>Passwort <span>eingeben</span></h3>
|
||||
<form action="/cryptopen" method="POST">
|
||||
<input name="passwd" type="password" tabindex="1" />
|
||||
<input type="submit" tabindex="2" value="{{output['passwd']}}">
|
||||
</form>
|
||||
</div>
|
||||
%elif output[foo]:
|
||||
<div class="output">
|
||||
<h3>output <span>{{foo}}</span></h3>
|
||||
<pre class="pre_inner">{{output[foo]}}</pre>
|
||||
</div>
|
||||
%end
|
||||
%end
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue