Add resource type
This commit is contained in:
parent
5271f5263f
commit
1118fdfb45
@ -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
|
||||
|
@ -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')
|
||||
;
|
||||
}
|
||||
|
@ -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'>
|
||||
|
Loading…
Reference in New Issue
Block a user