Options-related UI improvements.

Hide as-yet-unnecessary elements on the options page, and link the
home and options pages from each other.
This commit is contained in:
John "Elwin" Edwards 2012-09-12 16:03:09 -07:00
parent 363c88f00f
commit b343678129
4 changed files with 10 additions and 3 deletions

View file

@ -130,6 +130,7 @@
<div class="modal" id="messages"> <div class="modal" id="messages">
</div> </div>
<div class="modal" id="misc"> <div class="modal" id="misc">
<div class="centerb"><a href="/options.html">Options</a></div>
<div class="centerb"><a href="/about.html">Information</a></div> <div class="centerb"><a href="/about.html">Information</a></div>
</div> </div>
<div id="debug"> <div id="debug">

View file

@ -14,11 +14,12 @@
</div> </div>
<div class="formtable" id="o_email"> <div class="formtable" id="o_email">
<div><div>E-mail:</div><div><input type="text" name="email" id="input_email"></div></div> <div><div>E-mail:</div><div><input type="text" name="email" id="input_email"></div></div>
<div><div><span class="ibutton" onclick="postemail()">Save</span></div><div><span class="ibutton">Cancel</span></div></div> <div><div><span class="ibutton" onclick="postemail()">Save</span></div><div><span class="ibutton" style="display:none">Cancel</span></div></div>
</div> </div>
<div class="formtable" id="o_pw"> <div class="formtable" id="o_pw">
<div><div>Password:</div><div><input type="password" name="pw" id="input_pw"></div></div> <div><div>Password:</div><div><input type="password" name="pw" id="input_pw"></div></div>
<div><div><span class="ibutton" onclick="postpw()">Save</span></div><div><span class="ibutton">Cancel</span></div></div> <div><div><span class="ibutton" onclick="postpw()">Save</span></div><div><span class="ibutton" style="display:none">Cancel</span></div></div>
</div> </div>
<div id="optfoot"><a href="/">Home</a></div>
</body> </body>
</html> </html>

View file

@ -15,7 +15,7 @@ function setup() {
else { else {
setstatus("You are logged in as " + reply.u + "."); setstatus("You are logged in as " + reply.u + ".");
document.getElementById("input_email").value = reply["email"]; document.getElementById("input_email").value = reply["email"];
document.getElementById("switch").style.display = "block"; //document.getElementById("switch").style.display = "block";
} }
} }
req.open('GET', url, true); req.open('GET', url, true);

View file

@ -121,3 +121,8 @@ div#switch span.ibutton {
div#ostat { div#ostat {
text-align: center; text-align: center;
} }
div#optfoot {
margin: 0 auto;
text-align: center;
}