Skip to content

Instantly share code, notes, and snippets.

@vgrish
Created December 5, 2016 08:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save vgrish/46de7e0c9eb453a4ccb77064b3b78916 to your computer and use it in GitHub Desktop.
Save vgrish/46de7e0c9eb453a4ccb77064b3b78916 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