comparison mod_http_oauth2/html/login.html @ 5623:8de02381e80a

mod_http_oauth2: Conform to XHTML in templates Mostly because pedantic. Seems appropriate. Nice to be able to use an XML parser.
author Kim Alvefur <zash@zash.se>
date Mon, 31 Jul 2023 02:04:05 +0200
parents 46e512f4ba14
children 6109496a7ccc
comparison
equal deleted inserted replaced
5622:ae62d92506dc 5623:8de02381e80a
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8" />
5 <meta name="viewport" content="width=device-width, initial-scale=1" /> 5 <meta name="viewport" content="width=device-width, initial-scale=1" />
6 <title>{site_name} - Sign in</title> 6 <title>{site_name} - Sign in</title>
7 <link rel="stylesheet" href="style.css"> 7 <link rel="stylesheet" href="style.css" />
8 </head> 8 </head>
9 <body> 9 <body>
10 <main> 10 <main>
11 <h1>{site_name}</h1> 11 <h1>{site_name}</h1>
12 <fieldset> 12 <fieldset>
14 <p>Sign in to your account to continue.</p> 14 <p>Sign in to your account to continue.</p>
15 {state.error&<div class="error"> 15 {state.error&<div class="error">
16 <p>{state.error}</p> 16 <p>{state.error}</p>
17 </div>} 17 </div>}
18 <form method="post"> 18 <form method="post">
19 <input type="text" name="username" placeholder="Username" aria-label="Username" required {extra.username_hint~autofocus}{extra.username_hint& value="{extra.username_hint?}"}><br/> 19 <input type="text" name="username" placeholder="Username" aria-label="Username" required {extra.username_hint~autofocus}{extra.username_hint& value="{extra.username_hint?}"} /><br/>
20 <input type="password" name="password" placeholder="Password" aria-label="Password" autocomplete="current-password" required {extra.username_hint&autofocus}><br/> 20 <input type="password" name="password" placeholder="Password" aria-label="Password" autocomplete="current-password" required {extra.username_hint&autofocus} /><br />
21 <input type="submit" value="Sign in"> 21 <input type="submit" value="Sign in" />
22 </form> 22 </form>
23 </fieldset> 23 </fieldset>
24 </main> 24 </main>
25 </body> 25 </body>
26 </html> 26 </html>