summaryrefslogtreecommitdiffhomepage
path: root/libs/cbi/luasrc/view
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-03-07 11:30:41 +0000
committerSteven Barth <steven@midlink.org>2009-03-07 11:30:41 +0000
commitad57125f4132bef88ff0d2b4e34281ff812dc08b (patch)
treef040d7d24f0b438ad102883ade02b18317b26999 /libs/cbi/luasrc/view
parenteb6f9c6192343285ac4a630c63512f64b63010a6 (diff)
Allow combination of SimpleForms as Forms into pages with Maps
Allow subsequent changes of Table data
Diffstat (limited to 'libs/cbi/luasrc/view')
-rw-r--r--libs/cbi/luasrc/view/cbi/simpleform.htm5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/cbi/luasrc/view/cbi/simpleform.htm b/libs/cbi/luasrc/view/cbi/simpleform.htm
index 66810a0718..e167a6e6d9 100644
--- a/libs/cbi/luasrc/view/cbi/simpleform.htm
+++ b/libs/cbi/luasrc/view/cbi/simpleform.htm
@@ -12,12 +12,13 @@ You may obtain a copy of the License at
$Id$
-%>
-
+<% if not self.embedded then %>
<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>
@@ -30,6 +31,7 @@ $Id$
<%- if self.errmessage then %>
<div class="error"><%=self.errmessage%></div>
<%- end %>
+<% if not self.embedded then %>
<div>
<%- if self.submit ~= false then %>
<input class="cbi-button-save" type="submit" value="
@@ -44,3 +46,4 @@ $Id$
<script type="text/javascript">cbi_d_update();</script>
</div>
</form>
+<% end %>