liquid_feedback_frontend
view app/main/member/edit_images.lua @ 1280:deb01dfd4429
Fixed dropdown width
| author | bsw | 
|---|---|
| date | Mon Apr 18 07:00:12 2016 +0200 (2016-04-18) | 
| parents | d70610e37245 | 
| children | 32cc544d5a5b | 
 line source
     1 ui.titleMember(_"avatar/photo")
     3 execute.view {
     4   module = "member", view = "_sidebar_whatcanido", params = {
     5     member = app.session.member
     6   }
     7 }
     9 ui.form{
    10   record = app.session.member,
    11   attr = { 
    12     class = "vertical section",
    13     enctype = 'multipart/form-data'
    14   },
    15   module = "member",
    16   action = "update_images",
    17   routing = {
    18     ok = {
    19       mode = "redirect",
    20       module = "member",
    21       view = "show",
    22       id = app.session.member_id
    23     }
    24   },
    25   content = function()
    26     ui.sectionHead( function()
    27       ui.heading { level = 1, content = _"Upload avatar/photo" }
    28     end )
    29     ui.sectionRow( function()
    30       execute.view{
    31         module = "member_image",
    32         view = "_show",
    33         params = {
    34           class = "right",
    35           member = app.session.member, 
    36           image_type = "avatar",
    37           force_update = true
    38         }
    39       }
    40       ui.heading { level = 2, content = _"Avatar"}
    41       ui.container { content = _"Your avatar is a small photo, which will be shown always next to your name." }
    42       slot.put("<br />")
    43       ui.field.image{ field_name = "avatar" }
    44       slot.put("<br /><br />")
    45       execute.view{
    46         module = "member_image",
    47         view = "_show",
    48         params = {
    49           class = "right",
    50           member = app.session.member, 
    51           image_type = "photo",
    52           force_update = true
    53         }
    54       }
    55       ui.heading { level = 2, content = _"Photo"}
    56       ui.container { content = _"Your photo will be shown in your profile." }
    57       slot.put("<br />")
    58       ui.field.image{ field_name = "photo" }
    59       slot.put("<br style='clear: right;' />")
    60       ui.tag{
    61         tag = "input",
    62         attr = {
    63           type = "submit",
    64           class = "btn btn-default",
    65           value = _"publish avatar/photo"
    66         },
    67         content = ""
    68       }
    69       slot.put("<br /><br /><br />")
    70       ui.link{
    71         content = _"cancel",
    72         module = "member", view = "show", id = app.session.member.id
    73       }
    74     end )
    75   end
    76 }
