A collection of minor improvements. #36
|
@ -1,14 +1,15 @@
|
|||
function updateOwnerEmail() {
|
||||
var name = this.domainName;
|
||||
document.getElementById("owneremail-"+name).innerHTML = this.responseText;
|
||||
}
|
||||
|
||||
function showOwnerEmail(name) {
|
||||
document.getElementById("owneremail-"+name).innerHTML = "Loading...";
|
||||
|
||||
var req = new XMLHttpRequest();
|
||||
req.domainName = name;
|
||||
req.addEventListener("load", updateOwnerEmail);
|
||||
req.open("GET", "/api/get_owner_email?name="+encodeURIComponent(name));
|
||||
req.send();
|
||||
}
|
||||
function showOwnerEmail(in_name) {
|
||||
let name = in_name;
|
||||
if (!document.getElementById('owneremail-' + name)) {
|
||||
return;
|
||||
}
|
||||
document.getElementById('owneremail-' + name).innerHTML = 'Loading...';
|
||||
fetch('/api/get_owner_email?name=' + encodeURIComponent(name), {
|
||||
method: 'GET',
|
||||
mode: 'cors'
|
||||
}).then(g => g.text()).then(g => {
|
||||
document.getElementById('owneremail-' + name).innerHTML = g;
|
||||
}).catch((e) => {
|
||||
console.log('server error', e);
|
||||
});
|
||||
}
|
|
@ -1,23 +1,20 @@
|
|||
function updateAvailability() {
|
||||
if (this.responseText === "y") {
|
||||
document.getElementById("avail").innerHTML = "Available!";
|
||||
} else {
|
||||
document.getElementById("avail").innerHTML = "Not available";
|
||||
}
|
||||
}
|
||||
|
||||
function checkAvailability() {
|
||||
var name = document.getElementById("name").value;
|
||||
|
||||
if (name === "") {
|
||||
document.getElementById("avail").innerHTML = "";
|
||||
return
|
||||
let name = document.getElementById('name').value;
|
||||
if (name === '') {
|
||||
document.getElementById('avail').innerHTML = '';
|
||||
return;
|
||||
}
|
||||
|
||||
document.getElementById("avail").innerHTML = "Checking availability...";
|
||||
|
||||
var req = new XMLHttpRequest();
|
||||
req.addEventListener("load", updateAvailability);
|
||||
req.open("GET", "/api/check_availability?name="+encodeURIComponent(name));
|
||||
req.send();
|
||||
}
|
||||
document.getElementById('avail').innerHTML = 'Checking availability...';
|
||||
fetch('/api/check_availability?name=' + encodeURIComponent(name), {
|
||||
method: 'GET',
|
||||
mode: 'cors'
|
||||
}).then(g => g.text()).then(g => {
|
||||
if (g === 'y') {
|
||||
document.getElementById('avail').innerHTML = 'Available!';
|
||||
} else {
|
||||
document.getElementById('avail').innerHTML = 'Not available';
|
||||
}
|
||||
}).catch((e) => {
|
||||
document.getElementById('avail').innerHTML = 'Server error';
|
||||
});
|
||||
}
|
|
@ -54,7 +54,7 @@
|
|||
<label for="email">Email address:</label>
|
||||
</td>
|
||||
<td>
|
||||
<input type="email" name="email" id="email" value="<% user.email | html_entity %>" />
|
||||
<input type="email" name="email" id="email" value="<% user.email | html_entity %>" required/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -130,6 +130,6 @@
|
|||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
[ <button class="textButton" action="submit">update</button> ]
|
||||
[ <button class="textButton" action="submit">Update</button> ]
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -15,7 +15,7 @@ Description
|
|||
|
||||
We are also going to implement an opt-in mailing list which would permit notifications of domain registrations to be sent out to all those interested. This will, of course, be optional on both sides (opt-in to notify, opt-in to receive).
|
||||
|
||||
Furthermore, we will provide a certificate authority and issue each domain owner with a corresponding certificate. Alternative names and wildcards can also be requested.
|
||||
<!--Furthermore, we will provide a certificate authority and issue each domain owner with a corresponding certificate. Alternative names and wildcards can also be requested.-->
|
||||
|
||||
Registration
|
||||
- - - - - -
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
<label for="password">New password:</label>
|
||||
</td>
|
||||
<td>
|
||||
<input type="password" name="password" id="password" />
|
||||
<input type="password" name="password" id="password" required/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -39,11 +39,11 @@
|
|||
<label for="password2">New password (confirm):</label>
|
||||
</td>
|
||||
<td>
|
||||
<input type="password" name="password2" id="password2" />
|
||||
<input type="password" name="password2" id="password2" required/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
[ <button class="textButton" action="submit">update</button> ]
|
||||
[ <button class="textButton" action="submit">Update</button> ]
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -6,4 +6,6 @@
|
|||
|
||||
<div class="body">
|
||||
Your email address was confirmed successfully.
|
||||
<br />
|
||||
<p>[ <a class="bracketButton" href="login">Log in</a> ]
|
||||
</div>
|
||||
|
|
|
@ -31,8 +31,8 @@
|
|||
<form method="POST" class="login">
|
||||
<input type="text" name="name" id="name" onkeyup="checkAvailability()">.<% vars.config.tld %>
|
||||
<br /><br />
|
||||
[ <button action="submit" class="textButton">register domain</button> ]
|
||||
[ <a href="../domains" class="bracketButton">go back</a> ]
|
||||
[ <button action="submit" class="textButton">Register domain</button> ]
|
||||
[ <a href="../domains" class="bracketButton">Go back</a> ]
|
||||
</form>
|
||||
<span id="avail"></span>
|
||||
</div>
|
||||
|
|
|
@ -20,6 +20,8 @@
|
|||
<form method="POST">
|
||||
[ <button class="textButton" action="submit">yes, destroy the domain</button> ]
|
||||
</form>
|
||||
<br />
|
||||
[ <a href="../../domains" class="bracketButton">No, I changed my mind </a> ]
|
||||
</center>
|
||||
</p>
|
||||
</div>
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
Hello!
|
||||
|
||||
You're receiving this email because someone tried to reset your cybNIC password. If this was you, please click the link below:
|
||||
You're receiving this email because someone tried to reset your cybNIC password.
|
||||
|
||||
If this was you, please click the link below to reset your password:
|
||||
<% link %>
|
||||
|
||||
If it wasn't, you can safely ignore this email.
|
||||
|
|
|
@ -5,4 +5,4 @@ You're receiving this email because someone used your email address to sign up f
|
|||
If this was you and you'd like to confirm your account, please click this link:
|
||||
<% link %>
|
||||
|
||||
Otherwise, feel free to ignore this email - we won't send any more.
|
||||
Otherwise, feel free to ignore this email - we won't send anymore.
|
||||
|
|
|
@ -2,7 +2,7 @@ Hello!
|
|||
|
||||
You're receiving this email because someone entered your email address into cybNIC.
|
||||
|
||||
If this was you and you'd like to use this address, please click this link:
|
||||
If this was you and you'd like to change your email address to this one, please click this link:
|
||||
<% link %>
|
||||
|
||||
Otherwise, feel free to ignore this email.
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
<% IF err || success %>
|
||||
<div class="msgBox">
|
||||
<% IF e_no_user %>
|
||||
Error: There is no user account associated with that email address.
|
||||
An email has been sent if there is an account. Please click the link to reset your password.
|
||||
<% END %>
|
||||
<% IF success %>
|
||||
An email has been sent to <% params.email | html_entity %>. Please click the link to reset your password.
|
||||
An email has been sent if there is an account. Please click the link to reset your password.
|
||||
<% END %>
|
||||
</div>
|
||||
<br /><br />
|
||||
|
@ -20,8 +20,8 @@
|
|||
<br />
|
||||
<form method="POST">
|
||||
<label for="email">Email address:</label>
|
||||
<input type="email" name="email" id="email" value="<% params.email | html_entity %>"/>
|
||||
<input type="email" name="email" id="email" value="" required/>
|
||||
<br />
|
||||
[ <button action="submit" class="textButton">submit</button> ]
|
||||
[ <button action="submit" class="textButton">Send link</button> ]
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
<p>You can <a href="charter">read our charter</a> for more information and details on how to report abuse of cybNIC services.</p>
|
||||
<p>Create or log in to an account in order to register or update .cyb domains.</p>
|
||||
<center>
|
||||
<p>[ <a class="bracketButton" href="login">log in</a> ] [ <a class="bracketButton" href="register">register</a> ]</p>
|
||||
<p>[ <a class="bracketButton" href="login">Log in</a> ] [ <a class="bracketButton" href="register">Register</a> ]</p>
|
||||
</center>
|
||||
</div>
|
||||
|
|
|
@ -5,14 +5,14 @@
|
|||
|
||||
<% IF account_created %>
|
||||
<div class="msgBox">
|
||||
Your account has been created and a confirmation email sent to <% params.email | html_entity %>. Please confirm your email address, then log in here.
|
||||
Your account has been created and a confirmation email sent to <% params.email | html_entity %>. Please confirm your email address to confirm your registration.
|
||||
</div>
|
||||
<br /><br />
|
||||
<% END %>
|
||||
|
||||
<% IF params.pwchange %>
|
||||
<div class="msgBox">
|
||||
Your password has been changed and all browsers logged out. Please log in again here.
|
||||
Your password has been changed and all sessions logged out. Please log in again.
|
||||
</div>
|
||||
<br /><br />
|
||||
<% END %>
|
||||
|
@ -20,13 +20,13 @@
|
|||
<% IF error %>
|
||||
<div class="msgBox">
|
||||
<% IF e_no_user %>
|
||||
The email address <% params.email | html_entity %> is not registered.
|
||||
Your email address is not registered or the password is incorrect.
|
||||
<% END %>
|
||||
<% IF e_pass %>
|
||||
Your password was incorrect, sorry.
|
||||
Your email address is not registered or the password is incorrect.
|
||||
<% END %>
|
||||
<% IF e_not_confirmed %>
|
||||
Please confirm your email address using the link sent to <% params.email | html_entity %>.
|
||||
Please confirm your email address.
|
||||
<% END %>
|
||||
</div>
|
||||
<br /><br />
|
||||
|
@ -42,7 +42,7 @@
|
|||
<label for="email">Email address:</label>
|
||||
</td>
|
||||
<td>
|
||||
<input type="email" name="email" id="email" />
|
||||
<input type="email" name="email" id="email" required/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -50,14 +50,14 @@
|
|||
<label for="password">Password:</label>
|
||||
</td>
|
||||
<td>
|
||||
<input type="password" name="password" id="password" />
|
||||
<input type="password" name="password" id="password" required/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
[ <button action="submit" class="textButton">log in</button> ]
|
||||
[ <a href="index" class="bracketButton">go back</a> ]
|
||||
[ <button action="submit" class="textButton">Log in</button> ]
|
||||
[ <a href="index" class="bracketButton">Go back</a> ]
|
||||
<br /><br />
|
||||
[ <a href="forgot" class="bracketButton">recover forgotten password</a> ]
|
||||
[ <a href="forgot" class="bracketButton">Recover password</a> ]
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<ul>
|
||||
<% IF e_bad_value %>
|
||||
<li>The value you entered was invalid.
|
||||
<% IF params.type == 'NS' || params.type == 'CNAME' %>(Did you forget the trailing '.'?)<% END %></li>
|
||||
<% IF params.type == 'NS' || params.type == 'CNAME' || params.type == 'MX' %>(Did you forget the trailing '.'? e.g. "fqdnname.tld<b>.</b>")<% END %></li>
|
||||
<% END %>
|
||||
<% IF e_bad_type %>
|
||||
<li>You must choose a type for the record.</li>
|
||||
|
@ -51,10 +51,12 @@
|
|||
<td>
|
||||
<select name="type" id="type">
|
||||
<%# TODO: machine generate this %>
|
||||
<option value="">- Select -</option>
|
||||
<option value="" selected>- Select -</option>
|
||||
<option value="A">A</option>
|
||||
<option value="AAAA">AAAA</option>
|
||||
<option value="CNAME">CNAME</option>
|
||||
<option value="MX">MX</option>
|
||||
<option value="TXT">TXT</option>
|
||||
<option value="NS">NS</option>
|
||||
</select>
|
||||
</td>
|
||||
|
@ -66,12 +68,12 @@
|
|||
</strong>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="value" id="value" value="<% params.value | html_entity %>" />
|
||||
<input type="text" name="value" id="value" value="<% params.value | html_entity %>" required/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
[ <button action="submit" class="textButton">create record</button> ]
|
||||
[ <a class="bracketButton" href="../records">go back</a> ]
|
||||
[ <button action="submit" class="textButton">Create record</button> ]
|
||||
[ <a class="bracketButton" href="../records">Go back</a> ]
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<div class="body">
|
||||
Redirecting, please wait.
|
||||
Redirecting...
|
||||
</div>
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
<label for="email">Email address:</label>
|
||||
</td>
|
||||
<td>
|
||||
<input type="email" name="email" id="email" value="<% params.email | html_entity %>" />
|
||||
<input type="email" name="email" id="email" value="<% params.email | html_entity %>" required/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -50,7 +50,7 @@
|
|||
<label for="password">Password:</label>
|
||||
</td>
|
||||
<td>
|
||||
<input type="password" name="password" id="password" value="<% params.password | html_entity %>" />
|
||||
<input type="password" name="password" id="password" value="" required/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -58,13 +58,13 @@
|
|||
<label for="password2">Confirm password:</label>
|
||||
</td>
|
||||
<td>
|
||||
<input type="password" name="password2" id="password2" value="<% params.password2 | html_entity %>" />
|
||||
<input type="password" name="password2" id="password2" value="" required/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
[ <button action="submit" class="textButton">register</button> ]
|
||||
[ <a href="index" class="bracketButton">go back</a> ]
|
||||
[ <button action="submit" class="textButton">Register</button> ]
|
||||
[ <a href="index" class="bracketButton">Go back</a> ]
|
||||
<br /><br />
|
||||
<em>By registering, you agree to be bound by the policies set forward in our <a href="charter">charter</a>.</em>
|
||||
</form>
|
||||
|
|
Loading…
Reference in New Issue