html.add_user_error(e.varname, e.message) show_commands = True if show_commands: show_command_form(view, datasource, rows) jqm_page_navfooter(navbar, 'commands', page_id) elif page == "data": # Page: data rows of view jqm_page_header(title, left_button=home, right_button=("javascript:document.location.reload();", _("Reload"), "refresh"), id="data") html.write('<div id="view_results">') if len(rows) == 0: html.write(_("No hosts/services found.")) else: try: # TODO: special limit for mobile UI html.check_limit(rows, views.get_limit()) layout["render"](rows, view, group_painters, painters, num_columns, show_checkboxes and not html.do_actions()) except Exception, e: html.write(_("Error showing view: %s" % e)) html.write("</div>") jqm_page_navfooter(navbar, 'data', page_id) # Page: Context buttons #if context_links: elif page == "context": jqm_page_header(_("Context"), left_button=home, id="context") show_context_links(context_links) jqm_page_navfooter(navbar, 'context', page_id)
jqm_page_navfooter(navbar, 'commands', page_id) elif page == "data": # Page: data rows of view jqm_page_header(title, left_button=home, right_button=("javascript:document.location.reload();", _("Reload"), "refresh"), id="data") html.open_div(id_="view_results") if len(rows) == 0: html.write(_("No hosts/services found.")) else: try: # TODO: special limit for mobile UI html.check_limit(rows, views.get_limit()) layout["render"](rows, view, group_painters, painters, num_columns, show_checkboxes and not html.do_actions()) except Exception, e: html.write(_("Error showing view: %s") % e) html.close_div() jqm_page_navfooter(navbar, 'data', page_id) # Page: Context buttons #if context_links: elif page == "context": jqm_page_header(_("Context"), left_button=home, id="context") show_context_links(context_links) jqm_page_navfooter(navbar, 'context', page_id)