<!-- $Id: get_closed_lists.tt2 12726 2016-03-09 04:01:24Z sikeda $ -->

<form name="myform" action="[% path_cgi %]" method="post">
<fieldset>
<h2>[%|loc%]Closed lists[%END%]</h2>

[% IF closed.size %]
<table  class="responsive table_style">
<caption>[%|loc%]Closed lists[%END%]</caption>
 <tr class="color_light">
   <th><a href="#" onclick="toggle_selection(document.myform.selected_lists);return false;" title="[%|loc%]Toggle Selection[%END%]"><i class="fa fa-check-square-o"></i> </a></th>
   <th>[%|loc%]list name[%END%]</th>
   <th>[%|loc%]list subject[%END%]</th>
   <th>[%|loc%]Requested by[%END%]</th>
 </tr>

[% FOREACH list = closed %]
[% IF dark == '1' %]
  <tr>[% SET dark = 0 %]
[% ELSE %]
  <tr class="color0">[% SET dark = 1 %]
[% END %]

<td><input type="checkbox" name="selected_lists" value="[% list.key %]" /></td>
<td><a href="[% 'admin' | url_rel([list.key]) %]">[% list.key %]</a></td>
<td>[% list.value.subject %]</td>
<td>[% list.value.by %]</td>
</tr>
[% END %]
</table>
<input class="MainMenuLinks" type="button" value="[%|loc%]Toggle Selection[%END%]" onclick="toggle_selection(document.myform.selected_lists)" />
<input class="MainMenuLinks" type="submit" name="action_purge_list" value="[%|loc%]Purge selected lists[%END%]" />

[% ELSE %]
      <p class="small-12 medium-8 medium-centered columns alert-box info text-center">[%|loc%] No closed lists[%END%]</p>
[% END %]
</fieldset>
</form>

<!-- end get_closed_lists.tt2 -->
