liquid_feedback_frontend

annotate app/main/admin/policy_show.lua @ 907:319161d5a904

Some text phrases updated
author bsw
date Sun Sep 23 16:36:44 2012 +0200 (2012-09-23)
parents 54e32e34be01
children 701a5cf6b067
rev   line source
bsw@194 1 local policy = Policy:by_id(param.get_id()) or Policy:new()
bsw@194 2
bsw@603 3 ui.title(_"Create / edit policy")
bsw@194 4
bsw@194 5 ui.form{
bsw@194 6 attr = { class = "vertical" },
bsw@194 7 record = policy,
bsw@194 8 module = "admin",
bsw@194 9 action = "policy_update",
bsw@194 10 routing = {
bsw@194 11 default = {
bsw@194 12 mode = "redirect",
bsw@194 13 module = "admin",
bsw@194 14 view = "policy_list"
bsw@194 15 }
bsw@194 16 },
bsw@194 17 id = policy.id,
bsw@194 18 content = function()
bsw@194 19
bsw@194 20 ui.field.text{ label = _"Index", name = "index" }
bsw@194 21
bsw@194 22 ui.field.text{ label = _"Name", name = "name" }
bsw@194 23 ui.field.text{ label = _"Description", name = "description", multiline = true }
bsw@194 24 ui.field.text{ label = _"Hint", readonly = true,
bsw@194 25 value = _"Interval format:" .. " 3 mons 2 weeks 1 day 10:30:15" }
bsw@194 26
bsw@194 27 ui.field.text{ label = _"Admission time", name = "admission_time" }
bsw@194 28 ui.field.text{ label = _"Discussion time", name = "discussion_time" }
bsw@194 29 ui.field.text{ label = _"Verification time", name = "verification_time" }
bsw@194 30 ui.field.text{ label = _"Voting time", name = "voting_time" }
bsw@194 31
bsw@194 32 ui.field.text{ label = _"Issue quorum numerator", name = "issue_quorum_num" }
bsw@194 33 ui.field.text{ label = _"Issue quorum denumerator", name = "issue_quorum_den" }
bsw@194 34
bsw@194 35 ui.field.text{ label = _"Initiative quorum numerator", name = "initiative_quorum_num" }
bsw@194 36 ui.field.text{ label = _"Initiative quorum denumerator", name = "initiative_quorum_den" }
bsw@194 37
bsw@282 38 ui.field.text{ label = _"Direct majority numerator", name = "direct_majority_num" }
bsw@282 39 ui.field.text{ label = _"Direct majority denumerator", name = "direct_majority_den" }
bsw@282 40 ui.field.boolean{ label = _"Strict direct majority", name = "direct_majority_strict" }
bsw@282 41 ui.field.text{ label = _"Direct majority positive", name = "direct_majority_positive" }
bsw@282 42 ui.field.text{ label = _"Direct majority non negative", name = "direct_majority_non_negative" }
bsw@194 43
bsw@282 44 ui.field.text{ label = _"Indirect majority numerator", name = "indirect_majority_num" }
bsw@282 45 ui.field.text{ label = _"Indirect majority denumerator", name = "indirect_majority_den" }
bsw@282 46 ui.field.boolean{ label = _"Strict indirect majority", name = "indirect_majority_strict" }
bsw@282 47 ui.field.text{ label = _"Indirect majority positive", name = "indirect_majority_positive" }
bsw@282 48 ui.field.text{ label = _"Indirect majority non negative", name = "indirect_majority_non_negative" }
bsw@282 49
bsw@282 50 ui.field.boolean{ label = _"No reverse beat path", name = "no_reverse_beat_path" }
bsw@282 51 ui.field.boolean{ label = _"No multistage majority", name = "no_multistage_majority" }
bsw@907 52 ui.field.boolean{ label = _"Polling mode", name = "polling" }
bsw@282 53
bsw@194 54
bsw@194 55 ui.field.boolean{ label = _"Active?", name = "active" }
bsw@194 56
bsw@194 57 ui.submit{ text = _"Save" }
bsw@194 58 end
bsw@194 59 }

Impressum / About Us