Sha256: 248113edd5dc95c3c1379636bd333bc936b329589b7397e2dba795f868274d10

Contents?: true

Size: 1.19 KB

Versions: 25

Compression:

Stored size: 1.19 KB

Contents

<div id="contact-form">
  <h3>adjudica roles</h3>
  <%= form_for @contact do |f| %>
    <%= hidden_field_tag "contact[relation_ids][]", "0" %>

    <% if @contact.errors.any? %>
      <div id="error_explanation">
        <h2><%= t 'contact.error_count', :count => @contact.errors.count %></h2>

        <ul>
        <% @contact.errors.full_messages.each do |msg| %>
          <li><%= msg %></li>
        <% end %>
        </ul>
      </div>
    <% end %>

    <ul>
    <% current_subject.relation_customs.each do |relation| %>
      <li>
      <%= check_box_tag "contact[relation_ids][]", relation.id, f.object.relation_ids.include?(relation.id), :id => "contact_relation_ids_#{ relation.id }" %><%= label_tag "contact_relation_ids_#{ relation.id }", relation.name %>
      </li>
    <% end %>

    <div id="relation-new">
      <%= link_to t('contact.type.new'), relation_customs_path %>
    </div>
    </ul>

    <div id="contact-message">
      <%= f.label :message,:class =>"name_text_area" %>
      <%= f.text_area :message, :class =>"new_contact_text_area" %>
    </div>

    <div id="contact-submit">
      <%= submit_tag t("contact.#{ f.object.action }.submit"), :class => "btn" %>
    </div>
  <% end %>
</div>

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
social_stream-base-2.0.0.beta3 app/views/contacts/_form.html.erb
social_stream-2.0.0.beta2 base/app/views/contacts/_form.html.erb
social_stream-base-2.0.0.beta2 app/views/contacts/_form.html.erb
social_stream-2.0.0.beta1 base/app/views/contacts/_form.html.erb
social_stream-base-2.0.0.beta1 app/views/contacts/_form.html.erb