libs/web: use new button classes for tblsection template

This commit is contained in:
Jo-Philipp Wich 2012-02-15 15:13:27 +00:00
parent 47b51b54e8
commit 13beaf8b3d

View file

@ -94,15 +94,15 @@ end
<%- if self.extedit or self.addremove then -%> <%- if self.extedit or self.addremove then -%>
<td class="cbi-section-table-cell" style="padding:3px; white-space:nowrap"> <td class="cbi-section-table-cell" style="padding:3px; white-space:nowrap">
<%- if self.extedit then -%> <%- if self.extedit then -%>
<input class="cbi-button cbi-button-add" type="button" value="<%:Edit%>" <input class="cbi-button cbi-button-edit" type="button" value="<%:Edit%>"
<%- if type(self.extedit) == "string" then <%- if type(self.extedit) == "string" then
%> onclick="window.location='<%=self.extedit:format(section)%>'" %> onclick="window.location='<%=self.extedit:format(section)%>'"
<%- elseif type(self.extedit) == "function" then <%- elseif type(self.extedit) == "function" then
%> onclick="window.location='<%=self:extedit(section)%>'" %> onclick="window.location='<%=self:extedit(section)%>'"
<%- end <%- end
%> alt="<%:Edit%>" title="<%:Edit%>" style="text-align: center;background-image:url(<%=resource%>/cbi/edit.gif)" /> %> alt="<%:Edit%>" title="<%:Edit%>" />
<%- end; if self.addremove then %> <%- end; if self.addremove then %>
<input class="cbi-button cbi-button-add" type="button" value="<%:Delete%>" onclick="this.form.cbi_state='del-section'; return true" name="cbi.rts.<%=self.config%>.<%=k%>" alt="<%:Delete%>" title="<%:Delete%>" style="text-align: center;background-image:url(<%=resource%>/cbi/remove.gif)" /> <input class="cbi-button cbi-button-remove" type="button" value="<%:Delete%>" onclick="this.form.cbi_state='del-section'; return true" name="cbi.rts.<%=self.config%>.<%=k%>" alt="<%:Delete%>" title="<%:Delete%>" />
<%- end -%> <%- end -%>
</td> </td>
<%- end -%> <%- end -%>