@extends('admin.layouts.main', array('scripts' => array(Config::get('path.backoffice.js_path') . '/view/backend-menus-list.js')))

@section('content')
    <h1>Menus</h1>
    <div id="backend_menus">
        <button type="button" data-toggle="tooltip" data-placement="right" class="btn btn-default command-add list-add-btn" title="{{ Lang::get('backend.create') }}">
            <span class="icon glyphicon glyphicon-plus"></span>
        </button>
        <table id="grid" class="table table-condensed table-hover table-striped">
            <thead>
                <tr>
                    <th data-column-id="id" data-type="numeric" data-identifier="true">ID</th>
                    <th data-column-id="name">{{ Lang::get('backend.name') }}</th>
                    <th data-column-id="commands" data-formatter="commands" data-sortable="false">{{ Lang::get('backend.actions') }}</th>
                </tr>
            </thead>
        </table>
    </div>
    <script>
        $(function() {
            var manageMenusView = new Eae.View.BackendMenusList({
                el : $('#backend_menus')
            });
        });     
    </script>
@stop