<div>
    <button class="button" ng:click="slektujKarte()">{{$resource('karta.izbor')}}</button>
    <ul>
        <li ng:repeat="selected in selectedKarte">{{selected}}</li>
    </ul>
    <div qn:dialog="ui.dialogSelect" style="padding: 0;">
        <div class="toolbar">
            <div class="table">
                <table class="table table-hover" id="treeLabels">
                    <thead>
                        <tr>
                            <th class="icon">&nbsp;</th>
                            <th>Класификације</th>
                            <th ng:show="classification.IsHierarchy">{{$resource('classifications.children')}}</th>
                            <th>&nbsp;</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr ng:repeat="label in labels" data-tt-id="{{label.ID}}" data-tt-parent-id="{{label.ParentID}}">
                            <td class="icon"><span class="circle circle-small" style="background: {{label.Color}}"></span></td>
                            <td class="title" ng:click="selectedLabel(label)">
                                <div class="inner">
                                    <h2>{{label.Name}}</h2>
                                </div>
                            </td>
                            <td ng:show="classification.IsHierarchy">{{label.Children.length}}</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <div style="height: 400px; overflow: auto;">
            <h2>Локације</h2>
            <ul qn:selector="options" ng:model="karte" class="thumbnails">
                <li ng:repeat="karta in karte" class="ui-state-default" style="padding: 5px">
                    {{karta.Title}}
                </li>
            </ul>
        </div>
        <div style="margin-top: 15px" ng:show="!checked">
            <button class="button lightblue" ng:click="doneSelection()"><i class="icon-ok"></i> {{$resource('images.save')}}</button> &nbsp; <button class="button" ng:click="cancelSeletion()">Cancel</button>
        </div>
    </div>
</div>
