Changeset 7
- Timestamp:
- 08/29/2006 08:55:19 AM (2 years ago)
- Files:
-
- trunk/auto-admin/lib/auto_admin_django_theme.rb (modified) (1 diff)
- trunk/auto-admin/themes/django/views/edit.rhtml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/auto-admin/lib/auto_admin_django_theme.rb
r1 r7 110 110 was_first, @first = @first, false 111 111 if was_first 112 link = link_to( yield, :action => 'edit', :model => model_name, :id => @object )112 link = link_to( yield, :action => 'edit', :model => model_name, :id => @object.id ) 113 113 %(<th class="#{klass}">#{link}</th>) 114 114 else trunk/auto-admin/themes/django/views/edit.rhtml
r1 r7 7 7 8 8 admin_form_for params[:model], @object, 9 :url => { :action => 'save', :model => params[:model], :id => @object } do |builder|9 :url => { :action => 'save', :model => params[:model], :id => @object.id } do |builder| 10 10 11 11 builder.outer do … … 19 19 <div class="submit-row"> 20 20 <% unless @object.new_record? %> 21 <p class="float-left"><%= link_to 'Delete', { :action => 'delete', :model => params[:model], :id => @object }, { :class => 'deletelink', :post => true, :confirm => "Are you sure you want to delete \"#{@object.to_label}\"?" } %></p>21 <p class="float-left"><%= link_to 'Delete', { :action => 'delete', :model => params[:model], :id => @object.id }, { :class => 'deletelink', :post => true, :confirm => "Are you sure you want to delete \"#{@object.to_label}\"?" } %></p> 22 22 <% end %> 23 23 <input type="submit" value="Save and add another" name="_addanother" />
