Sha256: aac9103f081bdf07f326301f446d0dd34cb641d7d5a3eacbe0d521a9ff30105e
Contents?: true
Size: 912 Bytes
Versions: 4
Compression:
Stored size: 912 Bytes
Contents
<ol class="form" <%= 'style="display: none;"' if columns.collapsed -%>> <% columns.each :for => @record do |column| -%> <% if column.for_activity_type?(@record.activity_type) -%> <% if is_subsection? column -%> <li class="sub-section"> <h5><%= column.label %> (<%= link_to_visibility_toggle(:default_visible => !column.collapsed) -%>)</h5> <%= render :partial => 'form', :locals => { :columns => column } %> </li> <% elsif is_subform? column and !override_form_field?(column) -%> <li class="sub-form" id="<%= sub_form_id(:association => column.name) %>"> <%= render :partial => form_partial_for_column(column), :locals => { :column => column } -%> </li> <% else -%> <li class="form-element <%= 'required' if column.required? %>"> <%= render :partial => form_partial_for_column(column), :locals => { :column => column } -%> </li> <% end -%> <% end -%> <% end -%> </ol>
Version data entries
4 entries across 4 versions & 1 rubygems