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:
parent
1fd2880216
commit
3792846778
15
www/plugins/jasonwilliams/feed/controllers/Import.php
Normal file
15
www/plugins/jasonwilliams/feed/controllers/Import.php
Normal 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()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
@ -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>
|
@ -0,0 +1,4 @@
|
||||
|
||||
<? //$this->listRender() ?>
|
||||
|
||||
Hello, world!
|
Loading…
Reference in New Issue
Block a user