<div class="starter-template">
    <h1>{{model}} <a href="#/crud/{{model}}/add"><button type="button" class="btn btn-primary">Ekle</button></a></h1>
    <div class="row" ng-if="!nobjects[1]">
            <div class="col-md-12">
                <p class="no-content">Listelenecek içerik yok.</p>
            </div>
        </div>
    <div class="tablescroll" ng-if="nobjects[1]">
        <table class="table table-bordered" style="background-color:#fff;">
            <thead>
            <tr>
                <th colspan="2">
                    <label>
                        <input type="checkbox" style="zoom:1.5; margin:5px 0 0 8px;">
                        Hepsini Seç
                    </label>
                </th>
                <th ng-repeat="value in nobjects[0]" ng-if="nobjects[0]!='-1'">{{ value }}</th>
                <th ng-if="nobjects[0]=='-1'">{{ model }}</th>
                <th>action</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="object in nobjects" ng-if="$index>0">
                <td width="60">
                    <label>
                        <input type="checkbox" style="zoom:1.5; margin:5px 0 0 8px;">
                    </label>
                </td>
                <th scope="row" style="text-align:center">{{$index}}</th>
                <td ng-repeat="k in object track by $index" ng-if="nobjects[0]=='-1' && $index>0">
                    <a ng-href="#/crud/{{model}}/{{object[0]}}">{{object[1]}}</a>
                </td>

                <td ng-repeat="(key,value) in object track by $index" ng-if="nobjects[0]!='-1' && $index>0">
                    <a ng-href="#/crud/{{model}}/{{object[0]}}" ng-if="$index==1">{{object[key]}}</a>
                    <span ng-if="$index!=1">{{object[key]}}</span>
                </td>
                <td>
                    <a ng-href="#/crud/{{model}}/edit/{{object[0]}}">Edit</a><br>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <br/>
    <hr/>

    <div class="btn-group" ng-if="nobjects[1]">
        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true"
                aria-expanded="false">
            İşlemler <span class="caret"></span>
        </button>
        <ul class="dropdown-menu">
            <li><a href="">İşlem 1</a></li>
            <li><a href="">İşlem 2</a></li>
            <li><a href="">İşlem 3</a></li>
            <li role="separator" class="divider"></li>
            <li><a href="">İşlem 4</a></li>
        </ul>
    </div>

    <hr>

</div>