示例#1
0
def admin_html():
	html = html_template_start('/admin', c.read_app_config_value('title'), c.read_config_value('firmware_version'), main_menu('/admin'))
	html += '<form action="/admin_submit" method="post" onsubmit="select_all_options(\'languages\');">' + c.CR
	html += display_fieldsets(data.ADMIN_FIELDSETS)
	html += '<input type="submit" value="' + _('Save') + '" name="submit"/>' + c.CR
	html += '<input type="reset" value="' + _('Cancel changes') + '" name="cancel" style="margin-top:10px;"/>' + c.CR
	html += '</form>' + c.CR
	html += html_template_end()
	return html
示例#2
0
def configure_html():
	html = html_template_start('/configure', c.read_app_config_value('title'), c.read_config_value('firmware_version'), main_menu('/configure'), c.read_config_value('connection_type'))
	html += '<form action="/configure_submit" method="post" enctype="multipart/form-data">' + c.CR
	html += display_fieldsets(data.CONFIG_FIELDSETS)
	html += '<input type="submit" value="' + _('Save configuration') + '" name="submit"/>' + c.CR
	html += '<input type="reset" value="' + _('Cancel all changes') + '" name="cancel" style="margin-top:10px;"/>' + c.CR
	html += '</form>' + c.CR
	html += html_template_end()
	return html