Creating bare-bones controller in feed plugin for updates.

Starting work on #47. This will eventually provide a mechanism for triggering manual feed updates from the backend.
This commit is contained in:
Jason Williams 2020-12-30 15:20:47 -07:00
parent 1fd2880216
commit 3792846778
3 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,15 @@
<?php namespace Jasonwilliams\Feed\Controllers;
use BackendMenu;
use Backend\Classes\Controller;
/**
* Import Back-end Controller
*/
class Import extends Controller
{
public function index()
{
}
}

View File

@ -0,0 +1,21 @@
<div data-control="toolbar">
<a
href="<?= Backend::url('jasonwilliams/feed/import/create') ?>"
class="btn btn-primary oc-icon-plus">
New Import
</a>
<button
class="btn btn-danger oc-icon-trash-o"
disabled="disabled"
onclick="$(this).data('request-data', { checked: $('.control-list').listWidget('getChecked') })"
data-request="onDelete"
data-request-confirm="Are you sure you want to delete the selected Imports?"
data-trigger-action="enable"
data-trigger=".control-list input[type=checkbox]"
data-trigger-condition="checked"
data-request-success="$(this).prop('disabled', 'disabled')"
data-stripe-load-indicator>
Delete selected
</button>
</div>

View File

@ -0,0 +1,4 @@
<? //$this->listRender() ?>
Hello, world!