<mt:unless name="json">
<mt:ignore>
<!--
parameters:
    panel_type (blog, author, role, group)
    panel_title
    panel_label
    items_prompt
    panel_description

    panel_multi (multiple selection or not)
    panel_searchable
    panel_last
    panel_first

    object_loop
        id
        label
        description
        disabled (row is shown, but unselectable)
-->
</mt:ignore>

<!-- Listing Panel -->
<div id="<mt:var name="panel_type">-panel" class="hidden panel">
  <div class="panel-header">
  <mt:if name="panel_title">
    <h2 class="title panel"><mt:var name="panel_title"></h2>
  </mt:if>
  <mt:if name="panel_has_steps">
    <div class="progress"><__trans phrase="Step [_1] of [_2]" params="<mt:var name="panel_number">%%<mt:var name="panel_total">"></div>
  </mt:if>
  <mt:if name="panel_multi">
    <div class="selected-items">
      <span class="modal_added"><mt:var name="items_prompt">:</span> <span class="items"></span>
    </div>
  </mt:if>
  </div>

<mt:if name="panel_searchable">
  <form action="" method="get" id="modal-search">
    <input type="text" class="search-input text med" value="" placeholder="<__trans phrase="Search">" />
    <input type="image" class="search-command search-submit" src="<$mt:var name="static_uri"$>images/search-submit-dialog.png" title="<__trans phrase="Search">" />
    <a href="javascript:void(0)" class="search-reset hidden"><__trans phrase="Reset"></a>
  </form>
</mt:if>

  <div id="selector" class="selector listing list-data<mt:if name="panel_multi"> list-multi</mt:if>">
    <form action="" method="get" onsubmit="return false">
      <table class="legacy listing-table list-heading">
      <mt:setvarblock name="table_header">
        <tr>
          <th class="col head cb"><mt:if name="panel_multi"><input type="checkbox" value="all" class="select" /><mt:else>&nbsp;</mt:if></th>
          <th class="col head panel-label primary"><span class="col-label"><mt:var name="panel_label"></span></th>
          <th class="col head panel-description primary"><span class="col-label"><mt:var name="panel_description"></span></th>
        </tr>
      </mt:setvarblock>
        <thead>
          <mt:var name="table_header">
        </thead>
        <tfoot>
          <mt:var name="table_header">
        </tfoot>
</mt:unless>

<mt:if name="object_loop">
        <tbody>
        <mt:loop name="object_loop">
          <mt:unless name="disabled">
          <tr id="<mt:var name="panel_type">-<mt:var name="id">" class="<mt:if name="__odd__">odd<mt:else>even</mt:if>">
            <td class="col cb"><input type="<mt:if name="panel_multi">checkbox<mt:else>radio</mt:if>" class="select" name="<mt:var name="panel_type">-cb" value="<mt:var name="id">" /></td>
            <td class="col panel-label"><label><mt:var name="label" escape="html"></label></td>
            <td class="col panel-description">
            <mt:ignore><!-- No, the duplicate escape modifiers below is not a typo. --></mt:ignore>
              <mt:if name="link"><span class="view-site-link"><a href="<mt:var name="link" escape="html">" target="_blank"><img src="<mt:var name="static_uri">images/spacer.gif" title="<__trans phrase="Go to [_1]" params="<mt:var name="label" escape="html" escape="html">">" width="13" height="9" alt="" /></a></span></mt:if>
              <mt:if name="link"><span class="float_desc"></mt:if><mt:var name="description" remove_html="1"><mt:if name="link"></span></mt:if>
            </td>
          </tr>
        <mt:if name="blogs">
        <mt:loop name="blogs">
          <tr id="<mt:var name="panel_type">-<mt:var name="id">" class="<mt:if name="__odd__">odd<mt:else>even</mt:if>">
            <td class="col cb"><input type="<mt:if name="panel_multi">checkbox<mt:else>radio</mt:if>" class="select" name="<mt:var name="panel_type">-cb" value="<mt:var name="id">" /></td>
            <td class="col panel-label sub-label"><label><mt:var name="label" escape="html"></label></td>
            <td class="col panel-description">
            <mt:Ignore><!-- No, the duplicate escape modifiers below is not a typo. --></mt:Ignore>
              <mt:if name="link"><span class="view-site-link"><a href="<mt:var name="link" escape="html">" target="_blank"><img src="<mt:var name="static_uri">images/spacer.gif" title="<__trans phrase="Go to [_1]" params="<mt:var name="label" escape="html" escape="html">">" width="13" height="9" alt="" /></a></span></mt:if>
              <mt:if name="link"><span class="float_desc"></mt:if><mt:var name="description" remove_html="1"><mt:if name="link"></span></mt:if>
            </td>
          </tr>
        </mt:loop>
        </mt:if>
          </mt:unless>
        </mt:loop>
        </tbody>

  <mt:unless name="json">
      </table>
  </mt:unless>

<mt:else>

  <mt:if name="search">
      <mtapp:statusmsg
         id="search"
         class="info"
         can_close="0">
        <__trans phrase="Sorry, there were no results for your search. Please try searching again.">
      </mtapp:statusmsg>
  <mt:else>
      <mtapp:statusmsg
         id="no-data"
         class="info"
         can_close="0">
        <__trans phrase="Sorry, there is no data for this object set.">
      </mtapp:statusmsg>
  </mt:if>
</mt:if>

<mt:unless name="json">
    </form>
    <div class="pagination"></div>
  </div>
  <mt:if name="after_listing_panel">
  <div class="listing-panel-options">
    <mt:var name="after_listing_panel">
  </div>
  </mt:if>
  <div class="actions-bar actions-bar-bottom">
    <form action="" method="get" onsubmit="return false" onclick="window.focus();">
    <mt:if name="panel_last">
      <button
         type="submit"
         accesskey="s"
         title="<__trans phrase="OK (s)">"
         class="close action primary button disabled"
         disabled="true">
        <__trans phrase="OK"></button>
    <mt:else>
      <button
         type="submit"
         accesskey="s"
         title="<__trans phrase="Continue (s)">"
         class="continue action primary button next"
         disabled="true">
        <__trans phrase="Continue"></button>
    </mt:if>
    <mt:unless name="panel_first">
      <button
         type="submit"
         accesskey="b"
         title="<__trans phrase="Back (b)">"
         class="action previous button">
        <__trans phrase="Back"></button>
    </mt:unless>
      <button
         type="submit"
         accesskey="x"
         class="cancel action button mt-close-dialog"
         title="<__trans phrase="Cancel (x)">">
        <__trans phrase="Cancel"></button>
    </form>
  </div>
</div>
</mt:unless>
