<tbody data-update-seqs-url="{{ path('admin_navigation_seqs_update') }}">
  {% for navigation in navigations %}
		<tr class="treegrid-{{ navigation.id }} {% if navigation.parentId != 0 %}treegrid-parent-{{ navigation.parentId }}{% endif %} {% if navigation.parentId == 0 %}has-subItems{% else %} child{% endif %}" id="navigations-tr-{{ navigation.id }}" data-id="{{ navigation.id }}" data-parent-id="{{ navigation.parentId }}">
		  <td class="sort-handle" style="vertical-align: middle; {% if navigation.parentId != 0 %}padding-left: 30px{% endif %}">
        {# {% if navigation.parentId == 0 %}
          <span class="glyphicon glyphicon-resize-vertical"></span>
        {% endif %} #}
        <a href="{{navigation.url|navigation_url}}" target="_blank"> {{navigation.name}} </a>
      </td>
		  <td>
				{% if navigation.isNewWin == 0 %}{{'否'|trans}}{% else %}{{'是'|trans}}{% endif %}
  		</td>
		  <td>
        {% if navigation.isOpen == 1 %}{{'开启'|trans}}{% else %}{{'关闭'|trans}}{% endif %}
  		</td>
		  <td>
        {% if navigation.type == 'top' and navigation.parentId == 0 %}
	        <button class="btn btn-sm btn-default edit-btn" data-url="{{ path('admin_navigation_create', {type: navigation.type, parentId: navigation.id}) }}" data-toggle="modal" data-target="#modal">{{'添加二级导航'|trans}}</button>
        {% endif %}
          <button class="btn btn-sm btn-default edit-btn" data-url="{{ path('admin_navigation_update', {id:navigation.id}) }}" data-toggle="modal" data-target="#modal">{{'编辑'|trans}}</button>
	        <button class="btn btn-sm btn-default delete-btn" data-url="{{ path('admin_navigation_delete', {id:navigation.id}) }}" data-target="{{ navigation.id }}">{{'删除'|trans}}</button>
		   </td>
		 </tr>
	{% else %}
	  <tr><td colspan="20"><div class="empty">{{'暂无导航记录'|trans}}</div></td></tr>
  {% endfor %}

</tbody>