Skip to content

Commit 0c552fd

Browse files
author
unknown
committed
admin(sidebar): move Workflow Guides to the bottom for Admin and Developer roles
Per product request, Workflow Guides should sit last in both roles' sidebars (it's a help/reference tool, not a primary navigation item). Pure relocation — same PHP guard (!empty($wfgCategoriesAdmin/Dev)), same helper call, same SVG icon, same accordion markup. Just moved the block. - Admin: was between Manage Class Schedule and Feedback Form now sits after Feedback Form (last item). - Developer: was between Manage Categories and Attributes now sits after Bulk AI Covers (last item). Trainer role's Workflow Guides block is unchanged — wasn't mentioned in the request and its position works for that flow.
1 parent 9b04041 commit 0c552fd

1 file changed

Lines changed: 29 additions & 29 deletions

File tree

  • app/design/adminhtml/default/default/template/page

app/design/adminhtml/default/default/template/page/menu.phtml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,23 @@
356356
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"/><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"/></svg>
357357
<span>Manage Class Schedule</span>
358358
</a>
359+
<div class="tools-group<?php echo _so(array('feedbackform','responses')) ?>">
360+
<div class="tools-group-toggle" onclick="toggleToolGroup(this)">
361+
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>
362+
<span>Feedback Form</span>
363+
<svg class="tools-caret" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="6 9 12 15 18 9"/></svg>
364+
</div>
365+
<div class="tools-group-items">
366+
<a href="<?php echo Mage::helper('adminhtml')->getUrl('adminhtml/formbuilder/index') ?>" class="tools-sub-item<?php echo (_so(array('formbuilder')) ? ' active' : '') ?>">
367+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 9h18M9 21V9"/></svg>
368+
<span>Form Builder</span>
369+
</a>
370+
<a href="<?php echo Mage::helper('adminhtml')->getUrl('adminhtml/responses/index') ?>" class="tools-sub-item<?php echo (_so(array('responses')) ? ' active' : '') ?>">
371+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="8" y1="6" x2="21" y2="6"/><line x1="8" y1="12" x2="21" y2="12"/><line x1="8" y1="18" x2="21" y2="18"/><line x1="3" y1="6" x2="3.01" y2="6"/><line x1="3" y1="12" x2="3.01" y2="12"/><line x1="3" y1="18" x2="3.01" y2="18"/></svg>
372+
<span>Responses</span>
373+
</a>
374+
</div>
375+
</div>
359376
<?php
360377
$wfgCategoriesAdmin = Mage::helper('mmd_workflowguides')->getGuidesForRole('admin');
361378
$wfgActiveAdmin = _wfgActiveGuide($wfgCategoriesAdmin, ($_ctrl === 'workflowguides') ? (string) $_req->getParam('guide') : '');
@@ -377,23 +394,6 @@
377394
</div>
378395
</div>
379396
<?php endif; ?>
380-
<div class="tools-group<?php echo _so(array('feedbackform','responses')) ?>">
381-
<div class="tools-group-toggle" onclick="toggleToolGroup(this)">
382-
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>
383-
<span>Feedback Form</span>
384-
<svg class="tools-caret" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="6 9 12 15 18 9"/></svg>
385-
</div>
386-
<div class="tools-group-items">
387-
<a href="<?php echo Mage::helper('adminhtml')->getUrl('adminhtml/formbuilder/index') ?>" class="tools-sub-item<?php echo (_so(array('formbuilder')) ? ' active' : '') ?>">
388-
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 9h18M9 21V9"/></svg>
389-
<span>Form Builder</span>
390-
</a>
391-
<a href="<?php echo Mage::helper('adminhtml')->getUrl('adminhtml/responses/index') ?>" class="tools-sub-item<?php echo (_so(array('responses')) ? ' active' : '') ?>">
392-
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="8" y1="6" x2="21" y2="6"/><line x1="8" y1="12" x2="21" y2="12"/><line x1="8" y1="18" x2="21" y2="18"/><line x1="3" y1="6" x2="3.01" y2="6"/><line x1="3" y1="12" x2="3.01" y2="12"/><line x1="3" y1="18" x2="3.01" y2="18"/></svg>
393-
<span>Responses</span>
394-
</a>
395-
</div>
396-
</div>
397397
</div>
398398

399399
<!-- Marketing sidebar -->
@@ -821,6 +821,18 @@
821821
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"/></svg>
822822
<span>Manage Categories</span>
823823
</a>
824+
<a href="<?php echo Mage::helper('adminhtml')->getUrl('adminhtml/catalog_product_attribute') ?>" class="lms-nav-item">
825+
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="4" y1="21" x2="4" y2="14"/><line x1="4" y1="10" x2="4" y2="3"/><line x1="12" y1="21" x2="12" y2="12"/><line x1="12" y1="8" x2="12" y2="3"/><line x1="20" y1="21" x2="20" y2="16"/><line x1="20" y1="12" x2="20" y2="3"/><line x1="1" y1="14" x2="7" y2="14"/><line x1="9" y1="8" x2="15" y2="8"/><line x1="17" y1="16" x2="23" y2="16"/></svg>
826+
<span>Attributes</span>
827+
</a>
828+
<a href="<?php echo Mage::helper('adminhtml')->getUrl('adminhtml/tag') ?>" class="lms-nav-item">
829+
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"/><line x1="7" y1="7" x2="7.01" y2="7"/></svg>
830+
<span>Funding Tags</span>
831+
</a>
832+
<a href="<?php echo Mage::helper('adminhtml')->getUrl('adminhtml/coursecover/bulk') ?>" class="lms-nav-item<?php echo _so(array('coursecover')) ?>">
833+
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21 15 16 10 5 21"/></svg>
834+
<span>Bulk AI Covers</span>
835+
</a>
824836
<?php
825837
$wfgCategoriesDev = Mage::helper('mmd_workflowguides')->getGuidesForRole('developer');
826838
$wfgActiveDev = _wfgActiveGuide($wfgCategoriesDev, ($_ctrl === 'workflowguides') ? (string) $_req->getParam('guide') : '');
@@ -842,18 +854,6 @@
842854
</div>
843855
</div>
844856
<?php endif; ?>
845-
<a href="<?php echo Mage::helper('adminhtml')->getUrl('adminhtml/catalog_product_attribute') ?>" class="lms-nav-item">
846-
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="4" y1="21" x2="4" y2="14"/><line x1="4" y1="10" x2="4" y2="3"/><line x1="12" y1="21" x2="12" y2="12"/><line x1="12" y1="8" x2="12" y2="3"/><line x1="20" y1="21" x2="20" y2="16"/><line x1="20" y1="12" x2="20" y2="3"/><line x1="1" y1="14" x2="7" y2="14"/><line x1="9" y1="8" x2="15" y2="8"/><line x1="17" y1="16" x2="23" y2="16"/></svg>
847-
<span>Attributes</span>
848-
</a>
849-
<a href="<?php echo Mage::helper('adminhtml')->getUrl('adminhtml/tag') ?>" class="lms-nav-item">
850-
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"/><line x1="7" y1="7" x2="7.01" y2="7"/></svg>
851-
<span>Funding Tags</span>
852-
</a>
853-
<a href="<?php echo Mage::helper('adminhtml')->getUrl('adminhtml/coursecover/bulk') ?>" class="lms-nav-item<?php echo _so(array('coursecover')) ?>">
854-
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21 15 16 10 5 21"/></svg>
855-
<span>Bulk AI Covers</span>
856-
</a>
857857
<!-- URL Rewrite / Search Terms / Reviews & Ratings / Google Sitemap
858858
moved to Marketing role per product decision (they're SEO/content
859859
tools, not developer tools). -->

0 commit comments

Comments
 (0)