* Fixed templates to be XHTML 1.1 compliant
authorSteven Barth <steven@midlink.org>
Fri, 28 Mar 2008 10:01:37 +0000 (10:01 +0000)
committerSteven Barth <steven@midlink.org>
Fri, 28 Mar 2008 10:01:37 +0000 (10:01 +0000)
src/ffluci/view/cbi/footer.htm
src/ffluci/view/cbi/header.htm
src/ffluci/view/cbi/nsection.htm
src/ffluci/view/cbi/tsection.htm
src/ffluci/view/header.htm

index 0629bd6d6009905e1d407d33191b39e64bdfcb2f..2acf710cdd9f514f338a9740e8ebd86f3f8fa960 100644 (file)
@@ -1,5 +1,7 @@
-                       <input type="submit" value="<%:save Speichern%>" />
-                       <input type="reset" value="<%:reset Zurücksetzen%>" />
-                       <script type="text/javascript">cbi_d_init();</script>
+                       <div>
+                               <input type="submit" value="<%:save Speichern%>" />
+                               <input type="reset" value="<%:reset Zurücksetzen%>" />
+                               <script type="text/javascript">cbi_d_init();</script>
+                       </div>
                </form>
 <%+footer%>
\ No newline at end of file
index e926b209162c7ff5ae2ea69018049060ef5ac36e..20b4aac7ff62139960dc9a8dd059d1b46b099b89 100644 (file)
@@ -1,5 +1,7 @@
 <%+header%>
                <form method="post" action="<%=os.getenv("REQUEST_URI")%>">
-                       <script type="text/javascript" src="<%=media%>/cbi.js"></script>
-                       <input type="hidden" name="cbi.submit" value="1" />
-                       <input type="submit" value="<%:cbi_save Speichern%>" class="hidden" />
+                       <div>
+                               <script type="text/javascript" src="<%=media%>/cbi.js"></script>
+                               <input type="hidden" name="cbi.submit" value="1" />
+                               <input type="submit" value="<%:cbi_save Speichern%>" class="hidden" />
+                       </div>
index c1f4c8bf3acba3352ef978e78df654aa74418d2e..90dbb304145f3e41a9600b7e1b59a64e50bd422b 100644 (file)
                                                                <option><%:cbi_selopt *** Zusätzliche Parameter ***%></option>
                                                        <% for key, val in pairs(self.optionals[self.section]) do %>
                                                                <option id="cbi-<%=self.config.."-"..self.section.."-"..val.option%>" value="<%=val.option%>"><%=val.title%></option>
-                                                               <% if #val.deps > 0 then %><script type="text/javascript">
-                                                                               <% for j, d in ipairs(val.deps) do %>cbi_d_add("cbi-<%=self.config.."-"..self.section.."-"..val.option%>", "cbid.<%=self.config.."."..self.section.."."..d.field%>", "<%=d.value%>");
-                                                                               <% end %>
-                                                               </script><% end %>
                                                        <% end %>
                                                        </select>
+                                                       <script type="text/javascript"><% for key, val in pairs(self.optionals[self.section]) do %>
+                                                               <% if #val.deps > 0 then %><% for j, d in ipairs(val.deps) do %>cbi_d_add("cbi-<%=self.config.."-"..self.section.."-"..val.option%>", "cbid.<%=self.config.."."..self.section.."."..d.field%>", "<%=d.value%>");
+                                                               <% end %><% end %>
+                                                       <% end %></script>
                                                <% end %>
                                                </div>
                                        <% end %>
index 15272f05f6ed22523b7232c6a50b4f30bcf0d01d..ffeb91575b0f6abea3d1dc0301d538263fa624c3 100644 (file)
                                                                        <option><%:cbi_addopt -- Feld --%></option>
                                                                <% for key, val in pairs(self.optionals[k]) do %>
                                                                        <option id="cbi-<%=self.config.."-"..k.."-"..val.option%>" value="<%=val.option%>"><%=val.title%></option>
-                                                                       <% if #val.deps > 0 then %><script type="text/javascript">
-                                                                               <% for j, d in ipairs(val.deps) do %>cbi_d_add("cbi-<%=self.config.."-"..k.."-"..val.option%>", "cbid.<%=self.config.."."..k.."."..d.field%>", "<%=d.value%>");
-                                                                               <% end %>
-                                                                       </script><% end %>
                                                                <% end %>
                                                                </select>
+                                                               <script type="text/javascript"><% for key, val in pairs(self.optionals[k]) do %>
+                                                                       <% if #val.deps > 0 then %><% for j, d in ipairs(val.deps) do %>cbi_d_add("cbi-<%=self.config.."-"..k.."-"..val.option%>", "cbid.<%=self.config.."."..k.."."..d.field%>", "<%=d.value%>");
+                                                               <% end %><% end %>
+                                                               <% end %></script>
                                                        <% end %>
                                                                <input type="submit" value="<%:add hinzufügen%>" />
                                                        </div>
index db5570515b3b19dd0fe761e1a1d19632471718e3..66495da43c94495d3cdba7937a7088febd8213bb 100644 (file)
@@ -11,6 +11,8 @@ require("ffluci.http").htmlheader()
 <head>
        <link rel="stylesheet" type="text/css" href="<%=media%>/cascade.css" />
        <link rel="stylesheet" type="text/css" href="<%=media%>/css/<%=req.category%>_<%=req.module%>.css" />
+       <meta http-equiv="content-type" content="text/xhtml+xml; charset=utf-8" />
+       <meta http-equiv="content-script-type" content="text/javascript" />
        <title>FFLuCI</title>
 </head>
 <body>