Skip to content
GitLab
Menu
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
5fe72aec
Commit
5fe72aec
authored
Oct 26, 2007
by
Nigel McNie
Browse files
Make the image itself a label for the radio button, so you can click the image to select it.
parent
e0cae046
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/theme/default/templates/form/artefactchooser-element.tpl
View file @
5fe72aec
...
...
@@ -4,6 +4,6 @@
{
else
}
<input
type=
"checkbox"
id=
"
{
$elementname
}
_
{
$artefact
->
id
}
"
name=
"
{
$elementname
}
[
{
$artefact
->
id
}
]"
{
if
$value
&&
in_array
(
$artefact
->
id
,
$value
)
}
checked=
"checked"
{/
if
}
>
<input
type=
"hidden"
name=
"
{
$elementname
}
_onpage[]"
value=
"
{
$artefact
->
id
}
"
>
{/
if
}
</td>
<td
style=
"width: 22px;"
><img
src=
"
{
$artefact
->
icon
|
escape
}
"
alt=
"*"
></td>
<td
style=
"width: 22px;"
><
label
for=
"
{
$elementname
}
_
{
$artefact
->
id
}
"
><
img
src=
"
{
$artefact
->
icon
|
escape
}
"
alt=
"*"
></
label></
td>
<th><label
for=
"
{
$elementname
}
_
{
$artefact
->
id
}
"
>
{
if
$artefact
->
description
}{
$artefact
->
description
|
escape
}{
else
}{
$artefact
->
title
|
escape
}{/
if
}
</label></th>
</tr>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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