Sha256: cdf6b1644a844bbbec7ad794d787f62493c4ddda618624a5ce336b0dc66e0f05

Contents?: true

Size: 1.61 KB

Versions: 1

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 %>.id) %>

<tr <%%= classAttr %> id="<%%= element_row_id(@options) %>" <%%= "style=\"display: none;\"" if hidden %>>
	<%% for column in <%= model_name %>.content_columns %>
	  <%% column_value = column_value(<%= singular_name %>, column) %>
	  <td class="<%%= column_class(column.name, column_value, session[params[:scaffold_id]][:sort]) %>" >
	    <%%= !column_empty?(column_value) ? 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

1 entries across 1 versions & 1 rubygems

Version Path
ajax_scaffold_generator-3.0.4 templates/partial_item.rhtml