From a571a60e9db3ed2cddf19078ce4fcf334b9aa117 Mon Sep 17 00:00:00 2001
From: Torsten Oppermann <torsten@sgalinski.de>
Date: Wed, 8 Nov 2017 08:02:34 +0100
Subject: [PATCH] [TASK] Creat empty backend module

---
 Classes/Controller/BackendController.php      | 46 +++++++++++++++++++
 .../Private/Templates/Backend/Index.html      | 13 ++++++
 composer.json                                 |  2 +-
 ext_tables.php                                |  4 +-
 4 files changed, 62 insertions(+), 3 deletions(-)
 create mode 100644 Classes/Controller/BackendController.php
 create mode 100644 Resources/Private/Templates/Backend/Index.html

diff --git a/Classes/Controller/BackendController.php b/Classes/Controller/BackendController.php
new file mode 100644
index 00000000..41ffd419
--- /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 00000000..638c13bb
--- /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 fbbb2214..816449aa 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 80aec993..97d43d5c 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',
-- 
GitLab