Mercurial > templog
diff web/views/set.tpl @ 492:23c6cf01d237
working kinda
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 11 Feb 2014 23:47:53 +0800 |
parents | 46e327c00246 |
children | f2838211f6ec |
line wrap: on
line diff
--- a/web/views/set.tpl Tue Feb 11 22:11:03 2014 +0800 +++ b/web/views/set.tpl Tue Feb 11 23:47:53 2014 +0800 @@ -76,6 +76,10 @@ margin-top: 10pt; } +span.inputrow { + //vertical-align: center; +} + </style> <title>Set templog</title> </head> @@ -85,9 +89,11 @@ <div id="{id}"> <span class="existing">{title} <span id="oldvalue">{oldvaluetext}{unit}</span></span> <br/> +<span class="inputrow"> <input type="number" class="input" name="input_{name}" /> <input type="button" class="button_down" value="-"/> <input type="button" class="button_up" value="+"/> +</span> </div> </script> @@ -95,8 +101,10 @@ <div id="{id}"> <span class="existing">{title} <span id="oldvalue">{oldvaluetext}</span></span> <br/> +<span class="inputrow"> <input type="button" class="button_no yesno" value="No"/> <input type="button" class="button_yes yesno" value="Yes"/> +</span> </div> </script> @@ -158,7 +166,8 @@ req.fail(function(data, status, hdr) { self.trigger("status", - "Failed: " + status + "\n" + hdr.responseText) + "Failed: " + data.status + ' ' + + data.statusText + ' ' + data.responseText) }); } }