add config to display note at top, RT#84990
authorIvan Kohler <ivan@freeside.biz>
Tue, 10 Nov 2020 19:30:04 +0000 (11:30 -0800)
committerIvan Kohler <ivan@freeside.biz>
Tue, 10 Nov 2020 19:30:04 +0000 (11:30 -0800)
httemplate/elements/dashboard-topnotes.html [new file with mode: 0644]

diff --git a/httemplate/elements/dashboard-topnotes.html b/httemplate/elements/dashboard-topnotes.html
new file mode 100644 (file)
index 0000000..28ca025
--- /dev/null
@@ -0,0 +1,15 @@
+% if ( $notes ) {
+  <TABLE CLASS="fsinnerbox">
+    <TR><TD>
+      <% $notes %>
+    </TD></TR>
+  </TABLE>
+  <BR>
+% }
+<%init>
+
+my $conf = new FS::Conf;
+
+my $notes = join('<BR>', map encode_entities($_), $conf->config('dashboard-topnotes') );
+
+</%init>