Add more fields to table

This commit is contained in:
Mark Veidemanis 2022-08-30 12:55:33 +01:00
parent 0d58a3b082
commit 0fc5943c8e
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
3 changed files with 7 additions and 1 deletions

View File

@ -58,6 +58,9 @@ $(document).ready(function(){
"mtype": "off",
"hidden": "off",
"filename": "off",
"file_md5": "off",
"file_ext": "off",
"file_size": "off",
},
};
} else {

View File

@ -106,7 +106,7 @@
<a
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
hx-post="{% url 'modal_drilldown' %}"
hx-vals='{"net": "{{ item.net }}", "nick": "{{ item.nick }}", "channel": "{{ item.channel }}"}'
hx-vals='{"net": "{{ item.net|escapejs }}", "nick": "{{ item.nick|escapejs }}", "channel": "{{ item.channel|escapejs }}"}'
hx-target="#modals-here"
hx-trigger="click"
class="has-text-black">

View File

@ -68,6 +68,9 @@ class DrilldownTable(Table):
tokens = Column()
hidden = Column()
filename = Column()
file_md5 = Column()
file_ext = Column()
file_size = Column()
template_name = "ui/drilldown/table_results.html"
paginate_by = settings.DRILLDOWN_RESULTS_PER_PAGE