-
-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
9 additions
and
23 deletions.
There are no files selected for viewing
16 changes: 5 additions & 11 deletions
16
modules/backend/behaviors/reordercontroller/_reorder_toolbar.php
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,11 +1,5 @@ | ||
<?php | ||
$formController = $this->getClassExtension(\Backend\Behaviors\FormController::class); | ||
$formConfig = $formController?->getConfig(); | ||
?> | ||
<?php if (!empty($formConfig)): ?> | ||
<div data-control="toolbar"> | ||
<a href="<?= Backend::url($formConfig->defaultRedirect) ?>" class="btn btn-primary oc-icon-caret-left"> | ||
<?= e(trans('backend::lang.form.return_to_list')) ?> | ||
</a> | ||
</div> | ||
<?php endif; ?> | ||
<div data-control="toolbar"> | ||
<a href="<?= $this->actionUrl('/') ?>" class="btn btn-primary oc-icon-caret-left"> | ||
<?= e(trans('backend::lang.form.return_to_list')) ?> | ||
</a> | ||
</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,13 +1,5 @@ | ||
<?php | ||
$formController = $this->getClassExtension(\Backend\Behaviors\FormController::class); | ||
$formConfig = $formController?->getConfig(); | ||
?> | ||
<?php if (!empty($formConfig)): ?> | ||
<?php Block::put('breadcrumb') ?> | ||
<ul> | ||
<li><a href="<?= Backend::url($formConfig->defaultRedirect) ?>"><?= e(trans($formConfig->name . '_plural')); ?></a></li> | ||
<li><?= e(trans('backend::lang.reorder.default_title')) ?></li> | ||
</ul> | ||
<?php Block::endPut() ?> | ||
<?php endif; ?> | ||
<?php Block::put('breadcrumb') ?> | ||
<?= $this->makeLayoutPartial('breadcrumb') ?> | ||
<?php Block::endPut() ?> | ||
|
||
<?= $this->reorderRender() ?> |