summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>