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

Version Path
six-updater-web-0.23.3 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb
six-updater-web-0.23.2 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb
six-updater-web-0.23.1 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb
six-updater-web-0.23.0 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb
six-updater-web-0.22.4 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb
six-updater-web-0.22.3 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb
six-updater-web-0.22.2 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb
six-updater-web-0.22.1 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb
six-updater-web-0.22.0 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb
six-updater-web-0.21.6 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb
six-updater-web-0.21.5 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb
six-updater-web-0.21.4 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb
six-updater-web-0.21.3 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb
six-updater-web-0.21.2 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb
six-updater-web-0.21.1 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb
six-updater-web-0.21.0 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb
six-updater-web-0.20.8 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb
six-updater-web-0.20.7 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb
six-updater-web-0.20.5 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb
six-updater-web-0.20.4 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb