<vn-card class="summary">
    <h5>
        <a ng-if="::$ctrl.summary.code"
            vn-tooltip="Go to the shelving"
            ui-sref="shelving.card.summary({id: {{::$ctrl.summary.code}}})"
            name="goToSummary">
            <vn-icon-button icon="launch"></vn-icon-button>
        </a>
        <span>{{::$ctrl.summary.code}}</span>
    </h5>
    <vn-horizontal>
        <vn-one>
            <h4>
                <a 
                    ui-sref="shelving.card.basicData({id: $ctrl.summary.id})"
                    target="_self">
                    <span translate vn-tooltip="Go to">Basic data</span>
                </a>
            </h4>
            <vn-vertical>
                <vn-label-value 
                    label="Code" 
                    value="{{::$ctrl.summary.code}}">
                </vn-label-value>
                <vn-label-value 
                    label="Parking" 
                    value="{{::$ctrl.summary.parking.code}}">
                </vn-label-value>
                <vn-label-value
                    label="Priority" 
                    value="{{::$ctrl.summary.priority}}">
                </vn-label-value>
                <vn-label-value label="Worker">
                    <span 
                        ng-click="workerDescriptor.show($event, $ctrl.summary.worker.user.id)"
                        class="link">
                        {{$ctrl.summary.worker.user.nickname}}
                    </span>
                </vn-label-value>
                <vn-check
                    label="Recyclable" 
                    ng-model="$ctrl.summary.isRecyclable" 
                    disabled="true">
                </vn-check>
            </vn-vertical>
        </vn-one>
    </vn-horizontal>
</vn-card>
<vn-worker-descriptor-popover 
    vn-id="workerDescriptor">
</vn-worker-descriptor-popover>