* luci/libs/cbi: fix html errors in cbi templates

This commit is contained in:
Jo-Philipp Wich 2008-09-08 00:34:27 +00:00
parent 19c79a30b9
commit eff278317e
2 changed files with 14 additions and 19 deletions

View file

@ -39,7 +39,6 @@ $Id$
<%- end -%>', '<%:cbi_manual%>'); <%- end -%>', '<%:cbi_manual%>');
</script> </script>
<% end -%> <% end -%>
<br />
<% if i <= #vals then %><br /> <% if i <= #vals then %><br />
<% end end %> <% end end %>
<%+cbi/valuefooter%> <%+cbi/valuefooter%>

View file

@ -106,24 +106,20 @@ end
</div> </div>
<% end %> <% end %>
<%- if self.addremove then -%> <%- if self.addremove then -%>
<div class="cbi-section-table-row"> <div class="cbi-section-create">
<td colspan="<%=count%>" class="cbi-section-table-optionals"> <% if self.anonymous then %>
<div class="cbi-section-create"> <input class="cbi-button cbi-button-add" type="submit" value="<%:cbi_add%>" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" title="<%:cbi_add%>" />
<% if self.anonymous then %> <% else %>
<input class="cbi-button cbi-button-add" type="submit" value="<%:cbi_add%>" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" title="<%:cbi_add%>" /> <% if self.invalid_cts then -%><div class="cbi-section-error"><% end %>
<% else %> <input type="text" class="cbi-section-create-name" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" />
<% if self.invalid_cts then -%><div class="cbi-section-error"><% end %> <input class="cbi-button cbi-button-add" type="submit" value="<%:cbi_add%>" title="<%:cbi_add%>" />
<input type="text" class="cbi-section-create-name" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" /> <% if self.invalid_cts then -%>
<input class="cbi-button cbi-button-add" type="submit" value="<%:cbi_add%>" title="<%:cbi_add%>" /> <br /><%:cbi_invalid%></div>
<% if self.invalid_cts then -%> <%- end %>
<br /><%:cbi_invalid%></div> <% end %>
<%- end %> </div>
<% end %> <%- end -%>
</div>
</td>
</div>
<%- end -%>
</div> </div>
</fieldset> </fieldset>
<!-- /tblsection --> <!-- /tblsection -->