File tree Expand file tree Collapse file tree
src/simmate/website/data_explorer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -362,6 +362,12 @@ def get_submission_redirect(self):
362362
363363 # -------------------------------------------------------------------------
364364
365+ def get_context (self ):
366+ context = super ().get_context ()
367+ if self .entries is not None :
368+ context ["entries" ] = self .entries
369+ return context
370+
365371 @classmethod
366372 def get_extra_table_context (cls , request ) -> dict :
367373 return {} # default to nothing extra
Original file line number Diff line number Diff line change 11{% extends "htmx/form_base.html" %}
22{% block form %}
3- {% if component. entries %}
3+ {% if entries %}
44 {% block search_results_table %}
55 {% if component.report %}
66 < div id ="search_results_report ">
5858 </ tr >
5959 </ thead >
6060 < tbody >
61- {% for entry in component. entries %}
61+ {% for entry in entries %}
6262 < tr >
6363 {% if component.enable_select %}
6464 < td >
8787 </ div >
8888 </ form >
8989 {% endblock %}
90- {% include "data_explorer/pagination.html" with page=component.page pagination_urls=component.pagination_urls %}
90+ {% if component.page %}
91+ {% include "data_explorer/pagination.html" with page=component.page pagination_urls=component.pagination_urls %}
92+ {% endif %}
9193 {% else %}
9294 < div class ="alert alert-danger d-flex align-items-center p-2 " role ="alert ">
9395 < div >
You can’t perform that action at this time.
0 commit comments