liquid_feedback_frontend

changeset 1442:0e979f5360ce

Sort unit names, fixed element floating
author bsw
date Thu Oct 18 13:08:55 2018 +0200 (2018-10-18)
parents ef6d09c45f4b
children 443e5b25f57b
files app/main/registration_admin/verification.lua
line diff
     1.1 --- a/app/main/registration_admin/verification.lua	Thu Oct 18 13:05:03 2018 +0200
     1.2 +++ b/app/main/registration_admin/verification.lua	Thu Oct 18 13:08:55 2018 +0200
     1.3 @@ -68,6 +68,7 @@
     1.4                  elseif field.name == "unit" then
     1.5                    local units_selector = Unit:new_selector()
     1.6                      :add_where{ "active" }
     1.7 +                    :add_order_by("name")
     1.8                    if field.where then
     1.9                      units_selector:add_where(field.where)
    1.10                    end
    1.11 @@ -82,6 +83,7 @@
    1.12                      table.insert(units, unit)
    1.13                    end
    1.14                    ui.field.select{
    1.15 +                    container_attr = { style = "display: inline-block;" },
    1.16                      label = field.label,
    1.17                      foreign_records = units,
    1.18                      foreign_id = "id",

Impressum / About Us