liquid_feedback_frontend

annotate app/main/area/_head.lua @ 1598:6b203b43bef3

Reworked unit and area head and delegation buttons
author bsw
date Sun Jan 31 22:04:30 2021 +0100 (2021-01-31)
parents c061fea7ed10
children a3a7120a67be
rev   line source
bsw@525 1 local area = param.get("area", "table")
bsw@774 2 local member = param.get("member", "table")
bsw@525 3
bsw@1045 4 ui.title ( function ()
bsw@529 5
bsw@1045 6 -- unit link
bsw@1045 7 ui.link {
bsw@1045 8 attr = { class = "unit" },
bsw@1045 9 content = function()
bsw@1045 10 ui.tag{ attr = { class = "name" }, content = area.unit.name }
bsw@1045 11 end,
bsw@1594 12 module = "index", view = "index",
bsw@1594 13 unit = area.unit_id
bsw@1045 14 }
bsw@529 15
bsw@1045 16 ui.tag { attr = { class = "spacer" }, content = function()
bsw@1045 17 slot.put ( " ยป " )
bsw@1045 18 end }
bsw@525 19
bsw@1045 20 ui.tag { attr = { class = "area" }, content = function()
bsw@1045 21 -- area link
bsw@1045 22 ui.link {
bsw@1045 23 content = function()
bsw@1045 24 ui.tag{ attr = { class = "name" }, content = area.name }
bsw@1045 25 end,
bsw@1594 26 module = "index", view = "index",
bsw@1594 27 params = { unit = area.unit_id, area = area.id }
bsw@1045 28 }
bsw@1045 29
bsw@1045 30 slot.put ( " " )
bsw@525 31
bsw@1045 32 execute.view {
bsw@1045 33 module = "delegation", view = "_info", params = {
bsw@1045 34 area = area, member = member, for_title = true
bsw@1045 35 }
bsw@526 36 }
bsw@526 37 end }
bsw@526 38
bsw/jbe@1309 39 end )

Impressum / About Us