Sha256: ce22665dfdcc45720377340aa787d229636173cc097996714e589816f8b54e3c
Contents?: true
Size: 1.73 KB
Versions: 4
Compression:
Stored size: 1.73 KB
Contents
<% content_for :headers do %> <%= stylesheet_link_tag "contacts.css", :media => "screen, projection" %> <%= javascript_include_tag 'ui.checkbox'%> <% end %> <%= javascript_tag do %> $(function() { $('input[id^="relation_custom"]').checkBox(); }) function checkBoxEnable(id) { $('div[contain$=' + id + ']').addClass("checked-option"); var sphere = $("#"+id).attr("optionOf"); $(':checkbox[optionOf$='+sphere+']:checked:not(#'+id+')').checkBox('changeCheckStatus', false); } function checkBoxDisable(id) { $('div[contain$='+id+']').removeClass("checked-option"); } <% end %> <div id="contact-form"> <%= form_for @contact do |f| %> <%= hidden_field_tag "contact[relation_ids][]", "gotcha" %> <% current_subject.spheres.each do |sphere| %> <div class="sphere-name"><%= sphere.name %></div> <ul> <% sphere.customs.sort.each do |relation| %> <li> <div contain="<%= dom_id relation %>"> <input id="<%= dom_id relation %>" name="contact[relation_ids][]" value="<%= relation.id %>" type="checkbox" optionOf="<%= sphere.name %>" <%= raw('checked="checked"') if @contact.relation_ids.include?(relation.id) %> /> <label for="<%= dom_id relation %>"> <%= relation.name %> </label> </div> </li> <% end %> </ul> <% end %> <div id="contact-new"> <%= link_to t('contact.type.new'), spheres_path %> </div> <div id="contact-message"> <%= f.label :message %> <%= f.text_area :message, :class =>"new_contact_text_area" %> </div> <div id="contact-submit"> <%= submit_tag t("contact.#{ controller.action_name }.submit"), :class => "button" %> </div> <% end %> </div>
Version data entries
4 entries across 4 versions & 1 rubygems