new.rhtml
542 Bytes
<h1><%= _('Contact %s') % profile.name %></h1>
<%= error_messages_for 'contact' %>
<% labelled_form_for :contact, @contact do |f| %>
<%= hidden_field_tag 'contact[target_id]', profile.id %>
<%= hidden_field_tag 'contact[requestor_id]', (logged_in? ? current_user.person.id : nil) %>
<%= required f.text_field(:subject) %>
<%= required f.text_field(:email) %>
<%= f.text_field :city_and_state %>
<%= f.text_field :phone %>
<%= required f.text_area(:message, :rows => 5) %>
<%= submit_button(:send, _('Send')) %>
<% end %>