diff options
author | Ted Trask <ttrask01@yahoo.com> | 2014-09-29 14:58:27 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2014-09-29 14:58:27 +0000 |
commit | 2b91ec333e5d2f421e6d9a372c3bb18c7fee658b (patch) | |
tree | 1312be38ce182d67b884a644a5f2c5b93af5298b | |
parent | 7129ea88b61aee345121503fe02196e6572d15ef (diff) | |
download | acf-freeradius3-2b91ec333e5d2f421e6d9a372c3bb18c7fee658b.tar.bz2 acf-freeradius3-2b91ec333e5d2f421e6d9a372c3bb18c7fee658b.tar.xz |
Display message in HTML views if no files found
-rw-r--r-- | freeradius3-listfiles-html.lsp | 4 | ||||
-rw-r--r-- | freeradius3-listmacauthfiles-html.lsp | 4 | ||||
-rw-r--r-- | freeradius3-listpasswdfiles-html.lsp | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/freeradius3-listfiles-html.lsp b/freeradius3-listfiles-html.lsp index 812543a..84effe0 100644 --- a/freeradius3-listfiles-html.lsp +++ b/freeradius3-listfiles-html.lsp @@ -30,6 +30,7 @@ html = require("acf.html") end %> <% local header_level = htmlviewfunctions.displaysectionstart(cfe({label="Configuration"}), page_info) %> +<% if #view.value>0 then %> <table id="list" class="tablesorter"><thead> <tr> <th>Action</th> @@ -57,6 +58,9 @@ end %> </tr> <% end %> </tbody></table> +<% else %> +<p>No files found</p> +<% end %> <% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createfile") then local createform = viewlibrary.dispatch_component("createfile", nil, true) diff --git a/freeradius3-listmacauthfiles-html.lsp b/freeradius3-listmacauthfiles-html.lsp index b9972f9..01b230f 100644 --- a/freeradius3-listmacauthfiles-html.lsp +++ b/freeradius3-listmacauthfiles-html.lsp @@ -24,6 +24,7 @@ html = require("acf.html") <% htmlviewfunctions.displaycommandresults({"editmacauthfile"}, session) %> <% local header_level = htmlviewfunctions.displaysectionstart(cfe({label="MAC Authentication Configuration"}), page_info) %> +<% if #view.value>0 then %> <table id="list" class="tablesorter"><thead> <tr> <th>Action</th> @@ -48,4 +49,7 @@ html = require("acf.html") </tr> <% end %> </tbody></table> +<% else %> +<p>No files found</p> +<% end %> <% htmlviewfunctions.displaysectionend(header_level) %> diff --git a/freeradius3-listpasswdfiles-html.lsp b/freeradius3-listpasswdfiles-html.lsp index e305a23..d43af2b 100644 --- a/freeradius3-listpasswdfiles-html.lsp +++ b/freeradius3-listpasswdfiles-html.lsp @@ -22,6 +22,7 @@ html = require("acf.html") </script> <% local header_level = htmlviewfunctions.displaysectionstart(cfe({label="Passwd Configuration"}), page_info) %> +<% if #view.value>0 then %> <table id="list" class="tablesorter"><thead> <tr> <th>Action</th> @@ -46,4 +47,7 @@ html = require("acf.html") </tr> <% end %> </tbody></table> +<% else %> +<p>No files found</p> +<% end %> <% htmlviewfunctions.displaysectionend(header_level) %> |