libs/web: remove inline styles for interface badges
[project/luci.git] / libs / web / luasrc / view / cbi / simpleform.htm
index 36537ec..f7c9f33 100644 (file)
@@ -1,5 +1,5 @@
 <% if not self.embedded then %>
-<form method="post" action="<%=REQUEST_URI%>">
+<form method="post" enctype="multipart/form-data" action="<%=REQUEST_URI%>">
        <div>
                <script type="text/javascript" src="<%=resource%>/cbi.js"></script>
                <input type="hidden" name="cbi.submit" value="1" />
@@ -16,7 +16,7 @@
 <%- end %>
 <%- if self.errmessage then %>
        <div class="error"><%=self.errmessage%></div>
-<%- end %>     
+<%- end %>
 <% if not self.embedded then %>
        <div>
 <%-
                end
        end
 %>
+<% if redirect then %>
+       <div style="float:left">
+               <input class="cbi-button cbi-button-link" type="button" value="<%:Back to Overview%>" onclick="location.href='<%=pcdata(redirect)%>'" />
+       </div>
+<% end %>
 <%- if self.flow and self.flow.skip then %>
        <input class="cbi-button cbi-button-skip" type="submit" name="cbi.skip" value="<%:Skip%>" />
 <% end %>