Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
voting.typo3.org
extensions
election
Commits
ad233ddc
Commit
ad233ddc
authored
Dec 22, 2015
by
Oliver Eglseder
Browse files
[WIP][TASK] Add circular
parent
bf630bf2
Changes
6
Hide whitespace changes
Inline
Side-by-side
Classes/Controller/BeCircularController.php
View file @
ad233ddc
<?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
,
]
);
}
...
...
Classes/Domain/Model/Cato/ImportProcessing.php
View file @
ad233ddc
...
...
@@ -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
...
...
Classes/Domain/Model/Circular.php
0 → 100644
View file @
ad233ddc
<?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
;
}
}
Resources/Private/Language/locallang.xlf
View file @
ad233ddc
...
...
@@ -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-->
...
...
Resources/Private/Partials/View/Menu/GlobalOptions.html
View file @
ad233ddc
...
...
@@ -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"
/>
...
...
ext_tables.php
View file @
ad233ddc
...
...
@@ -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'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment