Better i/o for editing metadata in preview

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
2024-11-02 09:03:32 -07:00
parent 6bdde87f8a
commit 381eda0574
2 changed files with 95 additions and 20 deletions

View File

@@ -76,11 +76,18 @@ class GlModelHooks {
$previewViewer = $mvTransform->toHtml([ 'preview' => true]);
$addButtonAttr = array(
'class' => 'AddHotspot',
'class' => 'preview-button AddHotspot',
'onclick' => 'readyAddHotspot()'
);
$readButtonAttr = array(
'class' => 'preview-button ReadHotspots',
'onclick' => 'readMetadata()'
);
$addHsButton = array(
Html::rawElement('button',$addButtonAttr,'Add a new hotspot')
Html::rawElement('button',$addButtonAttr,'Add a new hotspot'),
Html::rawElement('button',$readButtonAttr,'Update hotspots')
);
$previewHTML = Html::rawElement('div',NULL,$previewViewer.implode($addHsButton));