
<!-- Both Theme drop downs but only the first works curently -->

<div>
%# content_for 'module' => begin

% my $value = $c->session->{'CurrentTheme'};
% $value = session 'CurrentTheme';
% my $formUrl = $c->url_for('swttheme');
% param 'Theme' => $value unless param 'Theme';

%# my @themes = $c->theme_list();

%#= dumper $c

%#= my $size = keys ($c->theme_list)

% my @themeList = $c->theme_list();
%# = dumper @themeList
% my @themes = $themeList[0];


% param 'Theme' => $value unless param 'Theme';

<form action="<%= $formUrl %>" method="POST" >
  <div class="row g-3 align-items-center">
      <div class="col-auto">
        <!--<label class="visually-hidden" for="inlineFormSelectPref">Preference</label> -->
        %= select_field 'Theme' => $c->theme_list(), class => "form-select", id => "Preference"
        %= hidden_field 'From' => $c->tx->req->url
      </div>

      <div class="col-auto">
        <button type="submit" class="btn btn-primary btn-sm">Theme</button>
      </div>
  </div>
</form>


%# end
</div>


