comparison mod_invites_register_web/html/register.html @ 4093:a2116f5a7c8f

mod_invites_register_web: New module to allow web registration with an invite token
author Matthew Wild <mwild1@gmail.com>
date Fri, 11 Sep 2020 13:51:54 +0100
parents
children 15cf32e666da
comparison
equal deleted inserted replaced
4092:2b6918714792 4093:a2116f5a7c8f
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1.0">
6 <title>{site_name}</title>
7 <link rel="stylesheet" href="/share/bootstrap4/css/bootstrap.min.css">
8 <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
9 <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
10 <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
11 <link rel="manifest" href="/site.webmanifest">
12 <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
13 <meta name="msapplication-TileColor" content="#fbd308">
14 <meta name="theme-color" content="#fbd308">
15 </head>
16 <body>
17 <div id="background" class="fixed-top overflow-hidden" aria-role="none presentation"></div>
18 <div id="form" class="container col-md-8 col-md-offset-2 col-sm-8 cold-sm-offset-2 col-lg-6 col-lg-offset-3 mt-2 mt-md-5">
19 <div class="card rounded-lg shadow">
20 <h1 class="card-header rounded-lg rounded-lg">
21 Register on {site_name}<br/>
22 </h1>
23 <div class="card-body" >
24 <p>{site_name} is part of XMPP, a secure and decentralized messaging network. To begin
25 chatting {app&using {app.name} }you need to first register an account.</p>
26
27 <p>Creating an account will allow to communicate with {inviter&{inviter} and }other
28 people on {site_name} and other services on the XMPP network.</p>
29
30 {app&{app.supports_preauth_uri&
31 <div class="alert alert-info">
32 <p>If you already have {app.name} installed,
33 we recommend that you continue the account creation process using the app
34 by clicking on the button below:</p>
35
36 <h6 class="text-center">{app.name} already installed?</h6>
37
38 <div class="text-center">
39 <a href="{uri}"><button class="btn btn-secondary btn-sm">Open the app</button></a><br/>
40 <small class="text-muted">This button works only if you have the app installed already!</small>
41 </div>
42 <br/>
43 </div>
44 }}
45
46 <h5 class="card-title">Create an account</h5>
47
48 {message&<div class="alert {msg_class?alert-info}" role="alert">
49 {message}
50 </div>}
51
52 <form method="post">
53 <div class="form-group form-row">
54 <label for="user" class="col-md-4 col-lg-12 col-form-label">Username:</label>
55 <div class="col-md-8 col-lg-12">
56 <div class="input-group">
57 <input
58 type="text" name="user" class="form-control" aria-describedby="usernameHelp"
59 required autofocus minlength="1" maxlength="30" length="30"
60 >
61 <div class="input-group-append">
62 <span class="input-group-text">@{domain}</span>
63 </div>
64 </div>
65 <small id="usernameHelp" class="d-block form-text text-muted">Choose a username, this will become the first part of your new chat address.</small>
66 </div>
67 </div>
68 <div class="form-group form-row">
69 <label for="password" class="col-md-4 col-lg-12 col-form-label">Password:</label>
70 <div class="col-md-8 col-lg-12">
71 <input type="password" name="password" class="form-control" aria-describedby="passwordHelp"
72 autocomplete="new-password"
73 >
74 <small id="passwordHelp" class="form-text text-muted">Enter a secure password that you do not use anywhere else.</small>
75 </div>
76 </div>
77 <div class="form-group form-row">
78 <input type="hidden" name="token" value="{token}">
79 {app&<input type="hidden" name="app_id" value="{app.id}">}
80 <button type="submit" class="btn btn-primary btn-lg">Submit</button>
81 </div>
82 </form>
83 </div>
84 </div>
85 </div>
86 <script src="/share/jquery/jquery.min.js"></script>
87 <script src="/share/bootstrap4/js/bootstrap.min.js"></script>
88 </body>
89 </html>