annotate app/main/member/settings_name.lua @ 1067:9ed6e0389854
Set max-height instead of height for folded suggestions
 | author | 
 bsw | 
 | date | 
 Wed Jul 16 22:05:42 2014 +0200 (2014-07-16) | 
 | parents | 
 701a5cf6b067  | 
 | children | 
 32cc544d5a5b  | 
 
 | rev | 
   line source | 
| 
bsw@1045
 | 
     1 ui.titleMember(_"Screen name")
 | 
| 
bsw@75
 | 
     2 
 | 
| 
bsw@1045
 | 
     3 execute.view {
 | 
| 
bsw@1045
 | 
     4   module = "member", view = "_sidebar_whatcanido", params = {
 | 
| 
bsw@1045
 | 
     5     member = app.session.member
 | 
| 
bsw@1045
 | 
     6   }
 | 
| 
bsw@1045
 | 
     7 }
 | 
| 
bsw@75
 | 
     8 
 | 
| 
bsw@75
 | 
     9 ui.form{
 | 
| 
bsw@1045
 | 
    10   attr = { class = "wide" },
 | 
| 
bsw@75
 | 
    11   module = "member",
 | 
| 
bsw@75
 | 
    12   action = "update_name",
 | 
| 
bsw@75
 | 
    13   routing = {
 | 
| 
bsw@75
 | 
    14     ok = {
 | 
| 
bsw@75
 | 
    15       mode = "redirect",
 | 
| 
bsw@1045
 | 
    16       module = "member",
 | 
| 
bsw@1045
 | 
    17       view = "show",
 | 
| 
bsw@1045
 | 
    18       id = app.session.member_id
 | 
| 
bsw@75
 | 
    19     }
 | 
| 
bsw@75
 | 
    20   },
 | 
| 
bsw@75
 | 
    21   content = function()
 | 
| 
bsw@1045
 | 
    22     ui.section( function()
 | 
| 
bsw@1045
 | 
    23       ui.sectionHead( function()
 | 
| 
bsw@1045
 | 
    24         ui.heading { level = 1, content = _"Screen name" }
 | 
| 
bsw@1045
 | 
    25       end )
 | 
| 
bsw@1045
 | 
    26 
 | 
| 
bsw@1045
 | 
    27       ui.sectionRow( function()
 | 
| 
bsw@1045
 | 
    28         ui.heading { level = 2, content = _"Enter a new screen name:" }
 | 
| 
bsw@1045
 | 
    29         ui.field.text{ name = "name", value = app.session.member.name }
 | 
| 
bsw@1045
 | 
    30         
 | 
| 
bsw@1045
 | 
    31         slot.put("<br />")
 | 
| 
bsw@1045
 | 
    32         
 | 
| 
bsw@1045
 | 
    33         ui.tag{
 | 
| 
bsw@1045
 | 
    34           tag = "input",
 | 
| 
bsw@1045
 | 
    35           attr = {
 | 
| 
bsw@1045
 | 
    36             type = "submit",
 | 
| 
bsw@1045
 | 
    37             class = "btn btn-default",
 | 
| 
bsw@1045
 | 
    38             value = _"Save"
 | 
| 
bsw@1045
 | 
    39           },
 | 
| 
bsw@1045
 | 
    40           content = ""
 | 
| 
bsw@1045
 | 
    41         }
 | 
| 
bsw@1045
 | 
    42         slot.put("<br /><br /><br />")
 | 
| 
bsw@1045
 | 
    43         ui.link {
 | 
| 
bsw@1045
 | 
    44           module = "member", view = "show", id = app.session.member_id, 
 | 
| 
bsw@1045
 | 
    45           content = _"Cancel"
 | 
| 
bsw@1045
 | 
    46         }
 | 
| 
bsw@1045
 | 
    47       end )
 | 
| 
bsw@1045
 | 
    48     end )
 | 
| 
bsw@75
 | 
    49   end
 | 
| 
bsw@75
 | 
    50 }
 |