-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#22776 - Polished version of menu configurator admin area
- Loading branch information
Showing
13 changed files
with
269 additions
and
667 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
<uiComponent name="snowmenu_menu_list"/> | ||
</referenceContainer> | ||
</body> | ||
</page> | ||
</page> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
<?php /** @var $block \Snowdog\Menu\Block\NodeType\Category */ ?> | ||
<div class="admin__field field field-title" data-mage-init='<?= str_replace('\'', '', $block->getJsonConfig()) ?>'> | ||
<label class="label admin__field-label" for="category-id"><?= __('Category') ?></label> | ||
<div class="admin__field field field-title" | ||
data-mage-init='<?= str_replace('\'', '', $block->getJsonConfig()) ?>' | ||
> | ||
<label class="label admin__field-label"> | ||
<?= __('Category') ?> | ||
</label> | ||
<div class="admin__field-control control autocomplete_container"> | ||
<input class="input-text admin__control-text" id="category-id" type="text"/> | ||
<input class="input-text admin__control-text" type="text"/> | ||
</div> | ||
<span class="label"></span> | ||
</div> | ||
<div class="selected-option"> | ||
<p class="selected-option__label"> | ||
Category ID | ||
</p> | ||
<p class="selected-option__value"></p> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,58 @@ | ||
<?php /** @var $block \Snowdog\Menu\Block\Menu\Edit\Tab\Nodes */ ?> | ||
<fieldset class="fieldset admin__fieldset fieldset-wide" id="menu_tree_editor"> | ||
<div> | ||
<div class="admin__field field field-title" data-mage-init='{"snowMenuEditorInit":{}}' | ||
id="snowmenu_tree_container"> | ||
<?= $block->renderNodes() ?> | ||
</div> | ||
<div class="admin__field field field-title" data-mage-init='{"snowMenuEditorAdd":{}}' | ||
class="node-buttons-container"> | ||
<?php foreach ($block->getNodeButtons() as $code => $label): ?> | ||
<button id="add-<?= $code ?>" data-type="<?= $code ?>"><?= $label ?></button> | ||
<?php endforeach ?> | ||
<button data-remove="true"><?= __('Delete selected node') ?></button> | ||
</div> | ||
<div class="admin__field field field-title"> | ||
<label class="label admin__field-label" for="snowmenu-node-name"><?= __('Node name') ?></label> | ||
<div class="admin__field-control control"> | ||
<input class="input-text admin__control-text" data-mage-init='{"snowMenuEditorRename":{"type":"name"}}' | ||
id="snowmenu-node-name" type="text"/> | ||
</div> | ||
<div class="fieldset admin__fieldset fieldset-wide snowdog-tree-menu-editor" id="menu_tree_editor"> | ||
<div class="admin__field field field-title" | ||
data-mage-init='{"snowMenuEditorInit":{}}' | ||
id="snowmenu_tree_container" | ||
> | ||
<?= $block->renderNodes() ?> | ||
</div> | ||
|
||
<div class="admin__field field field-title" | ||
data-mage-init='{"snowMenuEditorAdd":{}}' | ||
class="node-buttons-container" | ||
> | ||
<?php foreach ($block->getNodeButtons() as $code => $label): ?> | ||
<button id="add-<?= $code ?>" data-type="<?= $code ?>"> | ||
<?= $label ?> | ||
</button> | ||
<?php endforeach ?> | ||
<button data-remove="true"> | ||
<?= __('Delete selected node') ?> | ||
</button> | ||
</div> | ||
|
||
<div class="admin__field field field-title"> | ||
<label class="label admin__field-label" for="snowmenu-node-name"> | ||
<?= __('Node name') ?> | ||
</label> | ||
<div class="admin__field-control control"> | ||
<input class="input-text admin__control-text" | ||
data-mage-init='{"snowMenuEditorRename":{"type":"name"}}' | ||
id="snowmenu-node-name" | ||
type="text" | ||
/> | ||
</div> | ||
<div class="admin__field field field-title"> | ||
<label class="label admin__field-label" for="snowmenu-node-classes"><?= __('Node CSS classes') ?></label> | ||
<div class="admin__field-control control"> | ||
<input class="input-text admin__control-text" | ||
data-mage-init='{"snowMenuEditorRename":{"type":"classes"}}' | ||
id="snowmenu-node-classes" type="text"/> | ||
</div> | ||
</div> | ||
|
||
<div class="admin__field field field-title"> | ||
<label class="label admin__field-label"for="snowmenu-node-classes"> | ||
<?= __('Node CSS classes') ?> | ||
</label> | ||
<div class="admin__field-control control"> | ||
<input class="input-text admin__control-text" | ||
data-mage-init='{"snowMenuEditorRename":{"type":"classes"}}' | ||
id="snowmenu-node-classes" | ||
type="text" | ||
/> | ||
</div> | ||
<?php foreach ($block->getNodeForms() as $form): ?> | ||
<?= $form->toHtml() ?> | ||
<?php endforeach ?> | ||
<input type="hidden" name="serialized_nodes" data-mage-init='{"snowMenuEditorSerialize":{}}'/> | ||
</div> | ||
|
||
<?php foreach ($block->getNodeForms() as $form): ?> | ||
<?= $form->toHtml() ?> | ||
<?php endforeach ?> | ||
|
||
<input type="hidden" | ||
name="serialized_nodes" | ||
data-mage-init='{"snowMenuEditorSerialize":{}}' | ||
/> | ||
</fieldset> |
Oops, something went wrong.