Commit 8b2698dd authored by Oliver Eglseder's avatar Oliver Eglseder
Browse files

[TASK] Add Plugin PID field to configuration

parent d2996bc8
......@@ -39,6 +39,11 @@ class Configuration extends AbstractEntity
*/
protected $pollManagerGroup = 0;
/**
* @var int
*/
protected $pluginPid = 0;
/**
* @return int
*/
......@@ -87,6 +92,22 @@ class Configuration extends AbstractEntity
$this->pollManagerGroup = $pollManagerGroup;
}
/**
* @return int
*/
public function getPluginPid()
{
return $this->pluginPid;
}
/**
* @param int $pluginPid
*/
public function setPluginPid($pluginPid)
{
$this->pluginPid = $pluginPid;
}
/**
* @return Configuration
*/
......@@ -96,6 +117,7 @@ class Configuration extends AbstractEntity
$clone->setAdministrationGroup($this->getAdministrationGroup());
$clone->setElectionManagerGroup($this->getElectionManagerGroup());
$clone->setPollManagerGroup($this->getPollManagerGroup());
$clone->setPluginPid($this->getPluginPid());
return $clone;
}
}
......@@ -94,6 +94,21 @@
<trans-unit id="view.be.configuration.edit.welcome">
<source>Configuration edit.</source>
</trans-unit>
<trans-unit id="model.configuration.field.administration_group">
<source>Administration backend user group</source>
</trans-unit>
<trans-unit id="model.configuration.field.election_manager_group">
<source>Election manager backend user group</source>
</trans-unit>
<trans-unit id="model.configuration.field.election_manager_group">
<source>Election manager backend user group</source>
</trans-unit>
<trans-unit id="model.configuration.field.poll_manager_group">
<source>Poll manager backend user group</source>
</trans-unit>
<trans-unit id="model.configuration.field.plugin_pid">
<source>Plugin PID</source>
</trans-unit>
<!-- MODEL ABSTRACT PERSON -->
......
<fieldset class="form-section">
<div class="form-group">
<label>
<f:translate key="model.configuration.field.administrationGroup">Administration group</f:translate>
<f:translate key="model.configuration.field.administration_group">Administration group</f:translate>
</label>
<f:form.select property="administrationGroup" options="{beUserGroups}" optionValueField="uid"
optionLabelField="title" class="form-control" prependOptionLabel=" - " prependOptionValue="0"/>
......
<fieldset class="form-section">
<div class="form-group">
<label>
<f:translate key="model.configuration.field.electionManagerGroup">Election manager group</f:translate>
<f:translate key="model.configuration.field.election_manager_group">Election manager group</f:translate>
</label>
<f:form.select property="electionManagerGroup" options="{beUserGroups}" optionValueField="uid"
optionLabelField="title" class="form-control" prependOptionLabel=" - " prependOptionValue="0"/>
......
<fieldset class="form-section">
<div class="form-group">
<label>
<f:translate key="model.configuration.field.plugin_pid">Plugin pid</f:translate>
</label>
<f:form.textfield class="form-control" property="pluginPid"/>
</div>
</fieldset>
<fieldset class="form-section">
<div class="form-group">
<label>
<f:translate key="model.configuration.field.pollManagerGroup">Poll manager group</f:translate>
<f:translate key="model.configuration.field.poll_manager_group">Poll manager group</f:translate>
</label>
<f:form.select property="pollManagerGroup" options="{beUserGroups}" optionValueField="uid"
optionLabelField="title" class="form-control" prependOptionLabel=" - " prependOptionValue="0"/>
......
......@@ -2,5 +2,6 @@
arguments="{configuration:configuration,beUserGroups:beUserGroups}"/>
<f:render partial="Model/Configuration/FormFields/ElectionManagerGroup"
arguments="{configuration:configuration,beUserGroups:beUserGroups}"/>
<f:render partial="Model/Configuration/FormFields/PollGroup"
<f:render partial="Model/Configuration/FormFields/PollManagerGroup"
arguments="{configuration:configuration,beUserGroups:beUserGroups}"/>
<f:render partial="Model/Configuration/FormFields/PluginPid" arguments="{configuration:configuration}"/>
......@@ -2,14 +2,15 @@
# Table structure for table 'tx_election_domain_model_configuration'
#
CREATE TABLE tx_election_domain_model_configuration (
uid INT(11) unsigned NOT NULL auto_increment,
pid INT(11) unsigned DEFAULT '0' NOT NULL,
creation_date INT(11) unsigned DEFAULT '0' NOT NULL,
creation_user INT(11) unsigned DEFAULT '0' NOT NULL,
administration_group INT(11) unsigned DEFAULT '0' NOT NULL,
election_manager_group INT(11) unsigned DEFAULT '0' NOT NULL,
poll_manager_group INT(11) unsigned DEFAULT '0' NOT NULL,
uid INT(11) unsigned NOT NULL auto_increment,
pid INT(11) unsigned DEFAULT '0' NOT NULL,
creation_date INT(11) unsigned DEFAULT '0' NOT NULL,
creation_user INT(11) unsigned DEFAULT '0' NOT NULL,
administration_group INT(11) unsigned DEFAULT '0' NOT NULL,
election_manager_group INT(11) unsigned DEFAULT '0' NOT NULL,
poll_manager_group INT(11) unsigned DEFAULT '0' NOT NULL,
plugin_pid INT(11) unsigned DEFAULT '0' NOT NULL,
PRIMARY KEY (uid),
KEY parent (pid)
......
......@@ -20,6 +20,7 @@ config.tx_extbase.persistence.classes {
administration_group.mapOnProperty = administrationGroup
election_manager_group.mapOnProperty = electionManagerGroup
poll_manager_group.mapOnProperty = pollManagerGroup
plugin_pid.mapOnProperty = pluginPid
}
}
}
......
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