<%# Opennet Firmware Copyright 2015 Lars Kruse Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -%> <%+header%> <% local uci = require "luci.model.uci" local cursor = uci.cursor() require("luci.model.opennet.funcs") %>

<%:Services in the Opennet%>

<%= html_display_message_list(on_errors, "error") %>
<%# TODO: diese Funktion gehört in ein separates luci-Paket, das in openwrt integriert werden sollte %> <% if cursor:get("system", "gpio_switch_poe_passthrough") then %> <% local is_enabled = (cursor:get("system", "gpio_switch_poe_passthrough", "value") == "1") %>
<%:POE Passthrough%>
<%:Devices with multiple ethernet ports may be able to supply chained devices with power.%>
/>
<% end %>
<%:Service settings%>
<%:Nodes in the Opennet can announce various services. These services can be used by other nodes. The most important services are Internet access, DNS and NTP.%>
<%# Dienste-Sortierung %>
<% local current_sorting = on_function("get_service_sorting") %>
<%# Checkboxen (ja/nein) %> <% for _, item in ipairs({ { key="use_olsrd_dns", label=luci.i18n.translate("DNS (Name resolution)")}, { key="use_olsrd_ntp", label=luci.i18n.translate("NTP (Time synchronization)")}}) do %>
<%# Die Voreinstellung ist jeweils: "aktiviert". %> <% local is_enabled = cursor:get("on-core", "settings", item.key) ~= "0" %> />
<% end %>
<%+footer%>