mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
32 lines
813 B
Plaintext
32 lines
813 B
Plaintext
<div id="input-partial">
|
|
<h1>Sign up</h1>
|
|
<form method="post" id="mainForm">
|
|
<p class="error" id="error"></p>
|
|
|
|
<%- include('./register-partial.html.ejs', { allowRoot: false }) %>
|
|
|
|
<p class="actions"><button type="submit" name="submit">Sign up</button></p>
|
|
</form>
|
|
</div>
|
|
<div id="response-partial">
|
|
<h1>You've been signed up</h1>
|
|
<p>
|
|
<strong>Welcome to Solid.</strong>
|
|
We wish you an exciting experience!
|
|
</p>
|
|
|
|
<%- include('./register-response-partial.html.ejs') %>
|
|
</div>
|
|
|
|
<script>
|
|
setVisibility('response-partial', false);
|
|
function updateResponse(json) {
|
|
// Swap visibility
|
|
setVisibility('input-partial', false);
|
|
setVisibility('response-partial', true);
|
|
|
|
updateResponseFields(json);
|
|
}
|
|
addPostListener('mainForm', 'error', '', updateResponse);
|
|
</script>
|