Commit 231dcf4b 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

behatnotneeded

Change-Id: Ie58ff61b915753c2de5e9f60cf8d17b345b0b6e4
parent cbb2b25b
......@@ -18,6 +18,9 @@
<th class="right nowrap">
</th>
{/if}
{if ($showtags && $editmeta) || $selectable}
<th class="right nowrap"></th>
{/if}
</tr>
</thead>
......@@ -99,22 +102,28 @@
<td class="filesize">{tif $file->size ?: ''}</td>
<td class="filedate">{tif $file->mtime ?: ''}</td>
{/if}
{if $editmeta}
{if $editmeta || $selectable}
<td class="right s nowrap text-right">
{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">
<span class="icon icon-pencil icon-lg" role="presentation" aria-hidden="true"></span>
<span class="sr-only">{$edittext|escape:html|safe}</span>
<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>
</button>
{/if}
{/if}
{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}" />
{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" 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>
</button>
{/if}
{/if}
{/if}
</div>
</td>
{/if}
<!-- 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