From bd32a8aac5de9beb321b3cdfe180a8798c5a3379 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 28 Mar 2008 22:55:27 +0000 Subject: * CBI: improvements, bug fixes * admin: Introduced wifi, olsr, password pages --- src/ffluci/view/cbi/dvalue.htm | 12 ++++++++++++ src/ffluci/view/cbi/tsection.htm | 7 ++++--- src/ffluci/view/cbi/value.htm | 2 +- 3 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 src/ffluci/view/cbi/dvalue.htm (limited to 'src/ffluci/view/cbi') diff --git a/src/ffluci/view/cbi/dvalue.htm b/src/ffluci/view/cbi/dvalue.htm new file mode 100644 index 0000000000..178f2e16a1 --- /dev/null +++ b/src/ffluci/view/cbi/dvalue.htm @@ -0,0 +1,12 @@ +<%+cbi/valueheader%> +<% if self.value then + if type(self.value) == "function" then %> + <%=self:value(section)%> +<% else %> + <%=self.value%> +<% end +else %> + <%=(self:cfgvalue(section) or "")%> +<% end %> +  +<%+cbi/valuefooter%> diff --git a/src/ffluci/view/cbi/tsection.htm b/src/ffluci/view/cbi/tsection.htm index 012ae063a8..8da0b4a1da 100644 --- a/src/ffluci/view/cbi/tsection.htm +++ b/src/ffluci/view/cbi/tsection.htm @@ -12,9 +12,10 @@ <% if self.addremove then %>
<% if self.anonymous then %> - - <% else %> - + + <% else %> + + <% end %><% if self.err_invalid then %>
<%:cbi_invalid Fehler: Ungültige Eingabe%>
<% end %>
<% end %> diff --git a/src/ffluci/view/cbi/value.htm b/src/ffluci/view/cbi/value.htm index b994790d27..61033a0f50 100644 --- a/src/ffluci/view/cbi/value.htm +++ b/src/ffluci/view/cbi/value.htm @@ -1,3 +1,3 @@ <%+cbi/valueheader%> - size="<%=self.size%>" <% end %><% if self.maxlength then %>maxlength="<%=self.maxlength%>" <% end %>name="cbid.<%=self.config.."."..section.."."..self.option%>" value="<%=(self:cfgvalue(section) or "")%>" /> + size="<%=self.size%>" <% end %><% if self.maxlength then %>maxlength="<%=self.maxlength%>" <% end %>name="cbid.<%=self.config.."."..section.."."..self.option%>" id="cbid.<%=self.config.."."..section.."."..self.option%>" value="<%=(self:cfgvalue(section) or "")%>" /> <%+cbi/valuefooter%> -- cgit v1.2.3