summaryrefslogtreecommitdiffstats
path: root/fetchmail-editentry-html.lsp
blob: 31066fb6ee0bbda1ee0cc5adb210324a95fb061e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<% local form, viewlibrary, page_info = ... 
require("viewfunctions")
%>

<H1><%= html.html_escape(form.label) %></H1>
<%
	form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action
	if page_info.action == "editentry" then
		form.value.remotehost.readonly = true
		form.value.method.type = "text"
		form.value.method.readonly = true
		form.value.remotemailbox.readonly = true
		form.value.localdomain.readonly = true
	end
	local order = { "remotehost", "enabled", "method", "remotemailbox", "remotepassword", "ssl", "localhost", "localmailbox", "localdomain", "envelope" }
	displayform(form, order)
%>