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

53 lines
1.6 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$
-%>
<% if not self.embedded then %>
2008-12-22 21:54:20 +00:00
<form method="post" action="<%=REQUEST_URI%>">
<div>
<script type="text/javascript" src="<%=resource%>/cbi.js"></script>
<input type="hidden" name="cbi.submit" value="1" />
</div>
<% end %>
<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 %>
<% if not self.embedded then %>
<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 %>
<%- 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>
<% end %>