annotate app/main/index/confirm_notify_email.lua @ 1859:02c34183b6df
Fixed wrong filename in INSTALL file
 | author | 
 bsw | 
 | date | 
 Tue Nov 28 18:54:51 2023 +0100 (23 months ago) | 
 | parents | 
 61ed6a12c6b8  | 
 | children | 
  | 
 
 | rev | 
   line source | 
| 
bsw@1233
 | 
     1 ui.title(_"Email address confirmation")
 | 
| 
bsw@1233
 | 
     2 
 | 
| 
bsw@1680
 | 
     3 ui.grid{ content = function()
 | 
| 
bsw@1680
 | 
     4   ui.cell_full{ content = function()
 | 
| 
bsw@1680
 | 
     5     ui.container { attr = { class = "mdl-card mdl-shadow--2dp mdl-card__fullwidth" }, content = function()
 | 
| 
bsw@1680
 | 
     6       ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function()
 | 
| 
bsw@1680
 | 
     7         ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = _"Email address confirmation" }
 | 
| 
bsw@1680
 | 
     8       end }
 | 
| 
bsw@1680
 | 
     9       ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function()
 | 
| 
bsw@1680
 | 
    10         ui.form{
 | 
| 
bsw@1680
 | 
    11           attr = { class = "vertical" },
 | 
| 
bsw@1233
 | 
    12           module = "index",
 | 
| 
bsw@1680
 | 
    13           action = "confirm_notify_email",
 | 
| 
bsw@1680
 | 
    14           routing = {
 | 
| 
bsw@1680
 | 
    15             ok = {
 | 
| 
bsw@1680
 | 
    16               mode = "redirect",
 | 
| 
bsw@1680
 | 
    17               module = "index",
 | 
| 
bsw@1680
 | 
    18               view = "index"
 | 
| 
bsw@1680
 | 
    19             }
 | 
| 
bsw@1680
 | 
    20           },
 | 
| 
bsw@1680
 | 
    21           content = function()
 | 
| 
bsw@1680
 | 
    22             local secret = param.get("secret")
 | 
| 
bsw@1680
 | 
    23             if secret then
 | 
| 
bsw@1680
 | 
    24               ui.field.hidden{
 | 
| 
bsw@1680
 | 
    25                 name = "secret",
 | 
| 
bsw@1680
 | 
    26                 value = secret
 | 
| 
bsw@1680
 | 
    27               }
 | 
| 
bsw@1680
 | 
    28             else
 | 
| 
bsw@1680
 | 
    29               ui.field.text{
 | 
| 
bsw@1680
 | 
    30                 label = _"Confirmation code",
 | 
| 
bsw@1680
 | 
    31                 name = "secret"
 | 
| 
bsw@1680
 | 
    32               }
 | 
| 
bsw@1680
 | 
    33             end
 | 
| 
bsw@1680
 | 
    34             ui.tag{
 | 
| 
bsw@1680
 | 
    35               tag = "input",
 | 
| 
bsw@1680
 | 
    36               attr = {
 | 
| 
bsw@1680
 | 
    37                 type = "submit",
 | 
| 
bsw@1680
 | 
    38                 class = "mdl-button mdl-js-button mdl-button--raised mdl-button--colored",
 | 
| 
bsw@1680
 | 
    39                 value = _'Confirm'
 | 
| 
bsw@1680
 | 
    40               }
 | 
| 
bsw@1680
 | 
    41             }
 | 
| 
bsw@1680
 | 
    42           end
 | 
| 
bsw@1233
 | 
    43         }
 | 
| 
bsw@1233
 | 
    44 
 | 
| 
bsw@1680
 | 
    45       end }
 | 
| 
bsw@1680
 | 
    46     end }
 | 
| 
bsw@1681
 | 
    47   end }
 | 
| 
bsw@1681
 | 
    48 end }
 |