ConstructionConsent added result type "moved"
This commit is contained in:
@@ -325,6 +325,7 @@ $pagination_entity_name = "Adressen";
|
||||
<option value="accepted" <?=($owner->result == "accepted") ? "selected='selected'" : ""?>><?=__("accepted", "consent")?></option>
|
||||
<option value="denied" <?=($owner->result == "denied") ? "selected='selected'" : ""?>><?=__("denied", "consent")?></option>
|
||||
<option value="unresolvable" <?=($owner->result == "unresolvable") ? "selected='selected'" : ""?>><?=__("unresolvable", "consent")?></option>
|
||||
<option value="moved" <?=($owner->result == "moved") ? "selected='selected'" : ""?>><?=__("moved", "consent")?></option>
|
||||
</select>
|
||||
<div class="input-group-append">
|
||||
<button type="button" class="btn btn-primary" title="Speichern" onclick="saveResultControl(<?=$owner->id?>)"><i class="fas fa-check"></i></button>
|
||||
|
||||
@@ -187,7 +187,7 @@ class ConstructionConsentOwnerController extends mfBaseController
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!in_array($new_result, ['open', 'accepted', 'denied', 'unresolvable'])) {
|
||||
if(!in_array($new_result, ['open', 'accepted', 'denied', 'unresolvable', 'moved'])) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
use Phinx\Migration\AbstractMigration;
|
||||
|
||||
final class ConstructionConsentAddResultMoved extends AbstractMigration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
if($this->getEnvironment() == "thetool") {
|
||||
$table = $this->table("ConstructionConsent");
|
||||
$table->changeColumn("result", "enum", ["null" => true, "default" => null, "values" => "open,accepted,denied,unresolvable,moved"]);
|
||||
$table->save();
|
||||
|
||||
$table = $this->table("ConstructionConsentOwner");
|
||||
$table->changeColumn("result", "enum", ["null" => true, "default" => null, "values" => "open,accepted,denied,unresolvable,moved"]);
|
||||
$table->save();
|
||||
|
||||
|
||||
}
|
||||
|
||||
if($this->getEnvironment() == "addressdb") {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
if($this->getEnvironment() == "thetool") {
|
||||
|
||||
}
|
||||
|
||||
if($this->getEnvironment() == "addressdb") {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -79,6 +79,7 @@ $l["consent.open"] = "Offen";
|
||||
$l["consent.accepted"] = "Zugestimmt";
|
||||
$l["consent.denied"] = "Abgelehnt";
|
||||
$l["consent.unresolvable"] = "Uneinbringlich";
|
||||
$l["consent.moved"] = "Verzogen";
|
||||
|
||||
$l["consent.requested"] = "Angefragt";
|
||||
$l["consent.answered"] = "Antwort erhalten";
|
||||
|
||||
Reference in New Issue
Block a user