Removing reorder behaviour from Feed controller

This commit is contained in:
Jason Williams 2020-12-30 15:15:50 -07:00
parent cecb01901f
commit 1fd2880216
2 changed files with 27 additions and 20 deletions

View File

@ -1,19 +1,21 @@
<?php namespace jasonwilliams\feed\Controllers; <?php namespace jasonwilliams\feed\Controllers;
use Backend\Classes\Controller; use Backend\Classes\Controller;
use BackendMenu; use BackendMenu;
class Feed extends Controller class Feed extends Controller
{ {
public $implement = [ 'Backend\Behaviors\ListController', 'Backend\Behaviors\FormController', 'Backend\Behaviors\ReorderController' ]; public $implement = [
'Backend\Behaviors\ListController',
public $listConfig = 'config_list.yaml'; 'Backend\Behaviors\FormController'
public $formConfig = 'config_form.yaml'; ];
public $reorderConfig = 'config_reorder.yaml';
public $listConfig = 'config_list.yaml';
public function __construct() public $formConfig = 'config_form.yaml';
{
parent::__construct(); public function __construct()
BackendMenu::setContext('jasonwilliams.feed', 'main-menu-item'); {
} parent::__construct();
} BackendMenu::setContext('jasonwilliams.feed', 'main-menu-item');
}
}

View File

@ -1,6 +1,5 @@
<div data-control="toolbar"> <div data-control="toolbar">
<a href="<?= Backend::url('jasonwilliams/feed/feed/create') ?>" class="btn btn-primary oc-icon-plus"><?= e(trans('backend::lang.form.create')) ?></a> <a href="<?= Backend::url('jasonwilliams/feed/feed/create') ?>" class="btn btn-primary oc-icon-plus"><?= e(trans('backend::lang.form.create')) ?></a>
<a href="<?= Backend::url('jasonwilliams/feed/feed/reorder') ?>" class="btn btn-default oc-icon-list"><?= e(trans('backend::lang.reorder.default_title')) ?></a>
<button <button
class="btn btn-default oc-icon-trash-o" class="btn btn-default oc-icon-trash-o"
disabled="disabled" disabled="disabled"
@ -16,4 +15,10 @@
data-stripe-load-indicator> data-stripe-load-indicator>
<?= e(trans('backend::lang.list.delete_selected')) ?> <?= e(trans('backend::lang.list.delete_selected')) ?>
</button> </button>
<a
href="<?= Backend::url('jasonwilliams/feed/import') ?>"
class="btn btn-default oc-icon-upload">
Fetch posts
</a>
</div> </div>