Skip to content
Snippets Groups Projects
Commit cfdcaeb1 authored by dg's avatar dg
Browse files

Aligned field in registration form

git-svn-id: http://svn.net-core.org/repos/t-engine4@6318 51575b47-30f0-44d4-a5cc-537603b46e54
parent 43067de5
No related branches found
No related tags found
No related merge requests found
......@@ -59,10 +59,11 @@ function _M:init(dialogdef, profile_help_text)
}
self:setFocus(self.c_login)
else
self.c_login = Textbox.new{title="Username: ", text="", chars=30, max_len=20, filter=login_filter, fct=function(text) self:okclick() end}
self.c_pass = Textbox.new{title="Password: ", text="", chars=30, max_len=20, hide=true, filter=pass_filter, fct=function(text) self:okclick() end}
self.c_pass2 = Textbox.new{title="Password again: ", text="", chars=30, max_len=20, hide=true, filter=pass_filter, fct=function(text) self:okclick() end}
self.c_email = Textbox.new{title="Email: ", text="", chars=30, max_len=60, filter=pass_filter, fct=function(text) self:okclick() end}
local pwa = "Password again: "
self.c_login = Textbox.new{title="Username: ", size_title=pwa, text="", chars=30, max_len=20, filter=login_filter, fct=function(text) self:okclick() end}
self.c_pass = Textbox.new{title="Password: ", size_title=pwa, text="", chars=30, max_len=20, hide=true, filter=pass_filter, fct=function(text) self:okclick() end}
self.c_pass2 = Textbox.new{title=pwa, text="", size_title=pwa, chars=30, max_len=20, hide=true, filter=pass_filter, fct=function(text) self:okclick() end}
self.c_email = Textbox.new{title="Email: ", size_title=pwa, text="", chars=30, max_len=60, filter=pass_filter, fct=function(text) self:okclick() end}
local ok = require("engine.ui.Button").new{text="Create", fct=function() self:okclick() end}
local cancel = require("engine.ui.Button").new{text="Cancel", fct=function() self:cancelclick() end}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment