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