codekasten/CryptoBottle/views/generic.tpl

53 lines
1.8 KiB
Smarty
Raw Normal View History

2012-07-21 22:49:48 +02:00
<!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="/style/logo.png" title="S.L. Logo" /></a>
<h3 class="first">sense.<span>lab</span></h3>
2012-07-21 22:49:48 +02:00
</div>
<div id="menu">
<ul>
<li><a href="/">&ouml;ffnen<span></span></a></li>
<li><a href="/cryptclose">schlie&szlig;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>