protected function generateBoxLabel($row)
    {
        // Generate the title
        $html = '<span class="title">'.$row->getAdminTitleHtmlAttribute().'</span>';

        // Add link to edit
        $url = '/'.Config::get('decoy.core.dir').'/'.Str::snake($this->name, '-')
            .'/'.$row->getKey().'/edit';
        if (app('decoy.user')->can('update', $url)) {
            $html .= '<a href="'.$url.'"><span class="glyphicon glyphicon-pencil edit"></span></a>';
        }

        // The str_replace fixes Former's auto conversion of underscores into spaces.
        $html = str_replace('_', '&#95;', $html);

        return $html;
    }