Mercurial Hosting > linkmystyle
view src/forgot.html.luan @ 3:b016e4b7c8da default tip
add read_me
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 12 Jul 2025 12:51:36 -0600 |
parents | 8f4df159f06b |
children |
line wrap: on
line source
local Luan = require "luan:Luan.luan" local error = Luan.error local Io = require "luan:Io.luan" local Http = require "luan:http/Http.luan" local Shared = require "site:/lib/Shared.luan" local head = Shared.head or error() local page_header = Shared.page_header or error() local footer = Shared.footer or error() return function() Io.stdout = Http.response.text_writer() %> <!doctype html> <html lang="en"> <head> <% head() %> <title>Link My Style</title> </head> <body> <form page onsubmit="ajaxForm('/forgot.js',this)" action="javascript:"> <% page_header() %> <div> <h1>Get log in info</h1> <input type=email required name=email placeholder="Email"> <div error=email></div> <button type=submit big>Send</button> </div> <% footer() %> </form> </body> </html> <% end