summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2014-09-29 15:13:14 +0000
committerTed Trask <ttrask01@yahoo.com>2014-09-29 15:16:53 +0000
commit209771b0ba1845a53e1d5e8becf99abcb5e1db60 (patch)
tree316007f39c2dc97401d47f2f165e971a686945fb
parent2841904bc27745da9d4755bbbe30902a0a0d9a38 (diff)
downloadacf-freeradius3-209771b0ba1845a53e1d5e8becf99abcb5e1db60.tar.bz2
acf-freeradius3-209771b0ba1845a53e1d5e8becf99abcb5e1db60.tar.xz
Display errtxt in listmacauthfiles and listpasswdfiles HTML views
(cherry picked from commit f652cfd01fd25af2bb9e3d404379b63961bd5af2) Conflicts: freeradius3-listmacauthfiles-html.lsp freeradius3-listpasswdfiles-html.lsp
-rw-r--r--freeradius3-listmacauthfiles-html.lsp1
-rw-r--r--freeradius3-listpasswdfiles-html.lsp1
2 files changed, 2 insertions, 0 deletions
diff --git a/freeradius3-listmacauthfiles-html.lsp b/freeradius3-listmacauthfiles-html.lsp
index 2293b8a..e1c833f 100644
--- a/freeradius3-listmacauthfiles-html.lsp
+++ b/freeradius3-listmacauthfiles-html.lsp
@@ -25,6 +25,7 @@ html = require("acf.html")
<h1>MAC Authentication Configuration</h1>
<dl>
+<% if view.errtxt then io.write('<p class="error">' .. string.gsub(html.html_escape(view.errtxt), "\n", "<br/>") .. '</p>') end %>
<% if #view.value>0 then %>
<table id="list" class="tablesorter"><thead>
<tr>
diff --git a/freeradius3-listpasswdfiles-html.lsp b/freeradius3-listpasswdfiles-html.lsp
index 4633375..db29e46 100644
--- a/freeradius3-listpasswdfiles-html.lsp
+++ b/freeradius3-listpasswdfiles-html.lsp
@@ -23,6 +23,7 @@ html = require("acf.html")
<h1>Passwd Configuration</h1>
<dl>
+<% if view.errtxt then io.write('<p class="error">' .. string.gsub(html.html_escape(view.errtxt), "\n", "<br/>") .. '</p>') end %>
<% if #view.value>0 then %>
<table id="list" class="tablesorter"><thead>
<tr>