2364ff2adbf6ab4fde9b8ef1b1243554a824558e
[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 not set.%>
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 missing. Please go to this page and fill all required fields: %>
22 <a href='<%=basicsurl%>'><%:Basic settings%></a>
23 <p/>
24 <% end %>
25
26
27 <%+footer%>