Merge pageactions
[project/luci.git] / libs / cbi / luasrc / view / cbi / footer.htm
index da59266..4f94a05 100644 (file)
@@ -12,12 +12,15 @@ You may obtain a copy of the License at
 $Id$
 
 -%>
-
+       <%- if pageaction then -%>
        <div class="cbi-page-actions">
-               <input class="cbi-button cbi-button-apply" type="submit" name="cbi.apply" value="<%:saveapply%>" />
+               <% 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%>