* Fixed templates to be XHTML 1.1 compliant

This commit is contained in:
Steven Barth 2008-03-28 10:01:37 +00:00
parent 729c6f0f03
commit 7e9c97808d
5 changed files with 20 additions and 14 deletions

View file

@ -1,5 +1,7 @@
<input type="submit" value="<%:save Speichern%>" /> <div>
<input type="reset" value="<%:reset Zurücksetzen%>" /> <input type="submit" value="<%:save Speichern%>" />
<script type="text/javascript">cbi_d_init();</script> <input type="reset" value="<%:reset Zurücksetzen%>" />
<script type="text/javascript">cbi_d_init();</script>
</div>
</form> </form>
<%+footer%> <%+footer%>

View file

@ -1,5 +1,7 @@
<%+header%> <%+header%>
<form method="post" action="<%=os.getenv("REQUEST_URI")%>"> <form method="post" action="<%=os.getenv("REQUEST_URI")%>">
<script type="text/javascript" src="<%=media%>/cbi.js"></script> <div>
<input type="hidden" name="cbi.submit" value="1" /> <script type="text/javascript" src="<%=media%>/cbi.js"></script>
<input type="submit" value="<%:cbi_save Speichern%>" class="hidden" /> <input type="hidden" name="cbi.submit" value="1" />
<input type="submit" value="<%:cbi_save Speichern%>" class="hidden" />
</div>

View file

@ -17,12 +17,12 @@
<option><%:cbi_selopt *** Zusätzliche Parameter ***%></option> <option><%:cbi_selopt *** Zusätzliche Parameter ***%></option>
<% for key, val in pairs(self.optionals[self.section]) do %> <% 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> <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 %> <% end %>
</select> </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 %> <% end %>
</div> </div>
<% end %> <% end %>

View file

@ -17,12 +17,12 @@
<option><%:cbi_addopt -- Feld --%></option> <option><%:cbi_addopt -- Feld --%></option>
<% for key, val in pairs(self.optionals[k]) do %> <% for key, val in pairs(self.optionals[k]) do %>
<option id="cbi-<%=self.config.."-"..k.."-"..val.option%>" value="<%=val.option%>"><%=val.title%></option> <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 %> <% end %>
</select> </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 %> <% end %>
<input type="submit" value="<%:add hinzufügen%>" /> <input type="submit" value="<%:add hinzufügen%>" />
</div> </div>

View file

@ -11,6 +11,8 @@ require("ffluci.http").htmlheader()
<head> <head>
<link rel="stylesheet" type="text/css" href="<%=media%>/cascade.css" /> <link rel="stylesheet" type="text/css" href="<%=media%>/cascade.css" />
<link rel="stylesheet" type="text/css" href="<%=media%>/css/<%=req.category%>_<%=req.module%>.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> <title>FFLuCI</title>
</head> </head>
<body> <body>