applications/ffwizard: Fix ffwizard_error page
[project/luci.git] / applications / luci-ffwizard / luasrc / view / freifunk / ffwizard_error.htm
1 <%+header%>
2
3 <%
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")
10 %>
11
12 <h2><%:Error%></h2>
13
14 <%:You can not use the wizard because some necessary values are missing.%>
15 <p/>
16
17 <%
18 local co = uci:get("freifunk", "community", "name")
19 if not (co and hostname and latitude and longitude and location) then
20 %>
21 <%:Basic settings are incomplete. Please go to%> <a href='<%=basicsurl%>'><%:Basic settings%></a> <%:and fill out all required fields.%>
22 <p/>
23 <% end %>
24
25
26 <%+footer%>