Sha256: 26940c6b4f67dcdb320d57eca1974a3598c7e81a2883313bd6955645815d1030
Contents?: true
Size: 1023 Bytes
Versions: 3
Compression:
Stored size: 1023 Bytes
Contents
<% column_count ||= begin config = if nested? and (nested.singular_association? || action_name == 'index') active_scaffold_config_for(nested.parent_model) else active_scaffold_config end config.list.columns.count + 1 end %> <%# nested_id, allows us to remove a nested scaffold programmatically %> <tr class="inline-adapter" id="<%= element_row_id :action => :nested %>"> <td colspan="<%= column_count %>" class="inline-adapter-cell"> <div class="<%= "#{params[:action]}-view" if params[:action] %> <%= "#{nested? ? nested.name : id_from_controller(params[:controller])}-view" %> view"> <%= link_to(as_(:close), '', :class => 'inline-adapter-close as_cancel', :remote => true, :title => as_(:close)) -%> <%= payload -%> </div> </td> </tr> <%= javascript_tag("var action_link = ActiveScaffold.ActionLink.get('#{element_row_id(:action => :nested)}'); if (action_link) action_link.update_flash_messages('#{escape_javascript(render(:partial => 'messages').strip)}');") %>
Version data entries
3 entries across 3 versions & 1 rubygems