<%# Copyright 2010 Jo-Philipp Wich Licensed to the public under the Apache License 2.0. -%> <%- local chp = require "luci.model.charging_points" local uci = require "luci.model.uci" local fs = require "nixio.fs" local cur = uci.cursor() local path = luci.dispatcher.context.requestpath local user, serialnumber, hw_model = chp.whoami(path) local parameters = {} local sections = {} local chps = {} local list_pdr = chp.find_pdr() for n, pdr in pairs(list_pdr) do chps[#chps+1] = pdr end -%>
<%:Interface Overview%> <% for i, net in ipairs(chp) do %> <% end %>
<%:Charging Point%> <%:Status%> <%:Actions%>
<%=net:upper()%>

?
<%:Collecting data...%> '" title="<%:Edit this interface%>" value="<%:Edit%>" id="<%=net[1]%>-ifc-edit" /> '" title="<%:Delete this interface%>" value="<%:Delete%>" />
'" />