<%args>
$data
</%args>
%   my $value = $data->value();
%   if (defined ($value) and ($value eq 'available')) {
        <button class="btn-only-icon btn-download" onclick=downloadGroupsCSV()>
            <% __('Download domain groups csv') %>
        </button>
        <script>
        function downloadGroupsCSV() {
            window.location.href='/Samba/ExportGroups?action=download';
        }
        </script>

%   } else {
        <btn class="btn-only-icon btn-download disabledCustomAction">
            <% __('Download System Status report') %>
        </button>
%   }