Sha256: a21ba5295aa034a777847a4d1326282f65a67123b90ac74da434b0c94b1ee4bb

Contents?: true

Size: 1020 Bytes

Versions: 7

Compression:

Stored size: 1020 Bytes

Contents

<ol id="<%= config_list_ol_id %>" class="form">
<%  hidden_columns =  if !config_list_params.nil? && config_list_params.is_a?(Array)
      config_list = config_list_params
      active_scaffold_config.list.columns.collect_visible.select{|column| config_list.exclude? column.name}
    else
      []
    end %>
<% list_columns.concat(hidden_columns).each do |c| %>
  <li class="form-element sortable">
    <%= check_box_tag 'config_list[]', c.name.to_s, (config_list_params.nil? ? true : config_list_params.include?(c.name)), {:id => nil}%>
    <label for="update_table_from"><%= c.label%></label>
  </li>
<% end %>
</ol>
<% if ActiveScaffold.js_framework == :prototype %>
<%= sortable_element config_list_ol_id, {:tag => 'li', :url => nil} %>
<% elsif ActiveScaffold.js_framework == :jquery %>
  <% reorder_params = {}
     options = {:update => false} %>
       <%= javascript_tag "ActiveScaffold.sortable('#{config_list_ol_id}', #{controller_name.to_json}, #{options.to_json}, #{reorder_params.to_json});" %>
<% end %>

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
active_scaffold_config_list_vho-3.1.2 frontends/default/views/_show_config_list_form_body.html.erb
active_scaffold_config_list-3.2.0 app/views/active_scaffold_overrides/_show_config_list_form_body.html.erb
active_scaffold_config_list_vho-3.1.1 frontends/default/views/_show_config_list_form_body.html.erb
active_scaffold_config_list_vho-3.1.0 frontends/default/views/_show_config_list_form_body.html.erb
active_scaffold_config_list_vho-3.0.2 frontends/default/views/_show_config_list_form_body.html.erb
active_scaffold_config_list_vho-3.0.1 frontends/default/views/_show_config_list_form_body.html.erb
active_scaffold_config_list_vho-3.0.0 frontends/default/views/_show_config_list_form_body.html.erb