footer.htm 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <%
  2. local display_back = (redirect and not flow.hidebackbtn)
  3. local display_skip = (flow.skip)
  4. local display_apply = (not autoapply and not flow.hideapplybtn)
  5. local display_save = (not flow.hidesavebtn)
  6. local display_reset = (not flow.hideresetbtn)
  7. if pageaction and
  8. (display_back or display_skip or display_apply or display_save or display_reset)
  9. then
  10. %><div class="cbi-page-actions"><%
  11. if display_back then
  12. %><input class="btn cbi-button cbi-button-link" type="button" value="<%:Back to Overview%>" onclick="location.href='<%=pcdata(redirect)%>'" /> <%
  13. end
  14. if display_skip then
  15. %><input class="btn cbi-button cbi-button-skip" type="button" value="<%:Skip%>" onclick="cbi_submit(this, 'cbi.skip')" /> <%
  16. end
  17. if display_apply then
  18. %><input class="btn cbi-button cbi-button-apply" type="button" value="<%:Save & Apply%>" onclick="cbi_submit(this, 'cbi.apply')"<%=ifattr(not writable, "disabled")%> /> <%
  19. end
  20. if display_save then
  21. %><input class="btn cbi-button cbi-button-save" type="submit" value="<%:Save%>"<%=ifattr(not writable, "disabled")%> /> <%
  22. end
  23. if display_reset then
  24. %><input class="btn cbi-button cbi-button-reset" type="button" value="<%:Reset%>" onclick="location.href='<%=REQUEST_URI%>'"<%=ifattr(not writable, "disabled")%> /> <%
  25. end
  26. %></div><%
  27. end
  28. %>
  29. </form>
  30. <script>cbi_init();</script>
  31. <%+footer%>