Commit ad233ddc authored by Oliver Eglseder's avatar Oliver Eglseder
Browse files

[WIP][TASK] Add circular

parent bf630bf2
<?php
namespace TYPO3\Election\Controller;
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
/**
* Class BeConfigurationController
......@@ -20,6 +20,12 @@ namespace TYPO3\Election\Controller;
class BeCircularController extends AbstractProtectedBeController
{
const CONTROLLER_NAME = 'BeCircular';
const ACTION_LIST = 'list';
public function listAction()
{
}
/**
* @return string
......@@ -29,6 +35,7 @@ class BeCircularController extends AbstractProtectedBeController
return implode(
',',
[
self::ACTION_LIST,
]
);
}
......
......@@ -2,6 +2,9 @@
namespace TYPO3\Election\Domain\Model\Cato;
/**
* Unused by now, will be used for actions done per imported elector
* @link http://vxvr.de/pattern/cato.html
*
* Class ImportProcessing
*/
class ImportProcessing
......
<?php
namespace TYPO3\Election\Domain\Model;
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
/**
* Class Circular
*/
class Circular extends AbstractEntity
{
/**
* @var \TYPO3\Election\Domain\Model\Election
*/
protected $election = null;
/**
* @return Election
*/
public function getElection()
{
return $this->election;
}
/**
* @param Election $election
*/
public function setElection($election)
{
$this->election = $election;
}
}
......@@ -88,6 +88,9 @@
<trans-unit id="view.be.dashboard.nominee.list">
<source>Nominees</source>
</trans-unit>
<trans-unit id="view.be.dashboard.circular.list">
<source>Circular</source>
</trans-unit>
<!-- BE CONFIGURATION-->
......
......@@ -13,6 +13,22 @@
<f:translate key="view.be.dashboard.electors.list">Electors</f:translate>
</f:link.action>
</f:be.security.ifHasRole>
<f:be.security.ifHasRole role="{configuration.electionManagerGroup}">
<f:then>
<f:link.action class="btn btn-default" action="list" controller="BeCircular">
<f:translate key="view.be.dashboard.circular.list">Circular</f:translate>
</f:link.action>
</f:then>
<f:else>
<f:be.security.ifHasRole role="{configuration.electionManagerGroup}">
<f:link.action class="btn btn-default" action="list" controller="BeCircular">
<f:translate key="view.be.dashboard.circular.list">Circular</f:translate>
</f:link.action>
</f:be.security.ifHasRole>
</f:else>
</f:be.security.ifHasRole>
<f:be.security.ifHasRole role="{configuration.administrationGroup}">
<f:link.action class="btn btn-default" action="edit" controller="BeConfiguration">
<core:icon identifier="actions-system-extension-configure"/>
......
......@@ -28,6 +28,8 @@ call_user_func(
\TYPO3\Election\Controller\BeElectorateController::getActionsForModuleConfiguration(),
\TYPO3\Election\Controller\BeNomineeController::CONTROLLER_NAME =>
\TYPO3\Election\Controller\BeNomineeController::getActionsForModuleConfiguration(),
\TYPO3\Election\Controller\BeCircularController::CONTROLLER_NAME =>
\TYPO3\Election\Controller\BeCircularController::getActionsForModuleConfiguration(),
),
array(
'access' => 'user,group',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment