# HG changeset patch # User bsw # Date 1539860935 -7200 # Node ID 0e979f5360cee3d1c1d18665e39dedcc91a62e62 # Parent ef6d09c45f4bb73af738487f5e1442367d1515d6 Sort unit names, fixed element floating diff -r ef6d09c45f4b -r 0e979f5360ce app/main/registration_admin/verification.lua --- a/app/main/registration_admin/verification.lua Thu Oct 18 13:05:03 2018 +0200 +++ b/app/main/registration_admin/verification.lua Thu Oct 18 13:08:55 2018 +0200 @@ -68,6 +68,7 @@ elseif field.name == "unit" then local units_selector = Unit:new_selector() :add_where{ "active" } + :add_order_by("name") if field.where then units_selector:add_where(field.where) end @@ -82,6 +83,7 @@ table.insert(units, unit) end ui.field.select{ + container_attr = { style = "display: inline-block;" }, label = field.label, foreign_records = units, foreign_id = "id",