modules/admin-full: use new button classes in iface overview template
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 15 Feb 2012 15:12:10 +0000 (15:12 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 15 Feb 2012 15:12:10 +0000 (15:12 +0000)
modules/admin-full/luasrc/view/admin_network/iface_overview.htm

index fc82acd7ffc3ee9e8919fa3cf7ca6c9179cd8bb9..6826d1ad30711bdc4d41196f797546632c8262c7 100644 (file)
@@ -210,7 +210,7 @@ $Id$
                        %>
                                <tr class="cbi-section-table-row cbi-rowstyle-<%=i % 2 + 1%>">
                                        <td class="cbi-value-field" style="padding:3px">
-                                               <div style="background-color:#FFFFFF; border:1px solid #CCCCCC; margin:0 10px">
+                                               <div style="background-color:#FFFFFF; border:1px solid #CCCCCC; margin:0 10px; text-align:center; white-space:nowrap">
                                                        <div style="border-bottom:1px solid #CCCCCC; padding:2px; background-color:<%=c%>" title="<%=pcdata(t)%>">
                                                                <strong><%=net:upper()%></strong>
                                                        </div>
@@ -224,10 +224,10 @@ $Id$
                                                <em><%:Collecting data...%></em>
                                        </td>
                                        <td style="width:420px">
-                                               <input type="button" class="cbi-button cbi-button-add" style="width:100px; background-image:url(<%=resource%>/cbi/reload.gif)" onclick="iface_shutdown('<%=net%>', true)" title="<%:Reconnect this interface%>" value="<%:Connect%>" />
-                                               <input type="button" class="cbi-button cbi-button-add" style="width:100px; background-image:url(<%=resource%>/cbi/reset.gif)" onclick="iface_shutdown('<%=net%>', false)" title="<%:Shutdown this interface%>" value="<%:Stop%>" />
-                                               <input type="button" class="cbi-button cbi-button-add" style="width:100px; background-image:url(<%=resource%>/cbi/edit.gif)" onclick="location.href='<%=luci.dispatcher.build_url("admin/network/network", net)%>'" title="<%:Edit this interface%>" value="<%:Edit%>" id="<%=net%>-ifc-edit" />
-                                               <input type="button" class="cbi-button cbi-button-add" style="width:100px; background-image:url(<%=resource%>/cbi/remove.gif)" onclick="if (confirm('<%:Really delete this interface? The deletion cannot be undone!\nYou might lose access to this router if you are connected via this interface.%>')) location.href='<%=luci.dispatcher.build_url("admin/network/iface_delete", net)%>'" title="<%:Delete this interface%>" value="<%:Delete%>" />
+                                               <input type="button" class="cbi-button cbi-button-reload" style="width:100px" onclick="iface_shutdown('<%=net%>', true)" title="<%:Reconnect this interface%>" value="<%:Connect%>" />
+                                               <input type="button" class="cbi-button cbi-button-reset" style="width:100px" onclick="iface_shutdown('<%=net%>', false)" title="<%:Shutdown this interface%>" value="<%:Stop%>" />
+                                               <input type="button" class="cbi-button cbi-button-edit" style="width:100px" onclick="location.href='<%=luci.dispatcher.build_url("admin/network/network", net)%>'" title="<%:Edit this interface%>" value="<%:Edit%>" id="<%=net%>-ifc-edit" />
+                                               <input type="button" class="cbi-button cbi-button-remove" style="width:100px" onclick="if (confirm('<%:Really delete this interface? The deletion cannot be undone!\nYou might lose access to this router if you are connected via this interface.%>')) location.href='<%=luci.dispatcher.build_url("admin/network/iface_delete", net)%>'" title="<%:Delete this interface%>" value="<%:Delete%>" />
                                        </td>
                                </tr>
                        <% end %>