Skip to content

Instantly share code, notes, and snippets.

@frogggggi
Forked from vgrish/tpl.msOptions.radio.tpl
Created April 9, 2021 09:23
Show Gist options
  • Save frogggggi/0a670f92d8186e49f288f72125e3a6f1 to your computer and use it in GitHub Desktop.
Save frogggggi/0a670f92d8186e49f288f72125e3a6f1 to your computer and use it in GitHub Desktop.
{foreach $options as $name => $values}
<div class="sm-text"><b>{('ms2_product_' ~ $name) | lexicon}</b></div>
{foreach $values as $value index=$index}
<label>
<input type="radio" value="{$values[$index]}" name="options[{$name}]" {if $index == 0}checked="checked"{/if}/>
{$values[$index]}
</label>
{/foreach}
{/foreach}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment