liquid_feedback_frontend
diff env/ui/field/negative_votes.lua @ 0:3bfb2fcf7ab9
Version alpha1
author | bsw/jbe |
---|---|
date | Wed Nov 18 12:00:00 2009 +0100 (2009-11-18) |
parents | |
children | a6caaff47205 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/env/ui/field/negative_votes.lua Wed Nov 18 12:00:00 2009 +0100 1.3 @@ -0,0 +1,19 @@ 1.4 +function ui.field.negative_votes(args) 1.5 + ui.form_element(args, {fetch_value = true}, function(args) 1.6 + local value = args.value 1.7 + ui.container{ 1.8 + attr = { class = "negative_votes" }, 1.9 + content = function() 1.10 + ui.tag{ 1.11 + attr = { class = "value" }, 1.12 + content = function() 1.13 + slot.put(tostring(value) .. ' ') 1.14 + ui.image{ 1.15 + static = "icons/16/delete.png" 1.16 + } 1.17 + end 1.18 + } 1.19 + end 1.20 + } 1.21 + end) 1.22 +end