implemented job archiving (via a Setting, and just viewing recent or all)

This commit is contained in:
2022-01-13 23:11:21 +11:00
parent 3e67c9c27f
commit a2fb877f12
6 changed files with 37 additions and 12 deletions

View File

@@ -86,5 +86,14 @@
for(el in completed_rows)
$('#job_tbl_body').append(completed_rows[el])
{% endif %}
{% if 'recent' in page_title %}
tr=`
<tr>
<td><button type="button" class="btn btn-outline-info my-0 py-1" onClick="document.body.innerHTML+='<form id=_fm method=POST action={{url_for('jobs')}}></form>';document.getElementById('_fm').submit();">Show all jobs</button>
</td>
</tr>`
$('#job_tbl_body').append( tr )
{% endif %}
</script>
{% endblock main_content %}