6590caadc4b447a72bf2c84193b854404e9b6165
[project/luci.git] / applications / luci-app-openvpn / luasrc / view / openvpn / pageswitch.htm
1 <%#
2  Copyright 2008 Steven Barth <steven@midlink.org>
3  Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
4  Licensed to the public under the Apache License 2.0.
5 -%>
6
7 <fieldset class="cbi-section">
8         <legend>
9                 <a href="<%=luci.dispatcher.build_url("admin", "services", "openvpn")%>"><%:Overview%></a> &raquo;
10                 <%=luci.i18n.translatef("Instance \"%s\"", self.instance)%>
11         </legend>
12
13         <% if self.mode == "basic" then %>
14                 <a href="<%=luci.dispatcher.build_url("admin", "services", "openvpn", "advanced", self.instance, "Service")%>"><%:Switch to advanced configuration »%></a>
15         <% else %>
16                 <a href="<%=luci.dispatcher.build_url("admin", "services", "openvpn", "basic", self.instance)%>"><%:« Switch to basic configuration%></a>
17                 <hr style="margin:0.5em 0" />
18                 <%:Configuration category%>:
19                 <% for i, c in ipairs(self.categories) do %>
20                         <% if c == self.category then %>
21                                 <strong><%=translate(c)%></strong>
22                         <% else %>
23                                 <a href="<%=luci.dispatcher.build_url(
24                                         "admin", "services", "openvpn", "advanced", self.instance, c
25                                 )%>"><%=translate(c)%></a>
26                         <% end %>
27                         <% if next(self.categories, i) then %>|<% end %>
28                 <% end %>
29         <% end %>
30 </fieldset>