houdini/app/views/nonprofits/supporters/_fieldset.html.erb

16 lines
470 B
Text

<!-- partial start: supporters/fieldset -->
<% type ||= 'text' %>
<% cssClass ||= '' %>
<% required ||= false %>
<% placeholder += (required ? ' (required)' : '') %>
<fieldset class='<%= cssClass %>'>
<input class='u-marginBottom--0'
type='<%= type %>'
title="<%= placeholder %>"
name="<%= name %>"
<%= required && "required" %>
placeholder="<%= placeholder%>"
value="<%= profile && profile[name]%>">
</fieldset>
<!-- partial end: supporters/fieldset -->