liquid_feedback_frontend

diff app/main/initiative/_show_voting.lua @ 286:c587d8762e62

Registration process updated for Core 2.0, lockable member fields, notification settings
author bsw
date Sat Feb 25 11:51:37 2012 +0100 (2012-02-25)
parents 256d9be75916
children 8b6bc2958126
line diff
     1.1 --- a/app/main/initiative/_show_voting.lua	Fri Feb 17 15:16:02 2012 +0100
     1.2 +++ b/app/main/initiative/_show_voting.lua	Sat Feb 25 11:51:37 2012 +0100
     1.3 @@ -12,6 +12,8 @@
     1.4      params = { initiative = initiative }
     1.5    }
     1.6  
     1.7 +  slot.put("<br />")
     1.8 +  
     1.9    ui.container{
    1.10      attr = { class = "heading" },
    1.11      content = _"Member voting"
    1.12 @@ -32,4 +34,37 @@
    1.13      }
    1.14    }
    1.15  
    1.16 +  slot.put("<br />")
    1.17 +  
    1.18 +  ui.container{
    1.19 +    attr = { class = "heading" },
    1.20 +    content = _"Voting details"
    1.21 +  }
    1.22 +  
    1.23 +  ui.form{
    1.24 +    attr = { class = "vertical" },
    1.25 +    content = function()
    1.26 + 
    1.27 +    ui.field.boolean{ label = _"Direct majority", value = initiative.direct_majority }
    1.28 +    ui.field.boolean{ label = _"Indirect majority", value = initiative.indirect_majority }
    1.29 +    ui.field.text{ label = _"Schulze rank", value = tostring(initiative.schulze_rank) .. " (" .. _("Status quo: #{rank}", { rank = initiative.issue.status_quo_schulze_rank }) .. ")" }
    1.30 +    local texts = {}
    1.31 +    if initiative.reverse_beat_path then
    1.32 +      texts[#texts+1] = _"reverse beat path to status quo (including ties)"
    1.33 +    end
    1.34 +    if initiative.multistage_majority then
    1.35 +      texts[#texts+1] = _"possibly instable result caused by multistage majority"
    1.36 +    end
    1.37 +    if #texts == 0 then
    1.38 +     texts[#texts+1] = _"none"
    1.39 +    end
    1.40 +    ui.field.text{
    1.41 +      label = _"Other failures",
    1.42 +      value = table.concat(texts, ", ")
    1.43 +    }
    1.44 +    ui.field.boolean{ label = _"Eligible as winner", value = initiative.eligible }
    1.45 +  end
    1.46 +}
    1.47 +
    1.48 +
    1.49  end

Impressum / About Us