Merge pageactions
[project/luci.git] / libs / cbi / luasrc / view / cbi / footer.htm
index 7e9056a..4f94a05 100644 (file)
@@ -12,10 +12,15 @@ You may obtain a copy of the License at
 $Id$
 
 -%>
-                       <div>
-                               <input type="submit" value="<%:save%>" />
-                               <input type="reset" value="<%:reset%>" />
-                               <script type="text/javascript">cbi_d_init();</script>
-                       </div>
-               </form>
-<%+footer%>
\ No newline at end of file
+       <%- if pageaction then -%>
+       <div class="cbi-page-actions">
+               <% if not autoapply then%>
+                       <input class="cbi-button cbi-button-apply" type="submit" name="cbi.apply" value="<%:saveapply%>" />
+               <% end %>
+               <input class="cbi-button cbi-button-save" type="submit" value="<%:save%>" />
+               <input class="cbi-button cbi-button-reset" type="reset" value="<%:reset%>" />
+               <script type="text/javascript">cbi_d_update();</script>
+       </div>
+       <%- end -%>
+</form>
+<%+footer%>