Commit 3a3cf5e3 authored by Nigel McNie's avatar Nigel McNie
Browse files

Fix up the checkbox input to work properly, also send through a value in the...

Fix up the checkbox input to work properly, also send through a value in the '_onpage' array regardless of whether the checkbox is checked or not. Used by the artefactchooser get_value function for processing.
parent 0ba6b572
<tr title="{$artefact->hovertitle|escape}">
<td style="width: 20px;">{if $selectone}<input type="radio" class="radio"id="{$elementname}_{$artefact->id}" name="{$elementname}" value="{$artefact->id|escape}"{if $value == $artefact->id} checked="checked"{/if}>{else}<input type="checkbox">{/if}</td>
<td style="width: 20px;">
{if $selectone}<input type="radio" class="radio"id="{$elementname}_{$artefact->id}" name="{$elementname}" value="{$artefact->id|escape}"{if $value == $artefact->id} checked="checked"{/if}>
{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>
<th><label for="{$elementname}_{$artefact->id}">{if $artefact->description}{$artefact->description|escape}{else}{$artefact->title|escape}{/if}</label></th>
</tr>
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