2
0
mirror of https://github.com/tilde-cat/register synced 2024-06-18 14:27:05 +00:00
register/templates.go
2018-11-06 07:16:03 +01:00

23 lines
501 B
Go

package main
import "html/template"
var formTemplate = template.Must(template.New("form").Parse(`
<html>
<body>
<h1>~🐱 signup form</h1>
<form action="/post" method="post">
Username:
<input type="text" name="username"><br/>
Email:
<input type="email" name="email"><br/>
Why would you want an account here?
<textarea name="why" cols=50 rows=10></textarea><br/>
SSH key:
<textarea name="sshpublickey" cols=50 rows=10></textarea><br/>
<input type="submit" value="Submit">
</form>
</body>
</html>
`))