Sha256: 961a47998ad36d47da7a421a5f5fffc36a26a50e3b0c75d5fb04e95140def232

Contents?: true

Size: 833 Bytes

Versions: 4

Compression:

Stored size: 833 Bytes

Contents

<h2><%=@inquiry_form.name%></h2>
<%=@inquiry_form.content.html_safe if !@inquiry_form.content.blank?%>

<%=form_for :spud_inquiry, :url => "/contact/inquire" do |f|%>
<fieldset>
<%=f.hidden_field :spud_inquiry_form_id,:value => @inquiry_form.id%>
<ol>
	<li>
		<%=f.label :email%>
		<%=f.text_field :email%>
	</li>
	<%@inquiry_form.spud_inquiry_form_fields.each do |field|%>
		<li>
			<%=f.label field.name%>
			
			<%=case field.field_type
				when '0'
					f.text_field field.name,:value => field.default_value
				when '1'
					f.check_box field.name
				when '2'
					f.text_area field.name
				when '3'
					f.select field.name,field.options.split(",").collect {|opt| [opt,opt]},:include_blank => true
			end%>
		</li>
	<%end%>
	<li style="text-align:center;">
	<%=f.submit "Submit Inquiry"%>
	</li>	
</ol>

</fieldset>
	
<%end%>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spud_inquiries-0.3.3 app/views/contacts/show.html.erb
spud_inquiries-0.3.2 app/views/contacts/show.html.erb
spud_inquiries-0.3.1 app/views/contacts/show.html.erb
spud_inquiries-0.3.0 app/views/contacts/show.html.erb