Renders a small icon button that navigates to a controller/action URL on click, with optional badge counter and conditional visibility.
Button — set as ReportType in def_report.
def Render(self, Param1="", Param2="", Param3="") -> str:
Returns an HTML <button> with an inline <script>. The query must return one row with up to seven columns: Title (column 1), Controller (column 2), Action (column 3), BadgeReport (column 4), Glyph (column 5), Colour (column 6), ShowReport (column 7).
Title — may include a pipe | separator for a subtitle; the part before the pipe is usedBadgeReport — report code or SQL SELECT statement; if the result is non-zero a yellow badge is shown on the button titleShowReport — report code; if it returns empty or 0, the button is hidden entirelyGlyph — FontAwesome icon class rendered inside the buttonColour — Bootstrap button class (e.g. bg-purple)On click, the button shows a spinner icon then navigates to $siteurl$/Controller/Action.