Lines 11-17
Link Here
|
11 |
[% INCLUDE 'doc-head-close.inc' %] |
11 |
[% INCLUDE 'doc-head-close.inc' %] |
12 |
[% Asset.css("css/humanmsg.css") | $raw %] |
12 |
[% Asset.css("css/humanmsg.css") | $raw %] |
13 |
<style> |
13 |
<style> |
14 |
#jobpanel,#jobstatus,#jobfailed { display : none; } |
|
|
15 |
span.change-status { font-style:italic; color:#666; display:none; } |
14 |
span.change-status { font-style:italic; color:#666; display:none; } |
16 |
ul.matches li { list-style-type:none; } |
15 |
ul.matches li { list-style-type:none; } |
17 |
</style> |
16 |
</style> |
Lines 253-260
Link Here
|
253 |
[% IF ( can_commit ) %] |
252 |
[% IF ( can_commit ) %] |
254 |
<form method="post" id="import_batch_form"> |
253 |
<form method="post" id="import_batch_form"> |
255 |
<input type="hidden" name="op" value="commit-batch" /> |
254 |
<input type="hidden" name="op" value="commit-batch" /> |
256 |
<input type="hidden" name="runinbackground" value="" /> |
|
|
257 |
<input type="hidden" name="completedJobID" value="" /> |
258 |
<input type="hidden" name="import_batch_id" value="[% import_batch_id | html %]" /> |
255 |
<input type="hidden" name="import_batch_id" value="[% import_batch_id | html %]" /> |
259 |
<fieldset class="action"> |
256 |
<fieldset class="action"> |
260 |
[% IF ( record_type != 'auth' ) %] |
257 |
[% IF ( record_type != 'auth' ) %] |
Lines 282-304
Link Here
|
282 |
<input type="submit" class="button" name="mainformsubmit" value="Import this batch into the catalog" /> |
279 |
<input type="submit" class="button" name="mainformsubmit" value="Import this batch into the catalog" /> |
283 |
</fieldset> |
280 |
</fieldset> |
284 |
</form> <!-- /#import_batch_form --> |
281 |
</form> <!-- /#import_batch_form --> |
285 |
<div id="jobpanel"> |
|
|
286 |
<div id="jobstatus" class="progress_panel">Job progress: <div id="jobprogress"></div> <span id="jobprogresspercent">0</span>%</div> |
287 |
<div id="jobfailed"></div> |
288 |
</div> |
289 |
[% END # /IF can_commit %] |
282 |
[% END # /IF can_commit %] |
290 |
[% IF ( can_revert ) %] |
283 |
[% IF ( can_revert ) %] |
291 |
<form method="post" id="revert_batch_form"> |
284 |
<form method="post" id="revert_batch_form"> |
292 |
<input type="hidden" name="op" value="revert-batch" /> |
285 |
<input type="hidden" name="op" value="revert-batch" /> |
293 |
<input type="hidden" name="runinbackground" value="" /> |
|
|
294 |
<input type="hidden" name="completedJobID" value="" /> |
295 |
<input type="hidden" name="import_batch_id" value="[% import_batch_id | html %]" /> |
286 |
<input type="hidden" name="import_batch_id" value="[% import_batch_id | html %]" /> |
296 |
<fieldset class="action"><input type="submit" class="button" name="mainformsubmit" value="Undo import into catalog" /></fieldset> |
287 |
<fieldset class="action"><input type="submit" class="button" name="mainformsubmit" value="Undo import into catalog" /></fieldset> |
297 |
</form> |
288 |
</form> |
298 |
<div id="jobpanel"> |
|
|
299 |
<div id="jobstatus">Job progress: <div id="jobprogress"></div> <span id="jobprogresspercent">0</span>%</div> |
300 |
<div id="jobfailed"></div> |
301 |
</div> |
302 |
[% END # /IF can_revert %] |
289 |
[% END # /IF can_revert %] |
303 |
</div> |
290 |
</div> |
304 |
[% END %] |
291 |
[% END %] |
Lines 580-590
Link Here
|
580 |
} |
567 |
} |
581 |
}, |
568 |
}, |
582 |
})); |
569 |
})); |
583 |
$("#import_batch_form").on("submit", function() { |
|
|
584 |
return submitBackgroundJob(document.getElementById("import_batch_form")); |
585 |
}); |
586 |
$("#revert_batch_form").on("submit", function() { |
570 |
$("#revert_batch_form").on("submit", function() { |
587 |
return confirm(_("Are you sure you want to undo the import of this batch into the catalog?")) && submitBackgroundJob(document.getElementById("revert_batch_form")); |
571 |
return confirm(_("Are you sure you want to undo the import of this batch into the catalog?")); |
588 |
}); |
572 |
}); |
589 |
[% END %] |
573 |
[% END %] |
590 |
|
574 |
|