// Code generated by "embed -pattern html/* -id tmpls"; DO NOT EDIT.
package tmpl
var tmpls map[string]string
func init() {
tmpls = make(map[string]string)
tmpls["html/index.html"] = `<!DOCTYPE html>
<html lang=en>
<head>
<meta charset="utf-8">
<title>CMS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<style>
form input { display: block; margin: 10px 0; }
</style>
<main>
<header>
<h1>CMS</h1>
<p>A flexible CMS for everyone.</p>
</header>
<hr/>
<article>
<h1>landing page</h1>
{{ if .User }}
<p>Available Spaces</p>
<p>TODO</p>
<form method=POST action='/space/new' enctype='multipart/form-data'>
<legend>Create Space</legend>
<input required type=text name=name placeholder=name />
<input type=text name=description placeholder=description />
<input type=submit value=Go />
</form>
<form method=POST action='/user/logout' enctype='multipart/form-data'>
<legend>Logout</legend>
<input type=submit value=Go />
</form>
{{ else }}
<form method=POST action='/user/login' enctype='multipart/form-data'>
<legend>Login</legend>
<input autocomplete=on required type=text name=username placeholder=username autofocus />
<input autocomplete=on required type=password name=password placeholder=password />
<input type=submit value=Go />
</form>
<form method=POST action='/user/signup' enctype='multipart/form-data'>
<legend>Signup</legend>
<input autocomplete=on required type=text name=username placeholder=username autofocus />
<input autocomplete=on required type=password name=password placeholder=password />
<input autocomplete=on required type=password name=verify placeholder=verify />
<input type=submit value=Go />
</form>
{{ end }}
</article>
<hr/>
<footer>
<center>© 2015-2020 Evan Jones</center>
</footer>
</main>
</body>
</html>
`
}
func Get(name string) (string, bool) {
val, ok := tmpls[name]
return val, ok
}
func Must(name string) string {
val, _ := tmpls[name]
return val
}