luci/libs/cbi/luasrc/view/cbi/simpleform.htm

47 lines
1.4 KiB
HTML
Raw Normal View History

<%#
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$
-%>
<form method="post" action="<%=luci.http.getenv("REQUEST_URI")%>">
<div>
<script type="text/javascript" src="<%=resource%>/cbi.js"></script>
<input type="hidden" name="cbi.submit" value="1" />
</div>
<div class="cbi-map" id="cbi-<%=self.config%>">
<h2><a id="content" name="content"><%=self.title%></a></h2>
<div class="cbi-map-descr"><%=self.description%></div>
2008-08-15 09:22:45 +00:00
<% self:render_children() %>
<br />
</div>
<%- if self.message then %>
<div><%=self.message%></div>
<%- end %>
<%- if self.errmessage then %>
<div class="error"><%=self.errmessage%></div>
<%- end %>
<div>
<%- if self.submit ~= false then %>
<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-%>
" />
<% end %>
<%- if self.reset ~= false then %>
<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-%>
" />
<% end %>
2008-08-18 08:30:15 +00:00
<script type="text/javascript">cbi_d_update();</script>
</div>
</form>