Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
a18017d5
Commit
a18017d5
authored
Nov 13, 2007
by
Nigel McNie
Browse files
Updated the artefact chooser template for the searching tab stuff.
parent
0d7cbc43
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/theme/default/templates/form/artefactchooser.tpl
View file @
a18017d5
{
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=
"»"
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>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment