<table class="window">
  <tr>
    <td class="content2">
      <div class="frame_center productcategories" href="{{@URI}}">
        <div class="reload">
          <h1>{{@page_data.title}}</h1>
          <table width="100%">
            <tr>
              <th>Название</th>
              <td align="right">
                <button type="button" class="show_window" href="/productcategories/form">
                  <i class="fa fa-plus"></i>
                  <br>
                  <div class="small">Добавить</div>
                </button>
              </td>
            </tr>
            <repeat group="{{@data}}" value="{{@d}}">
            <tr>
              <td style="padding-left: {{@d.depth*10}}px;">
                {{@d.depth>0?'I'.str_repeat('_', @d.depth).' ':''}}{{@d.title}}
              </td>
              <td class="receipts_search_buttons" align="right">
                <button type="button" class="return_receipts_button show_window" href="/messages/continue?uri={{urlencode("/productcategories/delete?id=".@d.id)}}">
                  <i class="fa fa-times"></i>
                  <br>
                  <div class="small">Удалить</div>
                </button>
                <button type="button" class="show_window" href="/productcategories/form?id={{@d.id}}">
                  <i class="fa fa-pen"></i>
                  <br>
                  <div class="small">Изменить</div>
                </button>
              </td>
            </tr>
            </repeat>
          </table>
        </div>
      </div>
    </td>
  </tr>
</table>
