Commit 6d204758 authored by Pat Kira's avatar Pat Kira Committed by Robert Lyon

bug 1517478 - Add select button to filebrowser

Allowing the select button to appear on group/institution places


Change-Id: Ie58ff61b915753c2de5e9f60cf8d17b345b0b6e4
parent e4760942
......@@ -18,7 +18,7 @@
<th class="right nowrap">
{if $showtags && $editmeta}
{if ($showtags && $editmeta) || $selectable}
<th class="right nowrap"></th>
......@@ -105,22 +105,28 @@
<td class="filesize">{tif $file->size ?: ''}</td>
<td class="filedate">{tif $file->mtime ?: ''}</td>
{if $editmeta}
{if $editmeta || $selectable}
<td class="right s nowrap text-right">
<div class="btn-group">
{if $selectable && ($file->artefacttype != 'folder' || $selectfolders) && $publishable && !$file->isparent}
<button type="submit" class="btn btn-xs btn-default" name="{$prefix}_select[{$file->id}]" id="{$prefix}_select_{$file->id}" title="{str tag=select}">
<span class="icon icon-check icon-lg" role="presentation" aria-hidden="true"></span>
<span class="sr-only">{str tag=select}</span>
{if $editmeta}
{if $file->locked}
<span class="dull text-muted">{str tag=Submitted section=view}</span>
{elseif !$file->isparent}
{if !isset($file->can_edit) || $file->can_edit !== 0}
<button name="{$prefix}_edit[{$file->id}]" class="btn btn-default btn-xs">
<button name="{$prefix}_edit[{$file->id}]" class="btn btn-default btn-xs" title="{str tag=edit}">
<span class="icon icon-pencil icon-lg" role="presentation" aria-hidden="true"></span>
<span class="sr-only">{$edittext|escape:html|safe}</span>
{if $selectable && ($file->artefacttype != 'folder' || $selectfolders) && $publishable && !$file->isparent}
<input type="submit" class="sr-only" name="{$prefix}_select[{$file->id}]" id="{$prefix}_select_{$file->id}" value="{str tag=select}" title="{str tag=select}" />
<!-- Ensure space for 3 buttons (in the case of a really long single line string in a user input field -->
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment