4 local uci = require "luci.model.uci".cursor()
5 local basicsurl = luci.dispatcher.build_url(luci.dispatcher.context.path[1], "freifunk", "basics")
6 local hostname = uci:get_first ("system", "system", "hostname")
7 local latitude = uci:get_first ("system", "system", "latitude")
8 local longitude = uci:get_first ("system", "system", "longitude")
9 local location = uci:get_first ("system", "system", "location")
14 <%:You can not use the wizard because some necessary values are missing.%>
18 local co = uci:get("freifunk", "community", "name")
19 if not (co and hostname and latitude and longitude and location) then
21 <%:Basic settings are incomplete. Please go to%> <a href='<%=basicsurl%>'><%:Basic settings%></a> <%:and fill out all required fields.%>