comparison mod_invites_register_web/html/register_success_setup.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
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
16 <script>
17 function toggle_password(e) {
18 var button = e.target;
19 var input = button.parentNode.parentNode.querySelector("input");
20 switch(input.attributes.type.value) {
21 case "password":
22 input.attributes.type.value = "text";
23 button.innerText = "Hide";
24 break;
25 case "text":
26 input.attributes.type.value = "password";
27 button.innerText = "Show";
28 break;
29 }
30 }
31 </script>
32 </head>
33 <body>
34 <div id="background" class="fixed-top overflow-hidden" aria-role="none presentation"></div>
35 <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">
36 <div class="card rounded-lg shadow">
37 <h1 class="card-header rounded-lg rounded-lg">
38 {site_name}<br/>
39 </h1>
40 <div class="card-body">
41 <h5 class="card-title">Congratulations!</h5>
42
43 <p>You have created an account on {site_name}!</p>
44
45 <p>You can now set up {app.name} and connect it to your new account.</p>
46
47 <h5>Step 1: Download and install {app.name}</h5>
48
49 <p>{app.download.text?Download and install {app.name} below:}</p>
50
51 <div class="ml-5 mb-3">
52 {app.download.buttons#
53 {item.image&
54 <a href="{item.url}" {item.target&target="{item.target}"} rel="noopener">
55 <img src="{item.image}" {item.alttext&alt="{item.alttext}"}>
56 </a>
57 }
58 {item.text&
59 <a href="{item.url}" {item.target&target="{item.target}"} rel="noopener">
60 <button class="btn btn-primary">
61 {item.text}
62 </button>
63 </a>
64 }
65 }
66 </div>
67
68 <h5>Step 2: Connect {app.name} to your new account</h5>
69
70 <p>{app.setup.text?Launch {app.name} and sign in using your account credentials.}</p>
71
72 <p>As a final reminder, your account details are shown below:</p>
73
74 <form class="account-details col-12 col-lg-6 mx-auto">
75 <div class="form-group form-row">
76 <label for="user" class="col-md-4 col-lg-12 col-form-label font-weight-bold">Chat address (JID):</label>
77 <div class="col-md-8 col-lg-12">
78 <input type="text" class="form-control-plaintext" readonly value="{username}@{domain}">
79 </div>
80 </div>
81 {password&
82 <div class="form-group form-row">
83 <label for="password" class="col-md-4 col-lg-12 col-form-label font-weight-bold">Password:</label>
84 <div class="col-md-8 col-lg-12">
85 <div class="input-group">
86 <input type="password" readonly class="form-control" value="{password}">
87 <div class="input-group-append">
88 <button class="btn btn-outline-secondary" type="button" onclick="toggle_password(event)">Show</button>
89 </div>
90 </div>
91 </div>
92 </div>
93 }
94 </form>
95
96 <p>Your password is stored encrypted at {site_name} and will not be accessible after you close
97 this page. Keep it safe and never share it with anyone.</p>
98 </div>
99 </div>
100 </div>
101 <script src="/share/jquery/jquery.min.js"></script>
102 <script src="/share/bootstrap4/js/bootstrap.min.js"></script>
103 </body>
104 </html>