diff options
author | Steven Barth <steven@midlink.org> | 2008-08-16 20:18:14 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-08-16 20:18:14 +0000 |
commit | d7b95a555baac0a815bfb8975648f7435c4a0754 (patch) | |
tree | 589eaddf1ed9b7647c7bf29dac9c5e9c104d33ef /libs/cbi/luasrc/view | |
parent | 5237b79adfeaa49b23f6e95379d4e0861c153217 (diff) |
Added process control page
Minor improvements
Diffstat (limited to 'libs/cbi/luasrc/view')
-rw-r--r-- | libs/cbi/luasrc/view/cbi/button.htm | 17 | ||||
-rw-r--r-- | libs/cbi/luasrc/view/cbi/cell_valuefooter.htm | 6 | ||||
-rw-r--r-- | libs/cbi/luasrc/view/cbi/full_valuefooter.htm | 8 |
3 files changed, 27 insertions, 4 deletions
diff --git a/libs/cbi/luasrc/view/cbi/button.htm b/libs/cbi/luasrc/view/cbi/button.htm new file mode 100644 index 0000000000..2d740f45c0 --- /dev/null +++ b/libs/cbi/luasrc/view/cbi/button.htm @@ -0,0 +1,17 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth <steven@midlink.org> +Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+cbi/valueheader%> + <input<% if self.inputstyle then %> class="cbi-input-<%=self.inputstyle%>"<% end %> type="submit"<%= attr("name", cbid) .. attr("id", cbid) .. attr("value", self.title) %> /> +<%+cbi/valuefooter%> diff --git a/libs/cbi/luasrc/view/cbi/cell_valuefooter.htm b/libs/cbi/luasrc/view/cbi/cell_valuefooter.htm index fbe266ebe5..9412142465 100644 --- a/libs/cbi/luasrc/view/cbi/cell_valuefooter.htm +++ b/libs/cbi/luasrc/view/cbi/cell_valuefooter.htm @@ -13,8 +13,12 @@ $Id$ -%> - <% if self.tag_invalid[section] then -%> + <% if self.tag_error[section] then -%> + <div class="cbi-error"><%=self.tag_error[section]%></div> + <%- elseif self.tag_invalid[section] then -%> <div class="cbi-error"><%:cbi_invalid%></div> + <%- elseif self.tag_missing[section] then -%> + <div class="cbi-error"><%:cbi_missing%></div> <%- end %> </td> diff --git a/libs/cbi/luasrc/view/cbi/full_valuefooter.htm b/libs/cbi/luasrc/view/cbi/full_valuefooter.htm index a5a6046a5a..5a52898d17 100644 --- a/libs/cbi/luasrc/view/cbi/full_valuefooter.htm +++ b/libs/cbi/luasrc/view/cbi/full_valuefooter.htm @@ -21,12 +21,14 @@ $Id$ </div> <%- end -%> - <% if self.tag_invalid[section] then -%> + <% if self.tag_error[section] then -%> + <div class="cbi-error"><%=self.tag_error[section]%></div> + <%- elseif self.tag_invalid[section] then -%> <div class="cbi-error"><%:cbi_invalid%></div> - <%- end %> - <% if self.tag_missing[section] then -%> + <%- elseif self.tag_missing[section] then -%> <div class="cbi-error"><%:cbi_missing%></div> <%- end %> + </div> <% if #self.deps > 0 then -%> |