liquid_feedback_frontend
diff app/main/member/settings_notification.lua @ 1255:1d645a8d20fc
Updates to notification system user config
| author | bsw |
|---|---|
| date | Sun Apr 17 16:47:05 2016 +0200 (2016-04-17) |
| parents | 84f6e17c7ceb |
| children | 0455f101565c |
line diff
1.1 --- a/app/main/member/settings_notification.lua Sun Apr 17 16:14:21 2016 +0200 1.2 +++ b/app/main/member/settings_notification.lua Sun Apr 17 16:47:05 2016 +0200 1.3 @@ -48,7 +48,75 @@ 1.4 end } 1.5 1.6 slot.put("<br />") 1.7 + 1.8 + ui.container{ content = function() 1.9 + ui.tag{ 1.10 + tag = "input", 1.11 + attr = { 1.12 + id = "digest_on", 1.13 + type = "radio", name = "digest", value = "true", 1.14 + checked = not app.session.member.digest_dow and "checked" or nil 1.15 + } 1.16 + } 1.17 + ui.tag{ 1.18 + tag = "label", attr = { ['for'] = "digest_on" }, 1.19 + content = _"Send me updates on issue phase changes and a regular digest" 1.20 + } 1.21 + 1.22 + ui.tag{ content = _"Day:" } 1.23 + slot.put(" ") 1.24 + ui.field.select{ 1.25 + name = "notification_dow", 1.26 + foreign_records = { 1.27 + "daily" = _"daily", 1.28 + 0 = _"Sunday", 1.29 + 1 = _"Monday", 1.30 + 2 = _"Tuesday", 1.31 + 3 = _"Wednesday", 1.32 + 4 = _"Thursday", 1.33 + 5 = _"Friday", 1.34 + 6 = _"Saturday", 1.35 + 7 = _"Sunday", 1.36 + } 1.37 + } 1.38 + 1.39 + slot.put(" ") 1.40 1.41 + ui.tag{ content = _"Hour:" } 1.42 + slot.put(" ") 1.43 + local foreign_records = {} 1.44 + for i = 0, 23 do 1.45 + foreign_records[#foreign_records+1] = { 1.46 + id = i, 1.47 + name = printf("%02d", i), 1.48 + } 1.49 + end 1.50 + ui.field.select{ 1.51 + name = "notification_hour", 1.52 + foreign_records = foreign_records, 1.53 + foreign_id = "id", 1.54 + foreign_name = "name" 1.55 + } 1.56 + end } 1.57 + end } 1.58 + 1.59 + ui.container{ content = function() 1.60 + ui.tag{ 1.61 + tag = "input", 1.62 + attr = { 1.63 + id = "digest_off", 1.64 + type = "radio", name = "digest", value = "false", 1.65 + checked = not app.session.member.digest_dow and "checked" or nil 1.66 + } 1.67 + } 1.68 + ui.tag{ 1.69 + tag = "label", attr = { ['for'] = "digest_off" }, 1.70 + content = _"Send me only updates on issue phase changes" 1.71 + } 1.72 + end } 1.73 + 1.74 + 1.75 + 1.76 ui.container{ content = function() 1.77 ui.tag{ 1.78 tag = "input",