mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-03 07:55:22 -04:00
Move the annotation/training interface from an inline panel in event.php to a dedicated ?view=training screen. This cleanly separates the training workflow from event playback and enables switching between events without a full page reload. - Add web/skins/classic/views/training.php as a standalone training view - Add web/skins/classic/views/js/training.js.php with view-specific init and translations (moved from event.js.php) - Add switchEvent() method to AnnotationEditor for in-place event switching when clicking thumbnails or edit buttons in the browse panel - Update page title, URL bar, and back button on event switch - Change annotate button in event.php from toggle to navigation link - Update objdetect modal to link to training view - Remove annotation panel HTML and training init code from event view - Fix pre-existing broken </span tag on toggleZonesButton in event.php - Add training view layout CSS, inline browse panel styles Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
33 lines
1.1 KiB
PHP
33 lines
1.1 KiB
PHP
<?php
|
|
// This is the HTML representing the Object Detection modal on the Events page
|
|
|
|
$eid = isset($_REQUEST['eid']) ? $_REQUEST['eid'] : '';
|
|
|
|
if ( !validInt($eid) ) {
|
|
ZM\Error("Invalid event id: $eid");
|
|
return;
|
|
}
|
|
|
|
?>
|
|
<div id="objdetectModal" class="modal" tabindex="-1">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title">Object Detection</h5>
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<img src="?view=image&eid=<?php echo $eid ?>&fid=objdetect">
|
|
</div>
|
|
<div class="modal-footer">
|
|
<?php if (defined('ZM_OPT_TRAINING') and ZM_OPT_TRAINING) { ?>
|
|
<a href="?view=training&eid=<?php echo $eid ?>" class="btn btn-primary mr-auto"><i class="fa fa-crosshairs"></i> <?php echo translate('ObjectTraining') ?></a>
|
|
<?php } ?>
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|