bsw@1045: ui.title(_"Recover login name") bsw@1045: bsw@1045: ui.section( function() bsw@989: bsw@1045: ui.sectionHead( function() bsw@1045: ui.heading{ level = 1, content = _"Request email with login name" } bsw@1045: end ) bsw@1045: bsw@1045: ui.sectionRow( function() bsw@989: bsw@1045: ui.tag{ bsw@1045: tag = 'p', bsw@1045: content = _'Please enter your email address. You will receive an email with your login name.' bsw@1045: } bsw@1045: ui.form{ bsw@1045: attr = { class = "vertical" }, bsw@989: module = "index", bsw@1045: action = "send_login", bsw@1045: routing = { bsw@1045: ok = { bsw@1045: mode = "redirect", bsw@1045: module = "index", bsw@1045: view = "index" bsw@1045: } bsw@1045: }, bsw@1045: content = function() bsw@1045: ui.field.text{ bsw@1045: label = _"Email address", bsw@1045: name = "email" bsw@1045: } bsw@1045: bsw@1045: ui.container { attr = { class = "actions" }, content = function() bsw@1045: ui.tag{ bsw@1045: tag = "input", bsw@1045: attr = { bsw@1045: type = "submit", bsw@1045: class = "btn btn-default", bsw@1045: value = _"Request email with login name" bsw@1045: }, bsw@1045: content = "" bsw@1045: } bsw@1045: slot.put("

") bsw@1045: ui.link{ bsw@1045: content = function() bsw@1045: slot.put(_"Cancel") bsw@1045: end, bsw@1045: module = "index", bsw@1045: view = "login" bsw@1045: } bsw@1045: end } bsw@1045: end bsw@989: } bsw@1045: end ) bsw@1045: end )