Skip to content

Commit

Permalink
#244
Browse files Browse the repository at this point in the history
  • Loading branch information
qr committed Jan 19, 2021
1 parent 7a51cc8 commit 1776db5
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 0 deletions.
44 changes: 44 additions & 0 deletions src/Entity/Voorlegger.php
Original file line number Diff line number Diff line change
Expand Up @@ -971,6 +971,18 @@ class Voorlegger
*/
private $jongerenSchuldenvrijeStart;

/**
* @var boolean|null
* @ORM\Column(type="boolean", nullable=true)
*/
private $schuldenrustLening;

/**
* @var boolean|null
* @ORM\Column(type="boolean", nullable=true)
*/
private $saneringsKrediet;

// ---

public function __construct()
Expand Down Expand Up @@ -2595,4 +2607,36 @@ public function setJongerenSchuldenvrijeStart(?bool $jongerenSchuldenvrijeStart)
return $this;
}

/**
* @return bool|null
*/
public function getSchuldenrustLening(): ?bool
{
return $this->schuldenrustLening;
}

/**
* @param bool|null $schuldenrustLening
*/
public function setSchuldenrustLening(?bool $schuldenrustLening): void
{
$this->schuldenrustLening = $schuldenrustLening;
}

/**
* @return bool|null
*/
public function getSaneringsKrediet(): ?bool
{
return $this->saneringsKrediet;
}

/**
* @param bool|null $saneringsKrediet
*/
public function setSaneringsKrediet(?bool $saneringsKrediet): void
{
$this->saneringsKrediet = $saneringsKrediet;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ public function buildForm(FormBuilderInterface $builder, array $options)
'required' => false,
'label' => 'Jongeren Schuldenvrije Start (JSS)'
]);
$builder->add('schuldenrustLening', CheckboxType::class, [
'required' => false,
'label' => 'Schuldenrust lening (SRL)'
]);
$builder->add('saneringsKrediet', CheckboxType::class, [
'required' => false,
'label' => 'Saneringskrediet (SK)'
]);
$builder->add('aanvullendeInformatie', TextareaType::class, [
'required' => false
]);
Expand Down
34 changes: 34 additions & 0 deletions src/Migrations/Version20210119104219.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20210119104219 extends AbstractMigration
{
public function getDescription() : string
{
return '';
}

public function up(Schema $schema) : void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE voorlegger ADD schuldenrust_lening BOOLEAN DEFAULT NULL');
$this->addSql('ALTER TABLE voorlegger ADD sanerings_krediet BOOLEAN DEFAULT NULL');
}

public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE SCHEMA public');
$this->addSql('ALTER TABLE voorlegger DROP schuldenrust_lening');
$this->addSql('ALTER TABLE voorlegger DROP sanerings_krediet');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
</div>
<div class="dossier__voorlegger__sectie__body">
{{ form_row(form.jongerenSchuldenvrijeStart) }}
{{ form_row(form.schuldenrustLening) }}
{{ form_row(form.saneringsKrediet) }}
{{ form_row(form.aanvullendeInformatie) }}
{% include 'partial.files-container.html.twig' with {'form_elm': form.file, 'defaultDocumentNaam': 'Ondertekend aanvraagformulier'} only %}
{% include 'partial.files-list.html.twig' with {'dossierDocumenten': dossierDocumenten, 'removeFile': form.removeFile} only %}
Expand Down

0 comments on commit 1776db5

Please sign in to comment.