diff options
author | Steven Barth <steven@midlink.org> | 2008-04-11 18:13:58 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-04-11 18:13:58 +0000 |
commit | cd498aa924553422e64c4b56d2fb01e63a170bac (patch) | |
tree | 8dc47490dff680dc2c67a0c30e0bd64e1b34d008 /src/ffluci/view | |
parent | b864e2933ddab6bb40868cd878c9b89f9073ad12 (diff) |
* Major repository revision
Diffstat (limited to 'src/ffluci/view')
37 files changed, 0 insertions, 513 deletions
diff --git a/src/ffluci/view/admin_index/index.htm b/src/ffluci/view/admin_index/index.htm deleted file mode 100644 index 1f06e344cf..0000000000 --- a/src/ffluci/view/admin_index/index.htm +++ /dev/null @@ -1,5 +0,0 @@ -<%+header%> -<h1><%:hello Hallo!%></h1> -<p><%:admin1 Dies ist der Administrationsbereich. %> -<p><em>ToDo: Intelligenter Einleitungstext</em></p> -<%+footer%>
\ No newline at end of file diff --git a/src/ffluci/view/admin_mesh/index.htm b/src/ffluci/view/admin_mesh/index.htm deleted file mode 100644 index 75aa026582..0000000000 --- a/src/ffluci/view/admin_mesh/index.htm +++ /dev/null @@ -1,2 +0,0 @@ -<%+header%> -<%+footer%>
\ No newline at end of file diff --git a/src/ffluci/view/admin_network/index.htm b/src/ffluci/view/admin_network/index.htm deleted file mode 100644 index 75aa026582..0000000000 --- a/src/ffluci/view/admin_network/index.htm +++ /dev/null @@ -1,2 +0,0 @@ -<%+header%> -<%+footer%>
\ No newline at end of file diff --git a/src/ffluci/view/admin_services/index.htm b/src/ffluci/view/admin_services/index.htm deleted file mode 100644 index 75aa026582..0000000000 --- a/src/ffluci/view/admin_services/index.htm +++ /dev/null @@ -1,2 +0,0 @@ -<%+header%> -<%+footer%>
\ No newline at end of file diff --git a/src/ffluci/view/admin_status/index.htm b/src/ffluci/view/admin_status/index.htm deleted file mode 100644 index 75aa026582..0000000000 --- a/src/ffluci/view/admin_status/index.htm +++ /dev/null @@ -1,2 +0,0 @@ -<%+header%> -<%+footer%>
\ No newline at end of file diff --git a/src/ffluci/view/admin_status/system.htm b/src/ffluci/view/admin_status/system.htm deleted file mode 100644 index 75aa026582..0000000000 --- a/src/ffluci/view/admin_status/system.htm +++ /dev/null @@ -1,2 +0,0 @@ -<%+header%> -<%+footer%>
\ No newline at end of file diff --git a/src/ffluci/view/admin_system/editor.htm b/src/ffluci/view/admin_system/editor.htm deleted file mode 100644 index 0215c91dff..0000000000 --- a/src/ffluci/view/admin_system/editor.htm +++ /dev/null @@ -1,14 +0,0 @@ -<%+header%> -<h1><%:texteditor Texteditor%></h1> -<form method="post" action="<%=controller%>/admin/system/editor"> -<div><%:file Datei%>: <input type="text" name="file" size="30" value="<%=(fn or '')%>" /> -<% if msg then %><span class="error"><%:error Fehler%>: <%=msg%></span><% end %></div> -<br /> -<div><textarea style="width: 100%" rows="20" name="data"><%=(cnt or '')%></textarea></div> -<br /> -<div> - <input type="submit" value="<%:save Speichern%>" /> - <input type="reset" value="<%:reset Zurücksetzen%>" /> -</div> -</form> -<%+footer%>
\ No newline at end of file diff --git a/src/ffluci/view/admin_system/index.htm b/src/ffluci/view/admin_system/index.htm deleted file mode 100644 index 75aa026582..0000000000 --- a/src/ffluci/view/admin_system/index.htm +++ /dev/null @@ -1,2 +0,0 @@ -<%+header%> -<%+footer%>
\ No newline at end of file diff --git a/src/ffluci/view/admin_system/ipkg.htm b/src/ffluci/view/admin_system/ipkg.htm deleted file mode 100644 index bbe7f3bc6e..0000000000 --- a/src/ffluci/view/admin_system/ipkg.htm +++ /dev/null @@ -1,23 +0,0 @@ -<%+header%> -<h1><%:system System%></h1> -<h2><%:ipkg IPKG-Konfiguration%></h2> - -<br /> - -<div><strong><%:ipkg_pkglists Paketlisten%>:</strong><code>src <em>Name</em> <em>URL</em></code></div> -<div><strong><%:ipkg_targets Installationsziele%>:</strong><code>dest <em>Name</em> <em>Pfad</em></code></div> - -<br /> - -<form method="post" action="<%=controller%>/admin/system/ipkg"> - <fieldset class="cbi-section-node"> - <div><textarea style="width: 100%" rows="10" name="data"><%=(cnt or '')%></textarea></div> - <br /> - <div> - <input type="submit" value="<%:save Speichern%>" /> - <input type="reset" value="<%:reset Zurücksetzen%>" /> - </div> - <% if msg then %><br /><div class="error"><%:error Fehler%>: <%=msg%></div><% end %> - </fieldset> -</form> -<%+footer%>
\ No newline at end of file diff --git a/src/ffluci/view/admin_system/packages.htm b/src/ffluci/view/admin_system/packages.htm deleted file mode 100644 index d9cdb4dd0e..0000000000 --- a/src/ffluci/view/admin_system/packages.htm +++ /dev/null @@ -1,77 +0,0 @@ -<%+header%> -<h1><%:system System%></h1> -<h2><%:packages Paketverwaltung%></h2> - -<br /> - -<% if install or remove or update or upgrade then %> -<div class="code"><strong><%:status Status%>:</strong><br /> -<% if update then %> - <%:packages_update Paketlisten aktualisieren%>: <% if update == 0 then %><span class="ok"><%:ok OK%></span><% else %><span class="error"><%:error Fehler%> (<%:code Code%> <%=update%>)</span><% end %><br /> -<% end %> -<% if upgrade then%> - <%:packages_upgrade Installierte Pakete aktualisieren%>: <% if upgrade == 0 then %><span class="ok"><%:ok OK%></span><% else %><span class="error"><%:error Fehler%> (<%:code Code%> <%=upgrade%>)</span><% end %><br /> -<% end %> -<% if install then for k,v in pairs(install) do %> - <%:packages_install Installation von%> '<%=k%>': <% if v == 0 then %><span class="ok"><%:ok OK%></span><% else %><span class="error"><%:error Fehler%> (<%:code Code%> <%=v%>)</span><% end %><br /> -<% end end %> -<% if remove then for k,v in pairs(remove) do %> - <%:packages_remove Deinstallation von%> '<%=k%>': <% if v == 0 then %><span class="ok"><%:ok OK%></span><% else %><span class="error"><%:error Fehler%> (<%:code Code%> <%=v%>)</span><% end %><br /> -<% end end %> -</div> -<br /> -<% end %> - -<div> -<a href="<%=controller%>/admin/system/ipkg"><%:packages_ipkg Paketlisten und Installationsziele bearbeiten%></a><br /> -<a href="<%=controller%>/admin/system/packages?update=1"><%:packages_updatelist Paketlisten aktualisieren%></a><br /> -<a href="<%=controller%>/admin/system/packages?upgrade=1"><%:packages_upgrade Installierte Pakete aktualisieren%></a> -</div> - -<br /> -<br /> - -<form method="post" action="<%=controller%>/admin/system/packages"> - <div> - <span class="bold"><%:packages_installurl Paket herunterladen und installieren%>:</span><br /> - <input type="text" name="url" size="30" value="" /> - <input type="submit" name="submit" value="<%:ok OK%>" /> - </div> - - <br /> - <br /> - - <div> - <span class="bold"><%:filter Filter%>:</span> - <input type="text" name="query" size="20" value="<%=(query or '')%>" /> - <input type="submit" name="search" value="<%:packages_search Paket suchen%>" /> - <input type="submit" name="submit" value="<%:packages_do Aktionen ausführen%>" /> - </div> - - <br /> - <br /> - - <div> - <table style="font-size: 0.8em"> - <tr> - <th><%:packages_name Paketname%></th> - <th><%:version Version%></th> - <th><%:install Installieren%></th> - <th><%:delete Löschen%></th> - <th><%:descr Beschreibung%></th> - </tr> - <% for k, pkg in pairs(pkgs) do %> - <tr> - <td><%=pkg.Package%></td> - <td><%=(pkg.Version or '')%></td> - <td><% if not pkg.Status or not pkg.Status.installed then %><input type="checkbox" name="install.<%=pkg.Package%>" value="1" /><% else %><%:installed installiert%><% end %></td> - <td><% if pkg.Status and pkg.Status.installed then %><input type="checkbox" name="remove.<%=pkg.Package%>" value="1" /><% else %><%:notinstalled nicht installiert%><% end %></td> - <td><%=(pkg.Description or '')%></td> - </tr> - <% end %> - </table> - </div> - <br /> - <input type="submit" name="submit" value="<%:packages_do Aktionen ausführen%>" /> -</form> -<%+footer%>
\ No newline at end of file diff --git a/src/ffluci/view/admin_system/passwd.htm b/src/ffluci/view/admin_system/passwd.htm deleted file mode 100644 index 441753d839..0000000000 --- a/src/ffluci/view/admin_system/passwd.htm +++ /dev/null @@ -1,34 +0,0 @@ -<%+header%> -<h1><%:system System%></h1> -<h2><%:passwd Passwort ändern%></h2> -<div><br /> -<% if stat then %> - <% if stat == 0 then %> - <code><%:password_changed Passwort erfolgreich geändert!%></code> - <% elseif stat == 10 then %> - <code class="error"><%:password_nomatch Passwörter stimmen nicht überein! %></code> - <% else %> - <code class="error"><%:unknown_error Unbekannter Fehler!%></code> - <% end %> -<% end %> -<% if not stat or stat == 10 then %> - <form method="post" action="<%=controller%>/admin/system/passwd"> - <fieldset class="cbi-section-node"> - <div class="cbi-value clear"> - <div class="cbi-value-title left"><%:password Passwort%></div> - <div class="cbi-value-field"><input type="password" name="pwd1" /></div> - </div> - <div class="cbi-value clear"> - <div class="cbi-value-title left"><%:confirmation Bestätigung%></div> - <div class="cbi-value-field"><input type="password" name="pwd2" /></div> - </div> - <br /> - <div> - <input type="submit" value="<%:save Speichern%>" /> - <input type="reset" value="<%:reset Zurücksetzen%>" /> - </div> - </fieldset> - </form> -<% end %> -</div> -<%+footer%>
\ No newline at end of file diff --git a/src/ffluci/view/admin_system/reboot.htm b/src/ffluci/view/admin_system/reboot.htm deleted file mode 100644 index 365c330781..0000000000 --- a/src/ffluci/view/admin_system/reboot.htm +++ /dev/null @@ -1,10 +0,0 @@ -<%+header%> -<h1><%:system System%></h1> -<h2><%:reboot Neu starten%></h2> -<% if not reboot then %> -<p><a href="<%=controller%>/admin/system/reboot?reboot=1"><%:reboot_do Neustart durchführen%></a></p> -<% else %> -<p><%:reboot_running Bitte warten: Neustart wird durchgeführt...%></p> -<script type="text/javascript">setTimeout("location='<%=controller%>/admin'", 30000)</script> -<% end %> -<%+footer%>
\ No newline at end of file diff --git a/src/ffluci/view/admin_system/sshkeys.htm b/src/ffluci/view/admin_system/sshkeys.htm deleted file mode 100644 index 1e1cc24ce1..0000000000 --- a/src/ffluci/view/admin_system/sshkeys.htm +++ /dev/null @@ -1,23 +0,0 @@ -<%+header%> -<h1><%:system System%></h1> -<h2><%:sshkeys SSH-Schlüssel%></h2> - -<br /> - -<div><%:sshkeys_descr Hier können öffentliche SSH-Schlüssel (einer pro Zeile) - zur Authentifizierung abgelegt werden.%></div> - -<br /> - -<form method="post" action="<%=controller%>/admin/system/sshkeys"> - <fieldset class="cbi-section-node"> - <div><textarea style="width: 100%" rows="10" name="data"><%=(cnt or '')%></textarea></div> - <br /> - <div> - <input type="submit" value="<%:save Speichern%>" /> - <input type="reset" value="<%:reset Zurücksetzen%>" /> - </div> - <% if msg then %><br /><div class="error"><%:error Fehler%>: <%=msg%></div><% end %> - </fieldset> -</form> -<%+footer%>
\ No newline at end of file diff --git a/src/ffluci/view/admin_system/upgrade.htm b/src/ffluci/view/admin_system/upgrade.htm deleted file mode 100644 index d91d169a4a..0000000000 --- a/src/ffluci/view/admin_system/upgrade.htm +++ /dev/null @@ -1,32 +0,0 @@ -<%+header%> -<h1><%:system System%></h1> -<h2><%:upgrade Upgrade%></h2> -<br /> -<% if sysupgrade and not ret then %> -<form method="post" action="<%=controller%>-upload/admin/system/upgrade" enctype="multipart/form-data"> - <fieldset class="cbi-section-node"> - <div class="cbi-value clear"> - <div class="cbi-value-title left"><%:fwimage Firmwareimage%></div> - <div class="cbi-value-field"><input type="file" size="30" name="image" /></div> - </div> - <br /> - <div class="cbi-value clear"> - <input type="checkbox" name="keepcfg" value="1" checked="checked" /> - <span class="bold"><%:keepcfg Konfigurationsdateien übernehmen%></span> - </div> - <br /> - <div> - <input type="submit" value="<%:fwupgrade Firmware aktualisieren%>" /> - </div> - </fieldset> -</form> -<% elseif ret then %> - <% if ret == 0 then %> -<div class="ok"><%:flashed Flashvorgang erfolgreich. Router startet neu...%></div> - <% else %> -<div class="error"><%:flasherr Flashvorgang fehlgeschlagen!%> (<%:code Code%> <%=ret%>)</div> - <% end %> -<% else %> -<div class="error"><%:notimplemented Diese Funktion steht leider (noch) nicht zur Verfügung.%></div> -<% end %> -<%+footer%>
\ No newline at end of file diff --git a/src/ffluci/view/admin_uci/apply.htm b/src/ffluci/view/admin_uci/apply.htm deleted file mode 100644 index 43777c6c6d..0000000000 --- a/src/ffluci/view/admin_uci/apply.htm +++ /dev/null @@ -1,6 +0,0 @@ -<%+header%> -<h1><%:config Konfiguration%></h1> -<p><%:uci_applied Die folgenden Änderungen wurden übernommen:%></p> -<code><%=(changes or "-")%> -<%=output%></code> -<%+footer%>
\ No newline at end of file diff --git a/src/ffluci/view/admin_uci/changes.htm b/src/ffluci/view/admin_uci/changes.htm deleted file mode 100644 index 3bbcd0e5fb..0000000000 --- a/src/ffluci/view/admin_uci/changes.htm +++ /dev/null @@ -1,11 +0,0 @@ -<%+header%> -<h1><%:config Konfiguration%></h1> -<h2><%:changes Änderungen%></h2> -<code><%=(ffluci.model.uci.changes() or "-")%></code> -<form class="inline" method="get" action="<%=controller%>/admin/uci/apply"> - <input type="submit" value="<%:apply Anwenden%>" /> -</form> -<form class="inline" method="get" action="<%=controller%>/admin/uci/revert"> - <input type="submit" value="<%:revert Verwerfen%>" /> -</form> -<%+footer%>
\ No newline at end of file diff --git a/src/ffluci/view/admin_uci/revert.htm b/src/ffluci/view/admin_uci/revert.htm deleted file mode 100644 index f5eabc71b7..0000000000 --- a/src/ffluci/view/admin_uci/revert.htm +++ /dev/null @@ -1,5 +0,0 @@ -<%+header%> -<h1><%:config Konfiguration%></h1> -<p><%:uci_reverted Die folgenden Änderungen wurden verworfen:%></p> -<code><%=(changes or "-")%></code> -<%+footer%>
\ No newline at end of file diff --git a/src/ffluci/view/admin_wifi/index.htm b/src/ffluci/view/admin_wifi/index.htm deleted file mode 100644 index 75aa026582..0000000000 --- a/src/ffluci/view/admin_wifi/index.htm +++ /dev/null @@ -1,2 +0,0 @@ -<%+header%> -<%+footer%>
\ No newline at end of file diff --git a/src/ffluci/view/cbi/dvalue.htm b/src/ffluci/view/cbi/dvalue.htm deleted file mode 100644 index 178f2e16a1..0000000000 --- a/src/ffluci/view/cbi/dvalue.htm +++ /dev/null @@ -1,12 +0,0 @@ -<%+cbi/valueheader%> -<% if self.value then - if type(self.value) == "function" then %> - <%=self:value(section)%> -<% else %> - <%=self.value%> -<% end -else %> - <%=(self:cfgvalue(section) or "")%> -<% end %> - -<%+cbi/valuefooter%> diff --git a/src/ffluci/view/cbi/footer.htm b/src/ffluci/view/cbi/footer.htm deleted file mode 100644 index 2acf710cdd..0000000000 --- a/src/ffluci/view/cbi/footer.htm +++ /dev/null @@ -1,7 +0,0 @@ - <div> - <input type="submit" value="<%:save Speichern%>" /> - <input type="reset" value="<%:reset Zurücksetzen%>" /> - <script type="text/javascript">cbi_d_init();</script> - </div> - </form> -<%+footer%>
\ No newline at end of file diff --git a/src/ffluci/view/cbi/fvalue.htm b/src/ffluci/view/cbi/fvalue.htm deleted file mode 100644 index b609f1d4f4..0000000000 --- a/src/ffluci/view/cbi/fvalue.htm +++ /dev/null @@ -1,3 +0,0 @@ -<%+cbi/valueheader%> - <input onchange="cbi_d_update(this.id)" type="checkbox" id="cbid.<%=self.config.."."..section.."."..self.option%>" name="cbid.<%=self.config.."."..section.."."..self.option%>"<% if self:cfgvalue(section) == self.enabled then %> checked="checked"<% end %> value="1" /> -<%+cbi/valuefooter%>
\ No newline at end of file diff --git a/src/ffluci/view/cbi/header.htm b/src/ffluci/view/cbi/header.htm deleted file mode 100644 index 20b4aac7ff..0000000000 --- a/src/ffluci/view/cbi/header.htm +++ /dev/null @@ -1,7 +0,0 @@ -<%+header%> - <form method="post" action="<%=os.getenv("REQUEST_URI")%>"> - <div> - <script type="text/javascript" src="<%=media%>/cbi.js"></script> - <input type="hidden" name="cbi.submit" value="1" /> - <input type="submit" value="<%:cbi_save Speichern%>" class="hidden" /> - </div> diff --git a/src/ffluci/view/cbi/lvalue.htm b/src/ffluci/view/cbi/lvalue.htm deleted file mode 100644 index f1ae5a0939..0000000000 --- a/src/ffluci/view/cbi/lvalue.htm +++ /dev/null @@ -1,16 +0,0 @@ -<%+cbi/valueheader%> -<% if self.widget == "select" then %> - <select onchange="cbi_d_update(this.id)" id="cbid.<%=self.config.."."..section.."."..self.option%>" name="cbid.<%=self.config.."."..section.."."..self.option%>"<% if self.size then %> size="<%=self.size%>"<% end %>> -<%for i, key in pairs(self.keylist) do%> - <option<% if self:cfgvalue(section) == key then %> selected="selected"<% end %> value="<%=key%>"><%=self.vallist[i]%></option> -<% end %> - </select> -<% elseif self.widget == "radio" then - local c = 0; - for i, key in pairs(self.keylist) do - c = c + 1%> - <%=self.vallist[i]%><input type="radio" name="cbid.<%=self.config.."."..section.."."..self.option%>"<% if self:cfgvalue(section) == key then %> checked="checked"<% end %> value="<%=key%>" /> -<% if c == self.size then c = 0 %><br /> -<% end end %> -<% end %> -<%+cbi/valuefooter%>
\ No newline at end of file diff --git a/src/ffluci/view/cbi/map.htm b/src/ffluci/view/cbi/map.htm deleted file mode 100644 index 83c377fb86..0000000000 --- a/src/ffluci/view/cbi/map.htm +++ /dev/null @@ -1,7 +0,0 @@ - <div class="cbi-map" id="cbi-<%=self.config%>"> - <h1><%=self.title%></h1> - <div class="cbi-map-descr"><%=self.description%></div> - <br /> -<% self:render_children() %> - <br /> - </div> diff --git a/src/ffluci/view/cbi/mvalue.htm b/src/ffluci/view/cbi/mvalue.htm deleted file mode 100644 index 97a1c4295a..0000000000 --- a/src/ffluci/view/cbi/mvalue.htm +++ /dev/null @@ -1,19 +0,0 @@ -<% -local v = self:valuelist(section) -%> -<%+cbi/valueheader%> -<% if self.widget == "select" then %> - <select multiple="multiple" name="cbid.<%=self.config.."."..section.."."..self.option%>[]"<% if self.size then %> size="<%=self.size%>"<% end %>> -<%for i, key in pairs(self.keylist) do %> - <option<% if ffluci.util.contains(v, key) then %> selected="selected"<% end %> value="<%=key%>"><%=self.vallist[i]%></option> -<% end %> - </select> -<% elseif self.widget == "checkbox" then - local c = 0; - for i, key in pairs(self.keylist) do - c = c + 1%> - <%=self.vallist[i]%><input type="checkbox" name="cbid.<%=self.config.."."..section.."."..self.option%>[]"<% if ffluci.util.contains(v, key) then %> checked="checked"<% end %> value="<%=key%>" /> -<% if c == self.size then c = 0 %><br /> -<% end end %> -<% end %> -<%+cbi/valuefooter%>
\ No newline at end of file diff --git a/src/ffluci/view/cbi/nsection.htm b/src/ffluci/view/cbi/nsection.htm deleted file mode 100644 index 9c54a99429..0000000000 --- a/src/ffluci/view/cbi/nsection.htm +++ /dev/null @@ -1,17 +0,0 @@ -<% if self:cfgvalue(self.section) then -section = self.section %> - <div class="cbi-section" id="cbi-<%=self.config%>-<%=section%>"> - <h2><%=self.title%></h2> - <div class="cbi-section-descr"><%=self.description%></div> - <% if self.addremove then %><div class="cbi-section-remove"> - <input type="submit" name="cbi.rns.<%=self.config%>.<%=section%>" value="<%:cbi_del Eintrag entfernen%>" /> - </div><% end %> -<%+cbi/ucisection%> - </div> -<% elseif self.addremove then %> - <div class="cbi-section" id="cbi-<%=self.config%>-<%=self.section%>"> - <h2><%=self.title%></h2> - <div class="cbi-section-descr"><%=self.description%></div> - <input type="submit" name="cbi.cns.<%=self.config%>.<%=self.section%>" value="<%:cbi_cns Eintrag anlegen%>" /> - </div> -<% end %> diff --git a/src/ffluci/view/cbi/tsection.htm b/src/ffluci/view/cbi/tsection.htm deleted file mode 100644 index 8da0b4a1da..0000000000 --- a/src/ffluci/view/cbi/tsection.htm +++ /dev/null @@ -1,22 +0,0 @@ - <div class="cbi-section" id="cbi-<%=self.config%>-<%=self.sectiontype%>"> - <h2><%=self.title%></h2> - <div class="cbi-section-descr"><%=self.description%></div> -<% for k, v in pairs(self:cfgsections()) do%> - <% if self.addremove then %><div class="cbi-section-remove right"> - <input type="submit" name="cbi.rts.<%=self.config%>.<%=k%>" value="<%:cbi_del Eintrag entfernen%>" /> - </div><% end %> - <% if not self.anonymous then %><h3><%=k%></h3><% end %> -<% section = k %> -<%+cbi/ucisection%> -<% end %> -<% if self.addremove then %> - <div class="cbi-section-create"> - <% if self.anonymous then %> - <input type="submit" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" value="<%:cbi_add Eintrag hinzufügen%>" /> - <% else %> - <input type="text" class="cbi-section-create-name" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" /> - <input type="submit" value="<%:cbi_add Eintrag hinzufügen%>" /> - <% end %><% if self.err_invalid then %><div class="cbi-error"><%:cbi_invalid Fehler: Ungültige Eingabe%></div><% end %> - </div> -<% end %> - </div> diff --git a/src/ffluci/view/cbi/ucisection.htm b/src/ffluci/view/cbi/ucisection.htm deleted file mode 100644 index ef1b6cb0e1..0000000000 --- a/src/ffluci/view/cbi/ucisection.htm +++ /dev/null @@ -1,23 +0,0 @@ - <fieldset class="cbi-section-node" id="cbi-<%=self.config%>-<%=section%>"> -<% self:render_children(section) %> - <% if #self.optionals[section] > 0 or self.dynamic then %> - <div class="cbi-optionals"> - <% if self.dynamic then %> - <input type="text" name="cbi.opt.<%=self.config%>.<%=section%>" /> - <% else %> - <select name="cbi.opt.<%=self.config%>.<%=section%>"> - <option><%:cbi_addopt -- Feld --%></option> - <% for key, val in pairs(self.optionals[section]) do %> - <option id="cbi-<%=self.config.."-"..section.."-"..val.option%>" value="<%=val.option%>"><%=val.title%></option> - <% end %> - </select> - <script type="text/javascript"><% for key, val in pairs(self.optionals[section]) do %> - <% if #val.deps > 0 then %><% for j, d in ipairs(val.deps) do %>cbi_d_add("cbi-<%=self.config.."-"..section.."-"..val.option%>", "cbid.<%=self.config.."."..section.."."..d.field%>", "<%=d.value%>"); - <% end %><% end %> - <% end %></script> - <% end %> - <input type="submit" value="<%:add hinzufügen%>" /> - </div> - <% end %> - </fieldset> - <br />
\ No newline at end of file diff --git a/src/ffluci/view/cbi/value.htm b/src/ffluci/view/cbi/value.htm deleted file mode 100644 index 61033a0f50..0000000000 --- a/src/ffluci/view/cbi/value.htm +++ /dev/null @@ -1,3 +0,0 @@ -<%+cbi/valueheader%> - <input type="text" onchange="cbi_d_update(this.id)" <% if self.size then %>size="<%=self.size%>" <% end %><% if self.maxlength then %>maxlength="<%=self.maxlength%>" <% end %>name="cbid.<%=self.config.."."..section.."."..self.option%>" id="cbid.<%=self.config.."."..section.."."..self.option%>" value="<%=(self:cfgvalue(section) or "")%>" /> -<%+cbi/valuefooter%> diff --git a/src/ffluci/view/cbi/valuefooter.htm b/src/ffluci/view/cbi/valuefooter.htm deleted file mode 100644 index 3f92f09e26..0000000000 --- a/src/ffluci/view/cbi/valuefooter.htm +++ /dev/null @@ -1,8 +0,0 @@ - <div class="cbi-value-description inline"><%=self.description%></div> - </div> - <% if self.tag_invalid[section] then %><div class="cbi-error"><%:cbi_invalid Fehler: Ungültige Eingabe%></div><% end %> - </div> - <% if #self.deps > 0 then %><script type="text/javascript"> - <% for j, d in ipairs(self.deps) do %>cbi_d_add("cbi-<%=self.config.."-"..section.."-"..self.option%>", "cbid.<%=self.config.."."..section.."."..d.field%>", "<%=d.value%>"); - <% end %> - </script><% end %>
\ No newline at end of file diff --git a/src/ffluci/view/cbi/valueheader.htm b/src/ffluci/view/cbi/valueheader.htm deleted file mode 100644 index 86c782d711..0000000000 --- a/src/ffluci/view/cbi/valueheader.htm +++ /dev/null @@ -1,3 +0,0 @@ - <div class="cbi-value clear" id="cbi-<%=self.config.."-"..section.."-"..self.option%>"> - <div class="cbi-value-title left"><%=self.title%></div> - <div class="cbi-value-field">
\ No newline at end of file diff --git a/src/ffluci/view/error404.htm b/src/ffluci/view/error404.htm deleted file mode 100644 index adc671de00..0000000000 --- a/src/ffluci/view/error404.htm +++ /dev/null @@ -1,5 +0,0 @@ -<%+header%> -<h1>404 Not Found</h1> -<p>Sorry, the object you requested was not found.</p> -<tt>Unable to dispatch: <%=os.getenv("PATH_INFO")%></tt> -<%+footer%>
\ No newline at end of file diff --git a/src/ffluci/view/error500.htm b/src/ffluci/view/error500.htm deleted file mode 100644 index 8af22e8f20..0000000000 --- a/src/ffluci/view/error500.htm +++ /dev/null @@ -1,5 +0,0 @@ -<%+header%> -<h1>500 Internal Server Error</h1> -<p>Sorry, the server encountered an unexpected error.</p> -<tt><%=message%></tt> -<%+footer%>
\ No newline at end of file diff --git a/src/ffluci/view/footer.htm b/src/ffluci/view/footer.htm deleted file mode 100644 index 8d48c5fac4..0000000000 --- a/src/ffluci/view/footer.htm +++ /dev/null @@ -1,7 +0,0 @@ - </div> - <div class="clear"></div> -</div></div> - -<div class="separator magenta bold">FFLuCI 0.2 - Freifunk Lua Configuration Interface</div> -</body> -</html>
\ No newline at end of file diff --git a/src/ffluci/view/header.htm b/src/ffluci/view/header.htm deleted file mode 100644 index 40d54f5164..0000000000 --- a/src/ffluci/view/header.htm +++ /dev/null @@ -1,78 +0,0 @@ -<% -require("ffluci.sys") -local load1, load5, load15 = ffluci.sys.loadavg() -local req = require("ffluci.dispatcher").request -local menu = require("ffluci.menu").get()[req.category] -require("ffluci.i18n").loadc("default") -require("ffluci.http").htmlheader() -%><?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml"> -<head> - <link rel="stylesheet" type="text/css" href="<%=media%>/cascade.css" /> - <link rel="stylesheet" type="text/css" href="<%=media%>/css/<%=req.category%>_<%=req.module%>.css" /> - <meta http-equiv="content-type" content="text/xhtml+xml; charset=utf-8" /> - <meta http-equiv="content-script-type" content="text/javascript" /> - <title>FFLuCI</title> -</head> -<body> -<div id="header"> - <div class="headerlogo left"><img src="<%=media%>/logo.png" alt="Freifunk" /></div> - <div class="whitetext smalltext right"> - OpenWRT Kamikaze<br /> - Freifunk Firmware 2.0-dev<br /> - <%:load Last%>: <%=load1%> <%=load5%> <%=load15%><br /> - <%:hostname Hostname%>: <%=ffluci.sys.hostname()%> - </div> - <div> - <span class="headertitle">Freifunk Kamikaze</span><br /> - <span class="whitetext bold"><%:batmanedition Fledermausedition%></span> - </div> -</div> - -<div class="separator yellow bold"> -<%:path Pfad%>: <a href="<%=controller .. "/" .. req.category%>"><%=translate(req.category, req.category)%></a> -» <a href="<%=controller .. "/" .. req.category .. "/" .. req.module %>"><%=translate(req.module, req.module)%></a> -» <a href="<%=controller .. "/" .. req.category .. "/" .. req.module .. "/" .. req.action %>"><%=translate(req.action, req.action)%></a> -</div> - -<div id="columns"><div id="columnswrapper"> - <div class="sidebar left"> - <% for k,v in pairs(menu) do %> - <div<% if v[".contr"] == req.module then %> class="yellowtext"<% end %>><a href="<%=controller.."/"..req.category.."/"..v[".contr"]%>"><%=translate(v[".contr"], v[".descr"])%></a><% - if v[".contr"] == req.module then %> - <ul><% for key,val in ipairs(v) do %> - <li<% if val.action == req.action then %> class="yellowtext"<% end %>><a href="<%=controller.."/"..req.category.."/"..req.module.."/"..val.action%>"><%=translate(val.action, val.descr)%></a></li> - <% end %></ul> - <% end %></div> - <% end %> - </div> - <div class="sidebar right"> - <div><%:webif Weboberfläche%> - <ul> - <li<% if "public" == req.category then %> class="yellowtext"<% end %>><a href="<%=controller%>/public"><%:public Öffentlich%></a></li> - <li<% if "admin" == req.category then %> class="yellowtext"<% end %>><a href="<%=controller%>/admin"><%:admin Verwaltung%></a></li> - </ul> - </div> - <% - if "admin" == req.category then - require("ffluci.model.uci") - local ucic = ffluci.model.uci.changes() - if ucic then - ucic = #ffluci.util.split(ucic) - end - %> - <div><%:config Konfiguration%> - <ul> - <% if ucic then %> - <li><a href="<%=controller%>/admin/uci/changes"><%:changes Änderungen:%> <%=ucic%></a></li> - <li><a href="<%=controller%>/admin/uci/apply"><%:apply Anwenden%></a></li> - <li><a href="<%=controller%>/admin/uci/revert"><%:revert Verwerfen%></a></li> - <% else %> - <li><%:changes Änderungen: %> 0</li> - <% end %> - </ul> - </div> - <% end %> - </div> - <div id="content">
\ No newline at end of file diff --git a/src/ffluci/view/public_index/contact.htm b/src/ffluci/view/public_index/contact.htm deleted file mode 100644 index ded0a94af0..0000000000 --- a/src/ffluci/view/public_index/contact.htm +++ /dev/null @@ -1,12 +0,0 @@ -<%+header%> -<h1><%:contact Kontakt%></h1> -<table class="contact"> - <tr><th><%:nickname Pseudonym%>:</th><td><%~luci.contact.nickname%></td></tr> - <tr><th><%:name Name%>:</th><td><%~luci.contact.name%></td></tr> - <tr><th><%:mail E-Mail%>:</th><td><%~luci.contact.mail%></td></tr> - <tr><th><%:phone Telefon%>:</th><td><%~luci.contact.phone%></td></tr> - <tr><th><%:location Standort%>:</th><td><%~luci.contact.location%></td></tr> - <tr><th><%:geocoord Geokoordinaten%>:</th><td><%~luci.contact.geo%></td></tr> - <tr><th><%:note Notiz%>:</th><td><%~luci.contact.note%></td></tr> -</table> -<%+footer%>
\ No newline at end of file diff --git a/src/ffluci/view/public_index/index.htm b/src/ffluci/view/public_index/index.htm deleted file mode 100644 index 1f06e344cf..0000000000 --- a/src/ffluci/view/public_index/index.htm +++ /dev/null @@ -1,5 +0,0 @@ -<%+header%> -<h1><%:hello Hallo!%></h1> -<p><%:admin1 Dies ist der Administrationsbereich. %> -<p><em>ToDo: Intelligenter Einleitungstext</em></p> -<%+footer%>
\ No newline at end of file |