3203f0c74c8804b93a41416afc3a14c72749a45c
[project/luci.git] / applications / luci-openvpn / luasrc / view / openvpn / pageswitch.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
16 <fieldset class="cbi-section">
17 <legend>
18 <a href="<%=luci.dispatcher.build_url("admin", "services", "openvpn")%>"><%:openvpn_overview Overview%></a> &raquo;
19 <%=luci.i18n.translatef("openvpn_instance", "%s", self.instance)%>
20 </legend>
21
22 <% if self.mode == "basic" then %>
23 <a href="<%=luci.dispatcher.build_url("admin", "services", "openvpn", "advanced", self.instance)%>"><%:openvpn_switch_advanced Switch to advanced configuration &raquo;%></a>
24 <% else %>
25 <a href="<%=luci.dispatcher.build_url("admin", "services", "openvpn", "basic", self.instance)%>"><%:openvpn_switch_basic &laquo; Switch to basic configuration%></a>
26 <hr style="margin:0.5em 0" />
27 <%:openvpn_confcategory Configuration category%>:
28 <% for i, c in ipairs(self.categories) do %>
29 <% if c == self.category then %>
30 <strong><%=translate("openvpn_%s" % c, c)%></strong>
31 <% else %>
32 <a href="<%=luci.dispatcher.build_url(
33 "admin", "services", "openvpn", "advanced", self.instance, c
34 )%>"><%=translate("openvpn_%s" % c, c)%></a>
35 <% end %>
36 <% if next(self.categories, i) then %>|<% end %>
37 <% end %>
38 <% end %>
39 </fieldset>