Add helper text to “add Sone” input field.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 20 Oct 2010 17:12:58 +0000 (19:12 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 20 Oct 2010 17:12:58 +0000 (19:12 +0200)
src/main/resources/static/css/sone.css
src/main/resources/templates/knownSones.html

index 3787f27..bd57f26 100644 (file)
        font-weight: bold;
 }
 
-#sone input.status-input.default, input.reply-input.default {
+#sone input.status-input.default, #sone input.reply-input.default, #sone #add-sone input[name=request-uri].default {
        color: #888;
 }
 
index f26e15a..bbdae37 100644 (file)
@@ -1,13 +1,19 @@
 <%include include/head.html>
 
+       <script language="javascript">
+               $(document).ready(function() {
+                       registerInputTextareaSwap("#add-sone input[name=request-uri]", "Sone Request Key");
+               })
+       </script>
+
        <h1><%= Page.Index.AddSone.Title|l10n|html></h1>
 
        <div><%= Page.Index.AddSone.Description|l10n|html></div>
 
-       <form action="addSone.html" method="post">
+       <form id="add-sone" action="addSone.html" method="post">
                <input type="hidden" name="formPassword" value="<% formPassword|html>" />
                <input type="hidden" name="returnPage" value="<% request.url|html>" />
-               <input id="addsone" type="text" name="request-uri" />
+               <input type="text" name="request-uri" />
                <button type="submit"><%= Page.Index.AddSone.Button.Add|l10n|html></button>
        </form>