diff options
author | Ted Trask <ttrask01@yahoo.com> | 2010-10-15 14:37:13 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2010-10-15 14:37:13 +0000 |
commit | 75b5783007e0a189f5207feee70dfb7ba86770ab (patch) | |
tree | d69da9980a34b9949cf171c275e1026efd2df220 | |
parent | b854f1cb6e1f3c6bc8e07047ce533aed76115779 (diff) | |
download | acf-freeswitch-vmail-75b5783007e0a189f5207feee70dfb7ba86770ab.tar.bz2 acf-freeswitch-vmail-75b5783007e0a189f5207feee70dfb7ba86770ab.tar.xz |
Minor changes to editusersettings view
-rw-r--r-- | vmail-editusersettings-html.lsp | 9 |
1 files 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") <H1>Settings for <%= html.html_escape(form.value.firstname.value).." "..html.html_escape(form.value.lastname.value) %> (<%= html.html_escape(form.value.username.value) %>)</H1> <% - 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) %> |