Bug 30982: (QA follow-up) Remove redundancy from template
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 23 Sep 2022 08:48:05 +0000 (08:48 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 23 Sep 2022 11:57:51 +0000 (08:57 -0300)
commitddaa92821540cb2384d091cd417e81bf1575751c
treecb1b5cb5f3c6ad14d241af7d9dbb4c8a216358ce
parentb9cab0967e8a0c6216494d3eea63674ab2f9934d
Bug 30982: (QA follow-up) Remove redundancy from template

The template now contains two lists for both status and type:
a TT list and a JS list. The type list already proves that
redundancy leads to bugs. We miss three types at one side:
    Unknown job type 'stage_marc_for_import'
    Unknown job type 'marc_import_commit_batch'
    Unknown job type 'marc_import_revert_batch'

This patch removes the TT list. And gets the status and type
via an additional js call. For that reason I hide the fieldset
until document ready. This can be improved later when needed.

Test plan:
Look at status and type on both job list and detail view.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt