Mercurial > templog
comparison 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 |
comparison
equal
deleted
inserted
replaced
491:f2e990b99637 | 492:23c6cf01d237 |
---|---|
74 | 74 |
75 .existing { | 75 .existing { |
76 margin-top: 10pt; | 76 margin-top: 10pt; |
77 } | 77 } |
78 | 78 |
79 span.inputrow { | |
80 //vertical-align: center; | |
81 } | |
82 | |
79 </style> | 83 </style> |
80 <title>Set templog</title> | 84 <title>Set templog</title> |
81 </head> | 85 </head> |
82 | 86 |
83 | 87 |
84 <script type="html/num_input"> | 88 <script type="html/num_input"> |
85 <div id="{id}"> | 89 <div id="{id}"> |
86 <span class="existing">{title} <span id="oldvalue">{oldvaluetext}{unit}</span></span> | 90 <span class="existing">{title} <span id="oldvalue">{oldvaluetext}{unit}</span></span> |
87 <br/> | 91 <br/> |
92 <span class="inputrow"> | |
88 <input type="number" class="input" name="input_{name}" /> | 93 <input type="number" class="input" name="input_{name}" /> |
89 <input type="button" class="button_down" value="-"/> | 94 <input type="button" class="button_down" value="-"/> |
90 <input type="button" class="button_up" value="+"/> | 95 <input type="button" class="button_up" value="+"/> |
96 </span> | |
91 </div> | 97 </div> |
92 </script> | 98 </script> |
93 | 99 |
94 <script type="html/yesno_button"> | 100 <script type="html/yesno_button"> |
95 <div id="{id}"> | 101 <div id="{id}"> |
96 <span class="existing">{title} <span id="oldvalue">{oldvaluetext}</span></span> | 102 <span class="existing">{title} <span id="oldvalue">{oldvaluetext}</span></span> |
97 <br/> | 103 <br/> |
104 <span class="inputrow"> | |
98 <input type="button" class="button_no yesno" value="No"/> | 105 <input type="button" class="button_no yesno" value="No"/> |
99 <input type="button" class="button_yes yesno" value="Yes"/> | 106 <input type="button" class="button_yes yesno" value="Yes"/> |
107 </span> | |
100 </div> | 108 </div> |
101 </script> | 109 </script> |
102 | 110 |
103 <script> | 111 <script> |
104 | 112 |
156 self.trigger("status", "Saved") | 164 self.trigger("status", "Saved") |
157 }); | 165 }); |
158 | 166 |
159 req.fail(function(data, status, hdr) { | 167 req.fail(function(data, status, hdr) { |
160 self.trigger("status", | 168 self.trigger("status", |
161 "Failed: " + status + "\n" + hdr.responseText) | 169 "Failed: " + data.status + ' ' |
170 + data.statusText + ' ' + data.responseText) | |
162 }); | 171 }); |
163 } | 172 } |
164 } | 173 } |
165 | 174 |
166 (function() { 'use strict'; | 175 (function() { 'use strict'; |