summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-ffwizard/luasrc/view/freifunk/ffwizard_error.htm
blob: c988051c5c4e0f315c0b991f30cd7ea116910eb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<%+header%>

<%
local uci = require "luci.model.uci".cursor()
local basicsurl = luci.dispatcher.build_url(luci.dispatcher.context.path[1], "freifunk", "basics")
local hostname = uci:get_first ("system", "system", "hostname")
local latitude = uci:get_first ("system", "system", "latitude")
local longitude = uci:get_first ("system", "system", "longitude")
local location = uci:get_first ("system", "system", "location")
%>

<h2><%:Error%></h2>

<%:You can not use the wizard because some necessary values are missing.%>
<p/>

<%
local co = uci:get("freifunk", "community", "name")
if not (co and hostname and latitude and longitude and location) then
%>
<%:Basic settings are incomplete. Please go to%> <a href='<%=basicsurl%>'><%:Basic settings%></a> <%:and fill out all required fields.%>
<p/>
<% end %>


<%+footer%>