diff options
Diffstat (limited to 'provisioning-searchdevices-html.lsp')
-rw-r--r-- | provisioning-searchdevices-html.lsp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/provisioning-searchdevices-html.lsp b/provisioning-searchdevices-html.lsp index f5cd09f..4732c53 100644 --- a/provisioning-searchdevices-html.lsp +++ b/provisioning-searchdevices-html.lsp @@ -24,11 +24,13 @@ html = require("acf.html") <% htmlviewfunctions.displaycommandresults({"deletedevice", "editdevice", "editdeviceparams", "overridedeviceparams"}, session) %> <% if form.value.values then %> -<H1>Device</H1> - <DL> -<% if form.errtxt then io.write("<P CLASS='error'>" .. string.gsub(html.html_escape(form.errtxt), "\n", "<BR>") .. "</P>\n") end %> - <DT>Device ID</DT><DD><input class="text" type="text" value="<%= html.html_escape(form.value.result.value[1].device_id) %>" readonly="true"></DD> -<H2>Parameter Values</H2> +<h1>Device</h1> +<% if form.errtxt then io.write("<p class='error'>" .. string.gsub(html.html_escape(form.errtxt), "\n", "<br/>") .. "</p>\n") end %> + <div class='item'><p class='left'>Device ID</p> + <div class='right'> + <input class="text" type="text" value="<%= html.html_escape(form.value.result.value[1].device_id) %>" readonly="true"> + </div></div><!-- end .item --> +<h2>Parameter Values</h2> <% session = require("session") val = session.serialize("values", form.value.values.value) @@ -39,10 +41,9 @@ elseif form.value.result then local func = haserl.loadfile(page_info.viewfile:gsub("searchdevices", "listdevices")) func(form.value.result, viewlibrary, page_info, session) %> - </DL> <% end %> -<H1><%= html.html_escape(form.label) %></H1> +<h1><%= html.html_escape(form.label) %></h1> <% form.value.result = nil htmlviewfunctions.displayform(form, nil, nil, page_info, 2) |