diff options
author | Ted Trask <ttrask01@yahoo.com> | 2014-09-29 15:13:14 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2014-09-29 15:16:53 +0000 |
commit | 209771b0ba1845a53e1d5e8becf99abcb5e1db60 (patch) | |
tree | 316007f39c2dc97401d47f2f165e971a686945fb | |
parent | 2841904bc27745da9d4755bbbe30902a0a0d9a38 (diff) | |
download | acf-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.lsp | 1 | ||||
-rw-r--r-- | freeradius3-listpasswdfiles-html.lsp | 1 |
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> |