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

behatnotneeded

Change-Id: Ie58ff61b915753c2de5e9f60cf8d17b345b0b6e4
parent e4760942
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<th class="right nowrap"> <th class="right nowrap">
</th> </th>
{/if} {/if}
{if $showtags && $editmeta} {if ($showtags && $editmeta) || $selectable}
<th class="right nowrap"></th> <th class="right nowrap"></th>
{/if} {/if}
</tr> </tr>
...@@ -105,22 +105,28 @@ ...@@ -105,22 +105,28 @@
<td class="filesize">{tif $file->size ?: ''}</td> <td class="filesize">{tif $file->size ?: ''}</td>
<td class="filedate">{tif $file->mtime ?: ''}</td> <td class="filedate">{tif $file->mtime ?: ''}</td>
{/if} {/if}
{if $editmeta || $selectable}
{if $editmeta}
<td class="right s nowrap text-right"> <td class="right s nowrap text-right">
{if $file->locked} <div class="btn-group">
<span class="dull text-muted">{str tag=Submitted section=view}</span> {if $selectable && ($file->artefacttype != 'folder' || $selectfolders) && $publishable && !$file->isparent}
{elseif !$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}">
{if !isset($file->can_edit) || $file->can_edit !== 0} <span class="icon icon-check icon-lg" role="presentation" aria-hidden="true"></span>
<button name="{$prefix}_edit[{$file->id}]" class="btn btn-default btn-xs"> <span class="sr-only">{str tag=select}</span>
<span class="icon icon-pencil icon-lg" role="presentation" aria-hidden="true"></span>
<span class="sr-only">{$edittext|escape:html|safe}</span>
</button> </button>
{/if}
{/if} {/if}
{if $selectable && ($file->artefacttype != 'folder' || $selectfolders) && $publishable && !$file->isparent} {if $editmeta}
<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 $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} {/if}
</div>
</td> </td>
{/if} {/if}
<!-- Ensure space for 3 buttons (in the case of a really long single line string in a user input field --> <!-- 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