Add resource type

This commit is contained in:
Ryan Prather 2024-12-22 01:16:15 +00:00
parent 5271f5263f
commit 1118fdfb45
3 changed files with 12 additions and 2 deletions

View File

@ -104,9 +104,8 @@ class CommunityResource
private array $type = [];
public function __construct(
private DateTime $today
private DateTime $today = new DateTime('now', new DateTimeZone('America/New_York'))
) {
$this->today = new DateTime('now', new DateTimeZone('America/New_York'));
}
public function getId(): ?Uuid

View File

@ -4,6 +4,7 @@ namespace App\Form;
use App\Entity\CommunityResource;
use App\Enums\County;
use App\Enums\ResourceType;
use App\Enums\State;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\EmailType;
@ -83,6 +84,12 @@ class ResourceFormType extends AbstractType
'widget' => 'single_text',
])
->add('notes')
->add('type', EnumType::class, [
'class' => ResourceType::class,
'expanded' => true,
'multiple' => true,
])
->add('servicesAvailable')
;
}

View File

@ -88,6 +88,10 @@
<label for='rsc_form_services' class='form-label'>Services Available</label>
<input type='text' name='{{ field_name(form.servicesAvailable) }}' id='rsc_form_services' class='form-control'/>
</div>
<div class='input-group input-group-outline mb-3'>
{{ form_row(form.type) }}
</div>
</div>
<div class='col'>
<div class='input-group input-group-outline mb-3'>