<% if @page.mails.present? %> <%= form_for (flash[:mail_message].present?) ? flash[:mail_message] : Refinery::Contacts::MailMessage.new , :url=> deliver_contacts_mail_messages_path do |f| %> <%= render 'refinery/contacts/contacts/success_info' %> <%= render 'refinery/contacts/contacts/error_info' %>
<%= f.label :recipient_id %> <%= f.collection_select :recipient_id, @page.mails, :id, :mail, { :prompt=> ((@page.mails.length > 1) ? true : false) } %>
<%= f.label :name %> <%= f.text_field :name %>
<%= f.label :sender_mail %> <%= f.text_field :sender_mail %>
<%= f.label :subject %> <%= f.text_field :subject%>
<%= f.label :text %> <%= f.text_area :text, :rows=>"7", :cols=>"55" %>
<%= f.label t('.antispam') %> <%= recaptcha_tags %>
<%= f.label " " %> <%= f.submit t('.submit') %>
<% end %> <% end %>