Commit a18017d5 authored by Nigel McNie's avatar Nigel McNie
Browse files

Updated the artefact chooser template for the searching tab stuff.

parent 0d7cbc43
{if $artefacts} {if $searchable}<ul class="artefactchooser-tabs">
<table id="{$datatable}"> <li{if !$smarty.request.s} class="current"{/if}><a href="{$browseurl}">Browse</a></li>
<tbody> <li{if $smarty.request.s} class="current"{/if}><a href="{$searchurl}">Search</a></li>
{$artefacts} </ul>{/if}
</tbody> <div id="artefactchooser-body">
</table> <div class="cb artefactchooser-splitter">
{$pagination} <div id="artefactchooser-searchform"{if !$smarty.request.s} class="hidden"{/if}> {* Use a smarty var, not smarty.request *}
{else} <label><input type="text" class="text" id="artefactchooser-searchfield" name="search" value="{$smarty.request.search|escape}" tabindex="42">
<p>Sorry, no artefacts to choose from</p> <input type="hidden" name="s" value="1">
{/if} <input type="submit" class="submit" id="artefactchooser-searchsubmit" name="action_acsearch_id_{$blockinstance|escape}" value="&raquo;" tabindex="42"></label>
</div>
{if $artefacts}
<table id="{$datatable}" class="artefactchooser-data">
<tbody>
{$artefacts}
</tbody>
</table>
{$pagination}
{else}
<p class="noartefacts">Sorry, no artefacts to choose from</p>
{/if}
</div>
</div>
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