applications/ffwizard: Massive changes to the ffwizard to make it more generic. Also...
[project/luci.git] / modules / freifunk / luasrc / view / freifunk / contact.htm
1 <%#
2 LuCI - Lua Configuration Interface
3 Copyright 2008 Steven Barth <steven@midlink.org>
4 Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13
14 -%>
15 <%+header%>
16
17 <% 
18 local uci = require "luci.model.uci".cursor()
19 local contact = uci:get_all("freifunk", "contact")
20 local location = uci:get_first("system", "system", "location")
21 local lon = uci:get_first("system", "system", "longitude")
22 local lat = uci:get_first("system", "system", "latitude")
23 %>
24
25 <h2><a id="content" name="content"><%:Contact%></a></h2>
26 <table cellspacing="0" cellpadding="6">
27         <tr><th><%:Nickname%>:</th><td><%=contact.nickname%></td></tr>
28         <tr><th><%:Realname%>:</th><td><%=contact.name%></td></tr>
29         <tr><th><%:E-Mail%>:</th><td><%=contact.mail%></td></tr>
30         <tr><th><%:Phone%>:</th><td><%=contact.phone%></td></tr>
31         <tr><th><%:Location%>:</th><td><%=location%></td></tr>
32         <tr><th><%:Coordinates%>:</th><td><%=lat%> <%=lon%></td></tr>
33         <tr><th><%:Notice%>:</th><td><%=contact.note%></td></tr>
34 </table>
35 <%+footer%>