2020-06-12 20:03:43 +00:00
|
|
|
<%- # License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
|
|
|
|
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE -%>
|
2018-03-25 17:30:42 +00:00
|
|
|
<%# use like this: render 'components/radio_set',
|
|
|
|
name: 'ticket_payment_method',
|
|
|
|
radios: ['Credit Card', 'Cash', 'Check'] %>
|
|
|
|
|
|
|
|
<%# you can pass in an optional html_class param for styling %>
|
|
|
|
<%# you can also pass in an optional key for 'def'ing values to it %>
|
|
|
|
<% html_class ||= '' %>
|
|
|
|
<% key ||= false %>
|
|
|
|
|
|
|
|
<% radios.each do |r| %>
|
|
|
|
<div class="<%= html_class %>">
|
|
|
|
<%= render 'components/radio', name: name, label: r, key: key %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|