Merge remote-tracking branch 'origin/master' into erp5-component
[slapos.git] / stack / monitor / webfile-directory / monitor-password.cgi.in
1 #!{{ python_executable }}
2
3 import cgitb
4
5 cgitb.enable()
6
7 print "<html><head>"
8 print """
9   <script type="text/javascript" src="/jquery-1.10.2.min.js"></script>
10   <link rel="stylesheet" href="pure-min.css">
11   <link rel="stylesheet" href="/style.css">"""
12 print "</head><body>"
13 print "<h1>This is the monitoring interface</h1>"
14 print "<h2>Please set your password for later access</h2>"
15 print """
16 <form action="/index.cgi" method="post" class="pure-form-aligned">
17 <div class="pure-control-group">
18 <label for="password">Password*:</label>
19 <input placeholder="Set your password" type="password" name="password" id="password"></br>
20 </div><div class="pure-control-group">
21 <label for="password">Verify Password*:</label>
22 <input placeholder="Verify password" type="password" name="password_2" id="password_2"></br>
23 </div><p id="validate-status" style="color:red"></p>
24 <div class="pure-controls">
25 <button id="register-button" type="submit" class="pure-button pure-button-primary" disabled>Access</button></div>
26 </form>
27 <script type="text/javascript" src="monitor-register.js"></script>
28 </body></html>
29 """