0
|
1 local Luan = require "luan:Luan.luan"
|
|
2 local error = Luan.error
|
|
3 local Io = require "luan:Io.luan"
|
|
4 local Http = require "luan:http/Http.luan"
|
|
5 local Shared = require "site:/lib/Shared.luan"
|
|
6 local head = Shared.head or error()
|
|
7 local page_header = Shared.page_header or error()
|
|
8 local footer = Shared.footer or error()
|
|
9
|
|
10
|
|
11 return function()
|
|
12 Io.stdout = Http.response.text_writer()
|
|
13 %>
|
|
14 <!doctype html>
|
|
15 <html lang="en">
|
|
16 <head>
|
|
17 <% head() %>
|
|
18 <title>Link My Style</title>
|
|
19 </head>
|
|
20 <body>
|
|
21 <form page onsubmit="ajaxForm('/forgot.js',this)" action="javascript:">
|
|
22 <% page_header() %>
|
|
23 <div>
|
|
24 <h1>Get log in info</h1>
|
|
25 <input type=email required name=email placeholder="Email">
|
|
26 <div error=email></div>
|
|
27 <button type=submit big>Send</button>
|
|
28 </div>
|
|
29 <% footer() %>
|
|
30 </form>
|
|
31 </body>
|
|
32 </html>
|
|
33 <%
|
|
34 end
|