Sha256: ec5ac697dfd3144c570617341dd4ebce28f1a4a0687c11c9f9adba0c790b4dbe

Contents?: true

Size: 1.31 KB

Versions: 2

Compression:

Stored size: 1.31 KB

Contents

<tr id="<%%= "edit-<%= singular_name %>-#{@<%= singular_name %>.id}" %>" class="edit" style="display: none;">
	<td colspan="<%%= num_columns %>">
		<%%= form_remote_tag :url => { :controller => '<%= controller_name %>', :action => 'update', :id => @<%= singular_name %> },
  		:loading => "AjaxScaffold.updateOnLoading(request,'<%= singular_name %>',#{@<%= singular_name %>.id});", 
			:success => "AjaxScaffold.updateOnSuccess(request,'<%= singular_name %>',#{@<%= singular_name %>.id});", 
			:failure => "AjaxScaffold.updateOnFailure(request,'<%= singular_name %>',#{@<%= singular_name %>.id});", 
			:complete => "AjaxScaffold.updateOnComplete(request,'<%= singular_name %>',#{@<%= singular_name %>.id});", 
			:html => { :id => "edit-<%= singular_name %>-#{@<%= singular_name %>.id}-form" } %>
  	<h4>Edit <%= Inflector.titleize(singular_name) %></h4>
  	
  	<div id="<%%= "update-<%= singular_name %>-#{@<%= singular_name %>.id}-errors" %>" style="display: none;" ></div>
  	
  	<%%= render :partial => 'form' %>
  	
  	<p>
  		<%%= submit_tag "Update", :class => "submit" %>
  		<%%= link_to_function "Cancel", "AjaxScaffold.updateOnCancel('<%= singular_name %>',#{@<%= singular_name %>.id});" %>
  		<%%= loading_indicator_tag '<%= singular_name %>', "update-#{@<%= singular_name %>.id}" %>
  	</p>
  	<%%= end_form_tag %>
	</td>
</tr>

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
ajax_scaffold_generator-2.1.0 templates/view_edit.rhtml
ajax-scaffold-generator-2.1.0 templates/view_edit.rhtml