{% extends 'TopxiaAdminBundle::layout.html.twig' %}

{% set script_controller = 'navigation/page' %}

{% set menu = 'admin_'~type~'_navigation' %}
{% set types = {top:'顶部', foot:'底部'} %}

{% block page_buttons %} 
    <button class="btn btn-success btn-sm pull-right" id="add-navigation-btn" data-toggle="modal" data-target="#modal" data-url="{{ path('admin_navigation_create', {type: type}) }}">新增{{ types[type] }}导航</button>
{% endblock %}

{% block main %}

<table id="navigation-table" class="table table-striped table-hover navigation-table">
	<thead>
	  <tr>
	    <th width="50%">名称</th>
	    <th width="10%">新开窗口</th>
	    <th width="10%">状态</th>  
	    <th width="30%">操作</th>
	  </tr>
	</thead>
    
 	{% include 'TopxiaAdminBundle:Navigation:tbody.html.twig' %}
</table>
    


{% endblock %}
