diff --git a/app/controllers/admin/property_hires_controller.rb b/app/controllers/admin/property_hires_controller.rb index 8b2f6c7..41ebbf3 100644 --- a/app/controllers/admin/property_hires_controller.rb +++ b/app/controllers/admin/property_hires_controller.rb @@ -11,6 +11,9 @@ class Admin::PropertyHiresController < OrbitAdminController .with_tags(filters("tag")) @properties = search_data(@properties,[:title]).page(params[:page]).per(10) + if request.xhr? + render :partial => "index" + end end def fields_display_order uid = params[:id].split("-").last diff --git a/app/views/admin/property_hires/_index.html.erb b/app/views/admin/property_hires/_index.html.erb new file mode 100644 index 0000000..7aac958 --- /dev/null +++ b/app/views/admin/property_hires/_index.html.erb @@ -0,0 +1,46 @@ +
+ <% if can_edit_or_delete?(property) %>
+ <%= property.title %>
+
+
+ <% else %>
+ <%= property.title %>
+ <% end %>
+
+ |
+ + <%= property.category.title rescue nil %> + | ++ <%= property.get_location_name %> + | ++ <% if property.can_be_hired %> + Yes + <% else %> + No + <% end %> + | +
- <% if can_edit_or_delete?(property) %>
- <%= property.title %>
-
-
- <% else %>
- <%= property.title %>
- <% end %>
-
- |
- - <%= property.category.title rescue nil %> - | -- <%= property.get_location_name %> - | -- <% if property.can_be_hired %> - Yes - <% else %> - No - <% end %> - | -