AJAX based django endless-pagination has 2 templates: 1. The main issue_detail.html 2. The pagination template issue_detail_page.html
In the base.html template, right before extra_header block I have:
{% inplace_static %}
I try to do the following in the issue_detail_page.html:
{% load endless %}
{% load inplace_edit %}
{% lazy_paginate 2 completed_actions using "completed_actions_page" %}
{% for action in completed_actions %}
<tr>
<td><a href="{% url 'action_detail' issuelist.id issue.id action.id %}">{{action.title}}</a></td>
<td>{% inplace_edit "action.owner" %}</td>
<td>{% inplace_edit "action.event_date" %}</td>
<td>{% inplace_edit "action.state" %}</td>
</tr>
{% endfor %}
{% show_more %}
But the Ajax loaded pages (table data) are not editable.
I checked the HTML and found that the first/original table data is:
<span class="inplaceedit textinplaceedit enable">
Whereas the page later table data loaded using AJAX by clicking on the "more" link is:
<span class="inplaceedit textinplaceedit">
Can someone please suggest on how to make this work?