mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-18 09:52:17 +09:00
issue 2484, added a checkbox support on layout xml
git-svn-id: http://xe-core.googlecode.com/svn/branches/luminous@11480 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
36f01bde77
commit
de5b8e7478
1 changed files with 6 additions and 0 deletions
|
|
@ -96,6 +96,12 @@
|
|||
<option loop="$var->options => $key, $val" value="{$key}" selected="selected"|cond="$key == $var->value">{$val->val}</option>
|
||||
</select>
|
||||
|
||||
<block cond="$var->type == 'checkbox'">
|
||||
<block loop="$var->options => $key, $val">
|
||||
<label><input type="checkbox" name="{$name}[]" value="{$key}" checked="checked"|cond="@in_array($key, $var->value)" /> {$val->val}</label>
|
||||
</block>
|
||||
</block>
|
||||
|
||||
<block cond="$var->type == 'radio'">
|
||||
<block loop="$var->options => $key, $val">
|
||||
<block cond="$val->thumbnail">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue