Sha256: 9123564b9f891d1403257fff4c42f843608df942d722242921da05952f99c22d
Contents?: true
Size: 1.27 KB
Versions: 96
Compression:
Stored size: 1.27 KB
Contents
<ol class="form" <%= 'style="display: none;"' if columns.collapsed -%>> <% columns.each :for => @record do |column| -%> <% 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 <%= active_scaffold_config_for(column.association.klass).subform.layout %>-sub-form <%= column.css_class unless column.css_class.nil? %>" id="<%= sub_form_id(:association => column.name) %>"> <%= render :partial => form_partial_for_column(column), :locals => { :column => column } -%> </li> <% else -%> <%# AST Begin -%> <% next if active_scaffold_tools_form_columns_to_ignore(column) %> <% make_available_method = "#{column.name}_make_available?" %> <% next if @record.respond_to?(make_available_method) and !@record.send(make_available_method) %> <%# AST End -%> <li class="form-element <%= 'required' if column.required? %> <%= column.css_class unless column.css_class.nil? %>"> <%= render :partial => form_partial_for_column(column), :locals => { :column => column } -%> </li> <% end -%> <% end -%> </ol>
Version data entries
96 entries across 96 versions & 1 rubygems