diff --git a/Classes/Controller/BackendController.php b/Classes/Controller/BackendController.php new file mode 100644 index 0000000000000000000000000000000000000000..41ffd41990ccd623b1fee0cce09067c2db875a77 --- /dev/null +++ b/Classes/Controller/BackendController.php @@ -0,0 +1,46 @@ +<?php + +namespace SGalinski\SgJobs\Controller; + +/*************************************************************** + * Copyright notice + * + * (c) sgalinski Internet Services (https://www.sgalinski.de) + * + * All rights reserved + * + * This script is part of the TYPO3 project. The TYPO3 project is + * free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * The GNU General Public License can be found at + * http://www.gnu.org/copyleft/gpl.html. + * + * This script is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * This copyright notice MUST APPEAR in all copies of the script! + ***************************************************************/ + +use TYPO3\CMS\Extbase\Mvc\Controller\ActionController; + +/** + * The backend module controller + */ +class BackendController extends ActionController { + /** + * Show all job offers and options to manage them + * + * @return void + */ + public function indexAction() { + $someData = [ + 0 => 'test1', 1 => 'test2', 2 => 'test3' + ]; + $this->view->assign('someData', $someData); + } +} diff --git a/Resources/Private/Templates/Backend/Index.html b/Resources/Private/Templates/Backend/Index.html new file mode 100644 index 0000000000000000000000000000000000000000..638c13bb366b90b2252d5d1039895d231bcac38f --- /dev/null +++ b/Resources/Private/Templates/Backend/Index.html @@ -0,0 +1,13 @@ +<f:layout name="Default" /> + +<f:section name="main"> + <ul> + <f:for each="{someData}" as="item" key="itemUid"> + <li> + <f:link.action action="detail" arguments="{itemUid : '{itemUid}'}"> + <f:render partial="ListEntry" arguments="{item : item}" /> + </f:link.action> + </li> + </f:for> + </ul> +</f:section> diff --git a/composer.json b/composer.json index fbbb2214745f9635e11cf588c666a3fb4676643e..816449aa5cd40ac8c1917b8a06c5d45491b43f7f 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ ], "version": "1.0.1", "support": { - "issues": "https://gitlab.sgalinski.de/typo3/sg_jobs" + "issues": "https://gitlab.sgalinski.de/Oppermann/sg_jobs" }, "require": { "typo3/cms": "^7.6" diff --git a/ext_tables.php b/ext_tables.php index 80aec993a30eaeb05bc5b6d85c21108a9aba8ddd..97d43d5c10b03d3885126044d38e56e3b92ba624 100644 --- a/ext_tables.php +++ b/ext_tables.php @@ -20,10 +20,10 @@ if (TYPO3_MODE === 'BE') { \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule( 'SGalinski.sg_jobs', 'web', - 'Moderation', + 'Backend', '', [ - 'Moderation' => 'list', + 'Backend' => 'index', ], [ 'access' => 'user,group',