liquid_feedback_frontend
diff app/main/index/reset_password.lua @ 1309:32cc544d5a5b
Cumulative patch for upcoming frontend version 4
| author | bsw/jbe |
|---|---|
| date | Sun Jul 15 14:07:29 2018 +0200 (2018-07-15) |
| parents | 701a5cf6b067 |
| children | c007666de290 |
line diff
1.1 --- a/app/main/index/reset_password.lua Thu Jun 23 03:30:57 2016 +0200 1.2 +++ b/app/main/index/reset_password.lua Sun Jul 15 14:07:29 2018 +0200 1.3 @@ -1,15 +1,11 @@ 1.4 -execute.view{ module = "index", view = "_lang_chooser" } 1.5 1.6 ui.title(_"Reset password") 1.7 1.8 -ui.section( function() 1.9 +ui.container{ attr = { class = "mdl-grid" }, content = function() 1.10 + ui.container{ attr = { class = "mdl-cell mdl-cell--12-col" }, content = function() 1.11 + execute.view{ module = "index", view = "_lang_chooser" } 1.12 1.13 - ui.sectionHead( function() 1.14 - ui.heading{ level = 1, content = _"Reset password" } 1.15 - end ) 1.16 - 1.17 - ui.sectionRow( function() 1.18 - 1.19 + ui.heading{ level = 1, content = _"Forgot password?" } 1.20 1.21 local secret = param.get("secret") 1.22 1.23 @@ -23,39 +19,57 @@ 1.24 module = "index", 1.25 action = "reset_password", 1.26 routing = { 1.27 - ok = { 1.28 + default = { 1.29 mode = "redirect", 1.30 module = "index", 1.31 - view = "index" 1.32 + view = "login", params = { 1.33 + redirect_module = param.get("redirect_module"), 1.34 + redirect_view = param.get("redirect_view"), 1.35 + redirect_id = param.get("redirect_id"), 1.36 + redirect_params = param.get("redirect_params") 1.37 + } 1.38 } 1.39 }, 1.40 content = function() 1.41 - ui.field.text{ 1.42 - label = _"login name", 1.43 - name = "login" 1.44 + ui.field.text{ 1.45 + container_attr = { class = "mdl-textfield mdl-js-textfield mdl-textfield--floating-label" }, 1.46 + attr = { id = "lf-login__username", class = "mdl-textfield__input" }, 1.47 + label_attr = { class = "mdl-textfield__label", ["for"] = "lf-login__username" }, 1.48 + label = _'Login name', 1.49 + name = 'login', 1.50 + value = '' 1.51 } 1.52 + slot.put("<br />") 1.53 1.54 - ui.container { attr = { class = "actions" }, content = function() 1.55 - ui.tag{ 1.56 - tag = "input", 1.57 - attr = { 1.58 - type = "submit", 1.59 - class = "btn btn-default", 1.60 + slot.put("<br /><br />") 1.61 + ui.tag{ 1.62 + tag = "input", 1.63 + attr = { 1.64 + type = "submit", 1.65 + class = "mdl-button mdl-js-button mdl-button--raised mdl-button--colored", 1.66 value = _"Request password reset link" 1.67 - }, 1.68 - content = "" 1.69 + } 1.70 + } 1.71 + slot.put(" ") 1.72 + ui.link{ 1.73 + attr = { class = "mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect" }, 1.74 + module = "index", view = "login", text = _"Cancel", params = { 1.75 + redirect_module = param.get("redirect_module"), 1.76 + redirect_view = param.get("redirect_view"), 1.77 + redirect_id = param.get("redirect_id"), 1.78 + redirect_params = param.get("redirect_params") 1.79 } 1.80 - slot.put("<br /><br />") 1.81 - ui.link{ module = "index", view = "send_login", text = _"Forgot login name?" } 1.82 - slot.put(" ") 1.83 - ui.link{ 1.84 - content = function() 1.85 - slot.put(_"Cancel") 1.86 - end, 1.87 - module = "index", 1.88 - view = "login" 1.89 - } 1.90 - end } 1.91 + } 1.92 + slot.put("<br /><br />") 1.93 + ui.link{ 1.94 + attr = { class = "mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--underlined" }, 1.95 + module = "index", view = "send_login", text = _"Forgot login name?", params = { 1.96 + redirect_module = param.get("redirect_module"), 1.97 + redirect_view = param.get("redirect_view"), 1.98 + redirect_id = param.get("redirect_id"), 1.99 + redirect_params = param.get("redirect_params") 1.100 + } 1.101 + } 1.102 end 1.103 } 1.104 1.105 @@ -120,5 +134,5 @@ 1.106 } 1.107 1.108 end 1.109 - end ) 1.110 -end ) 1.111 \ No newline at end of file 1.112 + end } 1.113 +end }