-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpassword.html
36 lines (30 loc) · 1.53 KB
/
password.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html>
<!--
password.html - Interface for setting passwords on files.
Uses the float label form implementation by Aaron Barker (http://codepen.io/aaronbarker/pen/tIprm) and the Zepto.js jQuery fork. (http://zeptojs.com/)
Written by [email protected]
This is free and unencumbered software released into the public domain.
-->
<title>Set password</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="style.css">
<style>body{font:1.8em sans-serif}tr{line-height:3em}form{text-align:right;width:100%}div{height:3.5em}label.show{top:-1.6em}</style>
<table>
% from os import listdir
% for file in listdir(bizz):
<tr>
<td><form method="post" id="{{file}}">{{file}}
<td><input name="filename" value="{{file}}" type="hidden">
% try:
<td><span class="field--wrapper"><label for="username">Username</label><input name="username" type="text" placeholder="Username" value="{{usersdict[file]['username']}}"></span>
<td><span class="field--wrapper"><label for="password">Password</label><input name="password" type="text" placeholder="Password" value="{{usersdict[file]['password']}}"></span>
% except:
<td><span class="field--wrapper"><label for="username">Username</label><input name="username" type="text" placeholder="Username"></span>
<td><span class="field--wrapper"><label for="password">Password</label><input name="password" type="text" placeholder="Password"></span>
% end
<td><input type="submit">
</form>
</tr>
% end
</table>
<script src=float-label.js></script>