liquid_feedback_frontend
diff app/main/admin/index.lua @ 1448:969d6aa521d6
Changed order in admin sidebar, added whitespace between links
author | bsw |
---|---|
date | Thu Oct 18 17:13:59 2018 +0200 (2018-10-18) |
parents | 930fed8d0004 |
children | f27790f617c9 |
line diff
1.1 --- a/app/main/admin/index.lua Thu Oct 18 17:12:47 2018 +0200 1.2 +++ b/app/main/admin/index.lua Thu Oct 18 17:13:59 2018 +0200 1.3 @@ -92,6 +92,39 @@ 1.4 1.5 ui.container{ attr = { class = "mdl-card mdl-card__fullwidth mdl-shadow--2dp" }, content = function() 1.6 ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function() 1.7 + ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = _"Policies" } 1.8 + end } 1.9 + ui.container{ attr = { class = "mdl-card__content" }, content = function() 1.10 + ui.tag { tag = "ul", attr = { class = "ul" }, content = function() 1.11 + for i, policy in ipairs(policies) do 1.12 + ui.tag { tag = "li", content = function() 1.13 + ui.link{ 1.14 + content = policy.name, 1.15 + module = "admin", 1.16 + view = "policy_show", 1.17 + id = policy.id 1.18 + } 1.19 + end } 1.20 + end 1.21 + end } 1.22 + 1.23 + ui.link{ 1.24 + text = _"Create new policy", 1.25 + module = "admin", 1.26 + view = "policy_show" 1.27 + } 1.28 + slot.put(" ") 1.29 + ui.link{ 1.30 + text = _"Show policies not in use", 1.31 + module = "admin", 1.32 + view = "policy_list", 1.33 + params = { show_not_in_use = true } 1.34 + } 1.35 + end } 1.36 + end } 1.37 + 1.38 + ui.container{ attr = { class = "mdl-card mdl-card__fullwidth mdl-shadow--2dp" }, content = function() 1.39 + ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function() 1.40 ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = _"Newsletter" } 1.41 end } 1.42 ui.container{ attr = { class = "mdl-card__content" }, content = function() 1.43 @@ -100,6 +133,7 @@ 1.44 module = "admin", 1.45 view = "newsletter_edit" 1.46 } 1.47 + slot.put(" ") 1.48 ui.link{ 1.49 text = _"Manage newsletters", 1.50 module = "admin", 1.51 @@ -128,38 +162,6 @@ 1.52 end } 1.53 end } 1.54 1.55 - ui.container{ attr = { class = "mdl-card mdl-card__fullwidth mdl-shadow--2dp" }, content = function() 1.56 - ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function() 1.57 - ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = _"Policies" } 1.58 - end } 1.59 - ui.container{ attr = { class = "mdl-card__content" }, content = function() 1.60 - ui.tag { tag = "ul", attr = { class = "ul" }, content = function() 1.61 - for i, policy in ipairs(policies) do 1.62 - ui.tag { tag = "li", content = function() 1.63 - ui.link{ 1.64 - content = policy.name, 1.65 - module = "admin", 1.66 - view = "policy_show", 1.67 - id = policy.id 1.68 - } 1.69 - end } 1.70 - end 1.71 - end } 1.72 - 1.73 - ui.link{ 1.74 - text = _"Create new policy", 1.75 - module = "admin", 1.76 - view = "policy_show" 1.77 - } 1.78 - 1.79 - ui.link{ 1.80 - text = _"Show policies not in use", 1.81 - module = "admin", 1.82 - view = "policy_list", 1.83 - params = { show_not_in_use = true } 1.84 - } 1.85 - end } 1.86 - end } 1.87 end } 1.88 end } 1.89