From 75b5783007e0a189f5207feee70dfb7ba86770ab Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 15 Oct 2010 14:37:13 +0000 Subject: Minor changes to editusersettings view --- vmail-editusersettings-html.lsp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/vmail-editusersettings-html.lsp b/vmail-editusersettings-html.lsp index e5f630c..b573892 100644 --- a/vmail-editusersettings-html.lsp +++ b/vmail-editusersettings-html.lsp @@ -4,12 +4,11 @@ require("viewfunctions")

Settings for <%= html.html_escape(form.value.firstname.value).." "..html.html_escape(form.value.lastname.value) %> (<%= html.html_escape(form.value.username.value) %>)

<% - form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action - if page_info.action ~= "createuser" then + if page_info.action ~= "createuser" and form.value.username then form.value.username.readonly = true end - form.value["vm-password"].type = "password" - form.value["vm-password-confirm"].type = "password" + if form.value["vm-password"] then form.value["vm-password"].type = "password" end + if form.value["vm-password-confirm"] then form.value["vm-password-confirm"].type = "password" end local order = {"username", "firstname", "lastname", "vm-password", "vm-password-confirm", "vm-mailto", "vm-email-all-messages", "vm-attach-file", "vm-keep-local-after-email", "vm-notify-mailto", "vm-notify-email-all-messages"} - displayform(form, order) + displayform(form, order, nil, page_info) %> -- cgit v1.2.3