2008-08-09 14:14:04 +00:00
|
|
|
<%#
|
|
|
|
LuCI - Lua Configuration Interface
|
|
|
|
Copyright 2008 Steven Barth <steven@midlink.org>
|
|
|
|
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
$Id$
|
|
|
|
|
|
|
|
-%>
|
2009-03-07 11:30:41 +00:00
|
|
|
<% if not self.embedded then %>
|
2008-12-22 21:54:20 +00:00
|
|
|
<form method="post" action="<%=REQUEST_URI%>">
|
2008-08-09 14:14:04 +00:00
|
|
|
<div>
|
|
|
|
<script type="text/javascript" src="<%=resource%>/cbi.js"></script>
|
|
|
|
<input type="hidden" name="cbi.submit" value="1" />
|
|
|
|
</div>
|
2009-03-07 11:30:41 +00:00
|
|
|
<% end %>
|
2008-08-09 14:14:04 +00:00
|
|
|
<div class="cbi-map" id="cbi-<%=self.config%>">
|
2008-10-07 13:10:24 +00:00
|
|
|
<h2><a id="content" name="content"><%=self.title%></a></h2>
|
2008-08-09 14:14:04 +00:00
|
|
|
<div class="cbi-map-descr"><%=self.description%></div>
|
2008-08-15 09:22:45 +00:00
|
|
|
<% self:render_children() %>
|
2008-08-09 14:14:04 +00:00
|
|
|
<br />
|
|
|
|
</div>
|
2008-08-14 19:19:05 +00:00
|
|
|
<%- if self.message then %>
|
|
|
|
<div><%=self.message%></div>
|
|
|
|
<%- end %>
|
|
|
|
<%- if self.errmessage then %>
|
|
|
|
<div class="error"><%=self.errmessage%></div>
|
|
|
|
<%- end %>
|
2009-03-07 11:30:41 +00:00
|
|
|
<% if not self.embedded then %>
|
2008-08-09 14:14:04 +00:00
|
|
|
<div>
|
2009-04-09 13:59:50 +00:00
|
|
|
<%- if self.flow and self.flow.skip then %>
|
2009-04-03 18:08:25 +00:00
|
|
|
<input class="cbi-button cbi-button-skip" type="submit" name="cbi.skip" value="<%:skip Skip%>" />
|
|
|
|
<% end %>
|
2008-08-09 14:14:04 +00:00
|
|
|
<%- if self.submit ~= false then %>
|
2008-08-14 16:11:49 +00:00
|
|
|
<input class="cbi-button-save" type="submit" value="
|
2008-09-05 11:36:47 +00:00
|
|
|
<%- if not self.submit then -%><%-:submit-%><%-else-%><%=self.submit%><%end-%>
|
2008-08-09 14:14:04 +00:00
|
|
|
" />
|
|
|
|
<% end %>
|
|
|
|
<%- if self.reset ~= false then %>
|
2008-08-14 16:11:49 +00:00
|
|
|
<input class="cbi-button-reset" type="reset" value="
|
2008-09-05 11:36:47 +00:00
|
|
|
<%- if not self.reset then -%><%-:reset-%><%-else-%><%=self.reset%><%end-%>
|
2008-08-09 14:14:04 +00:00
|
|
|
" />
|
|
|
|
<% end %>
|
2008-08-18 08:30:15 +00:00
|
|
|
<script type="text/javascript">cbi_d_update();</script>
|
2008-08-09 14:14:04 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
2009-03-07 11:30:41 +00:00
|
|
|
<% end %>
|