Sha256: 1cd88de77414782fa2c33e86808f9aacaa6bb66b3053e5129f468b1251469c28
Contents?: true
Size: 1.61 KB
Versions: 3
Compression:
Stored size: 1.61 KB
Contents
<%% # The following is used when the browser doesn't have javascript enabled %> <%% classAttr = cycle("", "class=\"even\"") %> <%% @options = params.merge(:controller => '<%= controller_file_path %>', :action => "view", :id => <%= singular_name %>.send("#{<%= model_name %>.primary_key}")) %> <tr <%%= classAttr %> id="<%%= element_row_id(@options) %>" <%%= "style=\"display: none;\"" if hidden %>> <%% for scaffold_column in scaffold_columns %> <%% column_value = eval(scaffold_column.eval) rescue nil %> <td class="<%%= column_class(scaffold_column.name, column_value, current_sort(params)) %>" > <%%= format_column(column_value) %> </td> <%% end %> <td class="actions"> <table cellpadding="0" cellspacing="0"> <tr> <td class="indicator-container"> <%%= loading_indicator_tag(@options) %> </td> <td> <%% edit_options = @options.merge(:action => 'edit') %> <%%= link_to_remote "Edit", { :url => edit_options, :loading => "Element.show('#{loading_indicator_id(@options)}');" }, { :href => url_for(edit_options) } %> </td> <td> <%% delete_options = @options.merge(:action => 'destroy') %> <%%= link_to_remote "Delete", { :url => delete_options, :confirm => 'Are you sure?', :loading => "Element.show('#{loading_indicator_id(@options)}');" }, { :href => url_for( delete_options ) } %> </td> </tr> </table> </td> </tr>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ajax_scaffold_generator-3.1.2 | templates/partial_item.rhtml |
ajax_scaffold_generator-3.1.3 | templates/partial_item.rhtml |
ajax_scaffold_generator-3.1.4 | templates/partial_item.rhtml |