Compare commits

..

No commits in common. "494e5b16cea4352f726a22baae0664e776254808" and "a8404841c45f7fbf1a98cf84ad8bbf0e7c12d086" have entirely different histories.

16 changed files with 218 additions and 614 deletions

View File

@ -0,0 +1,81 @@
<?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 Version20241203041202 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('CREATE TABLE case_location (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', origin_location_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', dest_location_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', date DATE NOT NULL, departure TIME DEFAULT NULL, arrival TIME DEFAULT NULL, case_mileage TINYINT(1) NOT NULL, INDEX IDX_C9E3F3B6E99C7F9 (origin_location_id), INDEX IDX_C9E3F3B6BF14A4AE (dest_location_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE case_note (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', case_id_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', report_id_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', note_type VARCHAR(255) NOT NULL, file VARCHAR(255) DEFAULT NULL, INDEX IDX_4EA520A72DAD64BB (case_id_id), INDEX IDX_4EA520A75558992E (report_id_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE company (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', owner_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', name VARCHAR(255) NOT NULL, address VARCHAR(255) NOT NULL, city VARCHAR(255) NOT NULL, state VARCHAR(10) NOT NULL, zip VARCHAR(15) NOT NULL, phone VARCHAR(15) NOT NULL, email VARCHAR(64) NOT NULL, url VARCHAR(255) DEFAULT NULL, UNIQUE INDEX UNIQ_4FBF094F7E3C61F9 (owner_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE location (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', name VARCHAR(45) NOT NULL, address VARCHAR(255) NOT NULL, cases LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', lat NUMERIC(10, 6) DEFAULT NULL, lon NUMERIC(10, 6) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE location_options (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', name VARCHAR(45) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE `member` (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', case_id_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', last_name VARCHAR(45) NOT NULL, first_name VARCHAR(45) NOT NULL, relationship VARCHAR(45) DEFAULT NULL, personal_id VARCHAR(45) DEFAULT NULL, gender VARCHAR(255) DEFAULT NULL, race VARCHAR(45) DEFAULT NULL, dob DATE NOT NULL, language VARCHAR(45) DEFAULT NULL, emergency_contact VARCHAR(45) DEFAULT NULL, phone VARCHAR(15) DEFAULT NULL, day_phone VARCHAR(15) DEFAULT NULL, evening_phone VARCHAR(15) DEFAULT NULL, cell_phone VARCHAR(15) DEFAULT NULL, email VARCHAR(45) DEFAULT NULL, school VARCHAR(255) DEFAULT NULL, address VARCHAR(64) DEFAULT NULL, city VARCHAR(45) DEFAULT NULL, state VARCHAR(15) DEFAULT NULL, zip VARCHAR(10) DEFAULT NULL, marital_status VARCHAR(45) DEFAULT NULL, is_child TINYINT(1) NOT NULL, is_parent TINYINT(1) NOT NULL, is_adult_child TINYINT(1) NOT NULL, is_legal_guardian TINYINT(1) NOT NULL, parents_live_together TINYINT(1) NOT NULL, INDEX IDX_70E4FA782DAD64BB (case_id_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE member_case (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', case_number VARCHAR(15) NOT NULL, hours DOUBLE PRECISION NOT NULL, end_date DATE NOT NULL, case_name VARCHAR(64) NOT NULL, service VARCHAR(45) NOT NULL, referral_number VARCHAR(45) NOT NULL, first_name VARCHAR(45) NOT NULL, last_name VARCHAR(45) NOT NULL, referral_type VARCHAR(45) NOT NULL, referral_source VARCHAR(45) NOT NULL, referral_source2 VARCHAR(45) DEFAULT NULL, admit_date DATE DEFAULT NULL, close_date DATE DEFAULT NULL, dcs_case_id VARCHAR(45) DEFAULT NULL, insurance VARCHAR(45) DEFAULT NULL, medicaid VARCHAR(45) DEFAULT NULL, fcm_email VARCHAR(64) DEFAULT NULL, case_email VARCHAR(45) DEFAULT NULL, address VARCHAR(64) DEFAULT NULL, city VARCHAR(45) DEFAULT NULL, state VARCHAR(15) DEFAULT NULL, zip VARCHAR(10) DEFAULT NULL, country VARCHAR(45) DEFAULT NULL, level VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE method_options (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', name VARCHAR(45) NOT NULL, rel VARCHAR(45) NOT NULL, idx INT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE report (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', location_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', method_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', type VARCHAR(45) NOT NULL, start_time TIME NOT NULL, end_time TIME NOT NULL, case_number VARCHAR(45) NOT NULL, others_present JSON NOT NULL, note JSON NOT NULL, INDEX IDX_C42F778464D218E (location_id), INDEX IDX_C42F778419883967 (method_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE supervision (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', supervisor_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', worker_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', INDEX IDX_30C258C019E9AC5F (supervisor_id), UNIQUE INDEX UNIQ_30C258C06B20BA36 (worker_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE user (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', company_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', username VARCHAR(45) NOT NULL, roles JSON NOT NULL, password VARCHAR(255) NOT NULL, name VARCHAR(45) NOT NULL, email VARCHAR(45) NOT NULL, rate_type VARCHAR(255) NOT NULL, rate NUMERIC(6, 2) NOT NULL, level VARCHAR(255) NOT NULL, case_worker TINYINT(1) NOT NULL, case_manager TINYINT(1) NOT NULL, therapist TINYINT(1) NOT NULL, su TINYINT(1) NOT NULL, INDEX IDX_8D93D649979B1AD6 (company_id), UNIQUE INDEX UNIQ_IDENTIFIER_USERNAME (username), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE user_case (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', user_id_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', case_id_id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', INDEX IDX_289D5CD9D86650F (user_id_id), INDEX IDX_289D5CD2DAD64BB (case_id_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE messenger_messages (id BIGINT AUTO_INCREMENT NOT NULL, body LONGTEXT NOT NULL, headers LONGTEXT NOT NULL, queue_name VARCHAR(190) NOT NULL, created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', available_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', delivered_at DATETIME DEFAULT NULL COMMENT \'(DC2Type:datetime_immutable)\', INDEX IDX_75EA56E0FB7336F0 (queue_name), INDEX IDX_75EA56E0E3BD61CE (available_at), INDEX IDX_75EA56E016BA31DB (delivered_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE case_location ADD CONSTRAINT FK_C9E3F3B6E99C7F9 FOREIGN KEY (origin_location_id) REFERENCES location (id)');
$this->addSql('ALTER TABLE case_location ADD CONSTRAINT FK_C9E3F3B6BF14A4AE FOREIGN KEY (dest_location_id) REFERENCES location (id)');
$this->addSql('ALTER TABLE case_note ADD CONSTRAINT FK_4EA520A72DAD64BB FOREIGN KEY (case_id_id) REFERENCES member_case (id)');
$this->addSql('ALTER TABLE case_note ADD CONSTRAINT FK_4EA520A75558992E FOREIGN KEY (report_id_id) REFERENCES report (id)');
$this->addSql('ALTER TABLE company ADD CONSTRAINT FK_4FBF094F7E3C61F9 FOREIGN KEY (owner_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE `member` ADD CONSTRAINT FK_70E4FA782DAD64BB FOREIGN KEY (case_id_id) REFERENCES member_case (id)');
$this->addSql('ALTER TABLE report ADD CONSTRAINT FK_C42F778464D218E FOREIGN KEY (location_id) REFERENCES location_options (id)');
$this->addSql('ALTER TABLE report ADD CONSTRAINT FK_C42F778419883967 FOREIGN KEY (method_id) REFERENCES method_options (id)');
$this->addSql('ALTER TABLE supervision ADD CONSTRAINT FK_30C258C019E9AC5F FOREIGN KEY (supervisor_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE supervision ADD CONSTRAINT FK_30C258C06B20BA36 FOREIGN KEY (worker_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE user ADD CONSTRAINT FK_8D93D649979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
$this->addSql('ALTER TABLE user_case ADD CONSTRAINT FK_289D5CD9D86650F FOREIGN KEY (user_id_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE user_case ADD CONSTRAINT FK_289D5CD2DAD64BB FOREIGN KEY (case_id_id) REFERENCES member_case (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE case_location DROP FOREIGN KEY FK_C9E3F3B6E99C7F9');
$this->addSql('ALTER TABLE case_location DROP FOREIGN KEY FK_C9E3F3B6BF14A4AE');
$this->addSql('ALTER TABLE case_note DROP FOREIGN KEY FK_4EA520A72DAD64BB');
$this->addSql('ALTER TABLE case_note DROP FOREIGN KEY FK_4EA520A75558992E');
$this->addSql('ALTER TABLE company DROP FOREIGN KEY FK_4FBF094F7E3C61F9');
$this->addSql('ALTER TABLE `member` DROP FOREIGN KEY FK_70E4FA782DAD64BB');
$this->addSql('ALTER TABLE report DROP FOREIGN KEY FK_C42F778464D218E');
$this->addSql('ALTER TABLE report DROP FOREIGN KEY FK_C42F778419883967');
$this->addSql('ALTER TABLE supervision DROP FOREIGN KEY FK_30C258C019E9AC5F');
$this->addSql('ALTER TABLE supervision DROP FOREIGN KEY FK_30C258C06B20BA36');
$this->addSql('ALTER TABLE user DROP FOREIGN KEY FK_8D93D649979B1AD6');
$this->addSql('ALTER TABLE user_case DROP FOREIGN KEY FK_289D5CD9D86650F');
$this->addSql('ALTER TABLE user_case DROP FOREIGN KEY FK_289D5CD2DAD64BB');
$this->addSql('DROP TABLE case_location');
$this->addSql('DROP TABLE case_note');
$this->addSql('DROP TABLE company');
$this->addSql('DROP TABLE location');
$this->addSql('DROP TABLE location_options');
$this->addSql('DROP TABLE `member`');
$this->addSql('DROP TABLE member_case');
$this->addSql('DROP TABLE method_options');
$this->addSql('DROP TABLE report');
$this->addSql('DROP TABLE supervision');
$this->addSql('DROP TABLE user');
$this->addSql('DROP TABLE user_case');
$this->addSql('DROP TABLE messenger_messages');
}
}

View File

@ -0,0 +1,33 @@
<?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 Version20241205035323 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('CREATE TABLE referral_source (id BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', agency VARCHAR(10) NOT NULL, name VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, phone VARCHAR(15) DEFAULT NULL, county VARCHAR(100) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE member_case DROP hours, DROP end_date, DROP referral_number, CHANGE country county VARCHAR(45) DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE referral_source');
$this->addSql('ALTER TABLE member_case ADD hours DOUBLE PRECISION NOT NULL, ADD end_date DATE NOT NULL, ADD referral_number VARCHAR(45) NOT NULL, CHANGE county country VARCHAR(45) DEFAULT NULL');
}
}

View File

@ -205,7 +205,6 @@ class AdminController extends AbstractController
/** @var User $user */ /** @var User $user */
$user = $userRepo->find($id); $user = $userRepo->find($id);
$prevSup = $this->entityManager->getRepository(Supervision::class)->findBy(['user' => $user]);
$form = $this->createForm(SupervisorFormType::class); $form = $this->createForm(SupervisorFormType::class);
$form->handleRequest($request); $form->handleRequest($request);
@ -213,11 +212,6 @@ class AdminController extends AbstractController
if ($form->isSubmitted() && $form->isValid()) { if ($form->isSubmitted() && $form->isValid()) {
$supervisor = $form->get('supervisor')->getData(); $supervisor = $form->get('supervisor')->getData();
if (count($prevSup) > 0) {
$this->entityManager->remove($prevSup[0]);
$this->entityManager->flush();
}
$sup = new Supervision(); $sup = new Supervision();
$sup->setSupervisor($supervisor); $sup->setSupervisor($supervisor);
$sup->setWorker($user); $sup->setWorker($user);

View File

@ -53,6 +53,12 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
#[ORM\Column(type: Types::DECIMAL, precision: 6, scale: 2)] #[ORM\Column(type: Types::DECIMAL, precision: 6, scale: 2)]
private ?string $rate = null; private ?string $rate = null;
/**
* @var Collection<int, UserCase>
*/
#[ORM\OneToMany(targetEntity: UserCase::class, mappedBy: 'userId')]
private Collection $userCases;
#[ORM\ManyToOne(inversedBy: 'users')] #[ORM\ManyToOne(inversedBy: 'users')]
#[ORM\JoinColumn(nullable: true)] #[ORM\JoinColumn(nullable: true)]
private ?Company $company = null; private ?Company $company = null;
@ -74,12 +80,6 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
#[ORM\Column] #[ORM\Column]
private ?bool $su = null; private ?bool $su = null;
/**
* @var Collection<int, UserCase>
*/
#[ORM\OneToMany(targetEntity: UserCase::class, mappedBy: 'user')]
private Collection $userCases;
public function __construct() public function __construct()
{ {
$this->userCases = new ArrayCollection(); $this->userCases = new ArrayCollection();
@ -216,6 +216,28 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
return $this->userCases; return $this->userCases;
} }
public function addUserCase(UserCase $userCase): static
{
if (!$this->userCases->contains($userCase)) {
$this->userCases->add($userCase);
$userCase->setUserId($this);
}
return $this;
}
public function removeUserCase(UserCase $userCase): static
{
if ($this->userCases->removeElement($userCase)) {
// set the owning side to null (unless already changed)
if ($userCase->getUserId() === $this) {
$userCase->setUserId(null);
}
}
return $this;
}
public function getCompany(): ?Company public function getCompany(): ?Company
{ {
return $this->company; return $this->company;

View File

@ -4,9 +4,9 @@ namespace App\Enums;
enum CaseLevel: string enum CaseLevel: string
{ {
case PARAPROFESSIONAL = 'Paraprofessional'; case PARAPROFESSIONAL = 'PARAPROFESSIONAL';
case BACHELOR = 'Bachelor'; case BACHELOR = 'BACHELOR';
case MASTER = 'Master'; case MASTER = 'MASTER';
case DOCTORATE = 'Doctorate'; case DOCTORATE = 'DOCTORATE';
case ADMIN = 'Admin'; case ADMIN = 'ADMIN';
} }

View File

@ -1,98 +0,0 @@
<?php
namespace App\Enums;
enum County: string
{
case ADAMS = 'Adams';
case ALLEN = 'Allen';
case BARTHOLOMEW = 'Bartholomew';
case BENTON = 'Benton';
case BLACKFORD = 'Blackford';
case BOONE = 'Boone';
case BROWN = 'Brown';
case CARROLL = 'Carroll';
case CASS = 'Cass';
case CLAY = 'Clay';
case CLARK = 'Clark';
case CLINTON = 'Clinton';
case CRAWFORD = 'Crawford';
case DAVIESS = 'Daviess';
case DEARBORN = 'Dearborn';
case DECATUR = 'Decatur';
case DEKALB = 'DeKalb';
case DELAWARE = 'Delaware';
case DUBOIS = 'Dubois';
case ELKHART = 'Elkhart';
case FAYETTE = 'Fayette';
case FLOYD = 'Floyd';
case FRANKLIN = 'Franklin';
case FULTON = 'Fulton';
case GIBSON = 'Gibson';
case GRANT = 'Grant';
case GREENE = 'Green';
case HAMILTON = 'Hamilton';
case HANCOCK = 'Hancock';
case HARRISON = 'Harrison';
case HENDRICKS = 'Hendricks';
case HENRY = 'Henry';
case HOWARD = 'Howard';
case HUNTINGTON = 'Huntington';
case JACKSON = 'Jackson';
case JASPER = 'Jasper';
case JAY = 'Jay';
case JEFFERSON = 'Jefferson';
case JENNINGS = 'Jennings';
case JOHNSON = 'Johnson';
case KNOX = 'Knox';
case KNOXVILLE = 'Knoxville';
case KOSCIUSKO = 'Kosciusko';
case LAGRANGE = 'LaGrange';
case LAKE = 'Lake';
case LAPORTE = 'LaPorte';
case LAWRENCE = 'Lawrence';
case MADISON = 'Madison';
case MARION = 'Marion';
case MARSHALL = 'Marshall';
case MARTIN = 'Martin';
case MIAMI = 'Miami';
case MONROE = 'Monroe';
case MONTGOMERY = 'Montgomery';
case MORGAN = 'Morgan';
case NEWTON = 'Newton';
case NOBLE = 'Noble';
case OHIO = 'Ohio';
case ORANGE = 'Orange';
case OWEN = 'Owen';
case PARKE = 'Parke';
case PERRY = 'Perry';
case PIKE = 'Pike';
case PORTER = 'Porter';
case POSEY = 'Posey';
case PULASKI = 'Pulaski';
case PUTNAM = 'Putnam';
case RANDOLPH = 'Randolph';
case RIPLEY = 'Ripley';
case RUSH = 'Rush';
case STJOSEPH = 'St. Joseph';
case SCOTT = 'Scott';
case SHELBY = 'Shelby';
case SPENCER = 'Spencer';
case STARKE = 'Starke';
case STEUBEN = 'Steuben';
case SULLIVAN = 'Sullivan';
case TIPPECANOE = 'Tippecanoe';
case TIPTON = 'Tipton';
case UNION = 'Union';
case VANDERBURGH = 'Vanderburgh';
case VERMILLION = 'Vermillion';
case VIGO = 'Vigo';
case WABASH = 'Wabash';
case WARREN = 'Warren';
case WARRICK = 'Warwick';
case WASHINGTON = 'Washington';
case WAYNE = 'Wayne';
case WELLS = 'Wells';
case WHITE = 'White';
case WHITLEY = 'Whitley';
}

View File

@ -81,19 +81,6 @@ class UserRepository extends ServiceEntityRepository implements PasswordUpgrader
; ;
} }
public function getCaseWorkers(): array
{
return $this->createQueryBuilder('u')
->orWhere('u.caseWorker = :case_worker')
->orWhere('u.caseManager = :case_manager')
->setParameter('case_worker', true)
->setParameter('case_manager', true)
->orderBy('u.name', 'ASC')
->getQuery()
->getResult()
;
}
// /** // /**
// * @return User[] Returns an array of User objects // * @return User[] Returns an array of User objects
// */ // */

View File

@ -13,25 +13,25 @@
<link <link
rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Inter:300,400,500,600,700,900"/> rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Inter:300,400,500,600,700,900"/>
<!-- Nucleo Icons --> <!-- Nucleo Icons -->
<link href="/assets/css/nucleo-icons-a27f14049a724caccfdf868df5270952.css" rel="stylesheet"/> <link href="/assets/css/nucleo-icons.css" rel="stylesheet"/>
<link <link
href="/assets/css/nucleo-svg-3db27f91a3b15bada90bc46e8e6e1035.css" rel="stylesheet"/> href="/assets/css/nucleo-svg.css" rel="stylesheet"/>
<!-- Font Awesome Icons --> <!-- Font Awesome Icons -->
<script src="https://kit.fontawesome.com/f15a79324f.js" crossorigin="anonymous"></script> <script src="https://kit.fontawesome.com/f15a79324f.js" crossorigin="anonymous"></script>
<!-- Material Icons --> <!-- Material Icons -->
<link <link
rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0"/> rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0"/>
<!-- CSS Files --> <!-- CSS Files -->
<link id="pagestyle" href="/assets/css/material-dashboard-69c5ab25ac23935d84707ae832be200b.css?v=3.2.0" rel="stylesheet"/> {% block stylesheets %}{% endblock %} <link id="pagestyle" href="/assets/css/material-dashboard.css?v=3.2.0" rel="stylesheet"/> {% block stylesheets %}{% endblock %}
</head> </head>
<body class="bg-gray-200"> {% block body %}{% endblock %} <body class="bg-gray-200"> {% block body %}{% endblock %}
{% block javascripts %} {% block javascripts %}
<script src="/assets/js/core/popper.min-0e0d7375f38434864f6e8b17b83248aa.js"></script> <script src="/assets/js/core/popper.min.js"></script>
<script src="/assets/js/core/bootstrap.min-98996657a881e005a859bf6c1669833e.js"></script> <script src="/assets/js/core/bootstrap.min.js"></script>
<script src="/assets/js/plugins/perfect-scrollbar.min-a3b6b88d9191651d76bca1d18ad6ff6f.js"></script> <script src="/assets/js/plugins/perfect-scrollbar.min.js"></script>
<script src="/assets/js/plugins/smooth-scrollbar.min-7f3b7aad407cb76c47d8ba2ff36b2917.js"></script> <script src="/assets/js/plugins/smooth-scrollbar.min.js"></script>
<script> <script>
var win = navigator.platform.indexOf('Win') > -1; var win = navigator.platform.indexOf('Win') > -1;
if (win && document.querySelector('#sidenav-scrollbar')) { if (win && document.querySelector('#sidenav-scrollbar')) {
@ -44,7 +44,7 @@ Scrollbar.init(document.querySelector('#sidenav-scrollbar'), options);
<!-- Github buttons --> <!-- Github buttons -->
<script async defer src="https://buttons.github.io/buttons.js"></script> <script async defer src="https://buttons.github.io/buttons.js"></script>
<!-- Control Center for Material Dashboard: parallax effects, scripts for the example pages etc --> <!-- Control Center for Material Dashboard: parallax effects, scripts for the example pages etc -->
<script src="/assets/js/material-dashboard-3c2e68ac5dcb043e53d475fe9d10a964.js?v=3.2.0"></script> <script src="/assets/js/material-dashboard.min.js?v=3.2.0"></script>
{% block importmap %} {% block importmap %}
{{ importmap('app') }} {{ importmap('app') }}

View File

@ -1,153 +0,0 @@
{% extends 'base.html.twig' %}
{% block body %}
{{ block('nav', 'internal/libs/nav.html.twig') }}
<main class="main-content position-relative max-height-vh-100 h-100 border-radius-lg ">
{{ block('topnav', 'internal/libs/top-nav.html.twig') }}
<section>
<div class="card card-plain">
<div class="card-header">
<h4 class="font-weight-bolder">Case Info</h4>
<p class="mb-0"></p>
</div>
<div class="card-body">
<div class="container">
{{ form_errors(form) }}
{{ form_start(form) }}
<div class="row">
<div class='col'>
<div class='input-group input-group-outline mb-3'>
<label for='case_form_caseNumber' class='form-label'>Case #</label>
<input type='text' name='{{ field_name(form.caseNumber) }}' id='case_form_caseNumber' class='form-control' required='required'/>
</div>
<div class='input-group input-group-outline mb-3'>
<label for='case_form_dcsCaseId' class='form-label'>DCS Case ID</label>
<input type='text' name='{{ field_name(form.dcsCaseId) }}' id='case_form_dcsCaseId' class='form-control' required='required'/>
</div>
<div class='input-group input-group-outline mb-3 is-filled'>
<label for='case_form_admitDate' class='form-label'>Admit Date</label>
<input type='date' name='{{ field_name(form.admitDate) }}' id='case_form_admitDate' class='form-control'/>
</div>
<div class='input-group input-group-outline mb-3 is-filled'>
<label for='case_form_closeDate' class='form-label'>Close Date</label>
<input type='date' name='{{ field_name(form.closeDate) }}' id='case_form_closeDate' class='form-control'/>
</div>
<div class='input-group input-group-outline mb-3'>
<label for='case_form_caseEmail' class='form-label'>Case Email</label>
<input type='text' name='{{ field_name(form.caseEmail) }}' id='case_form_caseEmail' class='form-control'/>
</div>
<div class='input-group input-group-outline mb-3'>
<label for='case_form_referralType' class='form-label'>Referral Type</label>
<input type='text' name='{{ field_name(form.referralType) }}' id='case_form_referralType' class='form-control'/>
</div>
<div class='input-group input-group-outline mb-3 is-filled'>
<label for='case_form_level' class='form-label'>Level</label>
<select name='{{ field_name(form.level) }}' id='case_form_level' class='form-control'>
<option value=''></option>
{% for l in enum('App\\Enums\\CaseLevel').cases() %}
<option value='{{ l.value }}'>{{ l.name }}</option>
{% endfor %}
</select>
</div>
<div class='input-group input-group-outline mb-3 is-filled'>
<label for='case_form_referralSource' class='form-label'>Referral Source</label>
<select name='{{ field_name(form.referralSource) }}' id='case_form_referralSource' class='form-control'>
<option value=''></option>
{% for src in sources %}
<option value='{{ src.id }}'>{{ src.name}}</option>
{% endfor %}
</select>
</div>
<div class='input-group input-group-outline mb-3'>
<label for='case_form_referralSources2' class='form-label'>2nd Referral Source</label>
<select name='{{ field_name(form.referralSource2) }}' id='case_form_referralSources2' class='form-control'>
<option value=''></option>
{% for src in sources %}
<option value='{{ src.id }}'>{{ src.name }}</option>
{% endfor %}
</select>
</div>
</div>
<div class='col'>
<div class='input-group input-group-outline mb-3'>
<label for='case_form_firstName' class='form-label'>First Name</label>
<input type='text' name='{{ field_name(form.firstName) }}' id='case_form_firstName' class='form-control' required='required'/>
</div>
<div class='input-group input-group-outline mb-3'>
<label for='case_form_lastName' class='form-label'>Last Name</label>
<input type='text' name='{{ field_name(form.lastName) }}' id='case_form_lastName' class='form-control' required='required'/>
</div>
<div class='input-group input-group-outline mb-3'>
<label for='case_form_address' class='form-label'>Address</label>
<input type='text' name='{{ field_name(form.address) }}' id='case_form_address' class='form-control'/>
</div>
<div class='input-group input-group-outline mb-3'>
<label for='case_form_address2' class='form-label'>Address 2</label>
<input type='text' name='{{ field_name(form.address2) }}' id='case_form_address2' class='form-control'/>
</div>
<div class='input-group input-group-outline mb-3'>
<label for='case_form_city' class='form-label'>City</label>
<input type='text' name='{{ field_name(form.city) }}' id='case_form_city' class='form-control'/>
</div>
<div class='input-group input-group-outline mb-3'>
<label for='case_form_state' class='form-label'>State</label>
<input type='text' name='{{ field_name(form.state) }}' id='case_form_state' class='form-control'/>
</div>
<div class='input-group input-group-outline mb-3'>
<label for='case_form_zip' class='form-label'>Zip</label>
<input type='text' name='{{ field_name(form.zip) }}' id='case_form_zip' class='form-control'/>
</div>
<div class='input-group input-group-outline mb-3 is-filled'>
<label for='case_form_county' class='form-label'>County</label>
<select name='{{ field_name(form.county) }}' id='case_form_county' class='form-control'>
<option value=''></option>
{% for c in enum('App\\Enums\\County').cases() %}
<option value='{{ c.value }}'>{{ c.name }}</option>
{% endfor %}
</select>
</div>
<div class='input-group input-group-outline mb-3'>
<label for='case_form_insurance' class='form-label'>Insurance</label>
<input type='text' name='{{ field_name(form.insurance) }}' id='case_form_insurance' class='form-control'/>
</div>
<div class='input-group input-group-outline mb-3'>
<label for='case_form_medicaid' class='form-label'>Medicaid</label>
<input type='text' name='{{ field_name(form.medicaid) }}' id='case_form_medicaid' class='form-control'/>
</div>
</div>
</div>
<div class='row'>
<div class="text-center">
<button type="submit" class="btn btn-lg bg-gradient-dark btn-lg w-100 mt-4 mb-0">Save Case</button>
</div>
</div>
{{ form_end(form) }}
</div>
</div>
</div>
</section>
</main>
{% endblock %}

View File

@ -1,48 +0,0 @@
{% extends 'base.html.twig' %}
{% block body %}
{{ block('nav', 'internal/libs/nav.html.twig') }}
<main class="main-content position-relative max-height-vh-100 h-100 border-radius-lg ">
{{ block('topnav', 'internal/libs/top-nav.html.twig') }}
<section>
<div class='page-header min-vh-100'>
<div class='container'>
<div class="row">
<div class="col-6 d-lg-flex d-none h-100 my-auto pe-0 position-absolute top-0 start-0 text-center justify-content-center flex-column">
<div class="position-relative bg-gradient-primary h-100 m-3 px-7 border-radius-lg d-flex flex-column justify-content-center" style="background-image: url('/assets/img/illustrations/illustration-signup.jpg'); background-size: cover;"></div>
</div>
<div class='col-xl-4 col-lg-5 col-md-7 d-flex flex-column ms-auto me-auto ms-lg-auto me-lg-5'>
<div class="card card-plain">
<div class="card-header">
<h4 class="font-weight-bolder">Assign Case Worker</h4>
</div>
<div class="card-body">
{{ form_errors(form) }}
{{ form_start(form) }}
<div class='input-group input-group-outline mb-3 is-filled'>
<label for='user_form_caseWorker' class='form-label'>Case Worker</label>
<select name='{{ field_name(form.user) }}' id='user_form_caseWorker' class='form-control'>
<option value=''></option>
{% for w in caseWorkers %}
{% set selected = (w.id == assignedWorkerId) %}
<option value='{{ w.id }}' {% if selected %} selected="true" {% endif %}>{{ w.name }}</option>
{% endfor %}
</select>
</div>
<div class="text-center">
<button type="submit" class="btn btn-lg bg-gradient-dark btn-lg w-100 mt-4 mb-0">Assign Case Worker</button>
</div>
{{ form_end(form) }}
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</main>
{% endblock %}

View File

@ -1,168 +0,0 @@
{% extends 'base.html.twig' %}
{% block body %}
{{ block('nav', 'internal/libs/nav.html.twig') }}
<main class="main-content position-relative max-height-vh-100 h-100 border-radius-lg ">
{{ block('topnav', 'internal/libs/top-nav.html.twig') }}
<section>
<div class="card card-plain">
<div class="card-header">
<h4 class="font-weight-bolder">Case Info</h4>
<p class="mb-0"></p>
</div>
<div class="card-body">
<div class="container">
{{ form_errors(form) }}
{{ form_start(form) }}
<div class="row">
<div class='col'>
<div class='input-group input-group-outline mb-3 is-filled'>
<label for='case_form_caseNumber' class='form-label'>Case #</label>
<input type='text' name='{{ field_name(form.caseNumber) }}' id='case_form_caseNumber' value='{{ case.caseNumber }}' class='form-control' required='required'/>
</div>
<div class='input-group input-group-outline mb-3 is-filled'>
<label for='case_form_dcsCaseId' class='form-label'>DCS Case ID</label>
<input type='text' name='{{ field_name(form.dcsCaseId) }}' id='case_form_dcsCaseId' value='{{ case.dcsCaseId }}' class='form-control' required='required'/>
</div>
<div class='input-group input-group-outline mb-3 is-filled'>
<label for='case_form_admitDate' class='form-label'>Admit Date</label>
<input type='date' name='{{ field_name(form.admitDate) }}' id='case_form_admitDate' value='{{ case.admitDate|date('Y-m-d') }}' class='form-control'/>
</div>
<div class='input-group input-group-outline mb-3{% if case.closeDate %} is-filled{% endif %}'>
<label for='case_form_closeDate' class='form-label'>Close Date</label>
<input type='date' name='{{ field_name(form.closeDate) }}' id='case_form_closeDate' value='{% if case.closeDate %}{{ case.closeDate|date('Y-m-d') }}{% endif %}' class='form-control'/>
</div>
<div class='input-group input-group-outline mb-3'>
<label for='case_form_caseEmail' class='form-label'>Case Email</label>
<input type='text' name='{{ field_name(form.caseEmail) }}' id='case_form_caseEmail' value='{{ case.caseEmail }}' class='form-control'/>
</div>
<div class='input-group input-group-outline mb-3 is-filled'>
<label for='case_form_referralType' class='form-label'>Referral Type</label>
<input type='text' name='{{ field_name(form.referralType) }}' id='case_form_referralType' value='{{ case.referralType }}' class='form-control'/>
</div>
<div class='input-group input-group-outline mb-3 is-filled'>
<label for='case_form_level' class='form-label'>Level</label>
<select name='{{ field_name(form.level) }}' id='case_form_level' class='form-control'>
<option value=''></option>
{% for l in enum('App\\Enums\\CaseLevel').cases() %}
{% set selected="" %}
{% if case.level.value == l.value %}
{% set selected=" selected='selected" %}
{% endif %}
<option value='{{ l.value }}' {{ selected }}>{{ l.name }}</option>
{% endfor %}
</select>
</div>
<div class='input-group input-group-outline mb-3 is-filled'>
<label for='case_form_referralSource' class='form-label'>Referral Source</label>
<select name='{{ field_name(form.referralSource) }}' id='case_form_referralSource' class='form-control'>
<option value=''></option>
{% for src in sources %}
{% set selected="" %}
{% if case.referralSource.id == src.id %}
{% set selected=" selected='selected'" %}
{% endif %}
<option value='{{ src.id }}' {{ selected }}>{{ src.name}}</option>
{% endfor %}
</select>
</div>
<div class='input-group input-group-outline mb-3 {% if case.referralSource2 %}is-filled{% endif %}'>
<label for='case_form_referralSources2' class='form-label'>2nd Referral Source</label>
<select name='{{ field_name(form.referralSource2) }}' id='case_form_referralSources2' class='form-control'>
<option value=''></option>
{% for src in sources %}
{% set selected="" %}
{% if case.referralSource2 and case.referralSource2.id == src.id %}
{% set selected=" selected='selected'" %}
{% endif %}
<option value='{{ src.id }}' {{ selected }}>{{ src.name }}</option>
{% endfor %}
</select>
</div>
</div>
<div class='col'>
<div class='input-group input-group-outline mb-3 is-filled'>
<label for='case_form_firstName' class='form-label'>First Name</label>
<input type='text' name='{{ field_name(form.firstName) }}' id='case_form_firstName' value='{{ case.firstName }}' class='form-control' required='required'/>
</div>
<div class='input-group input-group-outline mb-3 is-filled'>
<label for='case_form_lastName' class='form-label'>Last Name</label>
<input type='text' name='{{ field_name(form.lastName) }}' id='case_form_lastName' value='{{ case.lastName }}' class='form-control' required='required'/>
</div>
<div class='input-group input-group-outline mb-3{% if case.address %} is-filled{% endif %}'>
<label for='case_form_address' class='form-label'>Address</label>
<input type='text' name='{{ field_name(form.address) }}' id='case_form_address' value='{{ case.address }}' class='form-control'/>
</div>
<div class='input-group input-group-outline mb-3{% if case.address2 %} is-filled{% endif %}'>
<label for='case_form_address2' class='form-label'>Address 2</label>
<input type='text' name='{{ field_name(form.address2) }}' id='case_form_address2' value='{{ case.address2 }}' class='form-control'/>
</div>
<div class='input-group input-group-outline mb-3{% if case.city %} is-filled{% endif %}'>
<label for='case_form_city' class='form-label'>City</label>
<input type='text' name='{{ field_name(form.city) }}' id='case_form_city' value='{{ case.city }}' class='form-control'/>
</div>
<div class='input-group input-group-outline mb-3{% if case.state %} is-filled{% endif %}'>
<label for='case_form_state' class='form-label'>State</label>
<input type='text' name='{{ field_name(form.state) }}' id='case_form_state' value='{{ case.state }}' class='form-control'/>
</div>
<div class='input-group input-group-outline mb-3{% if case.zip %} is-filled{% endif %}'>
<label for='case_form_zip' class='form-label'>Zip</label>
<input type='text' name='{{ field_name(form.zip) }}' id='case_form_zip' value='{{ case.zip }}' class='form-control'/>
</div>
<div class='input-group input-group-outline mb-3 is-filled'>
<label for='case_form_county' class='form-label'>County</label>
<select name='{{ field_name(form.county) }}' id='case_form_county' class='form-control'>
<option value=''></option>
{% for c in enum('App\\Enums\\County').cases() %}
{% set selected="" %}
{% if case.county.value %}
{% set selected=" selected='selected'" %}
{% endif %}
<option value='{{ c.value }}' {{ selected }}>{{ c.name }}</option>
{% endfor %}
</select>
</div>
<div class='input-group input-group-outline mb-3{% if case.insurance %} is-filled{% endif %}'>
<label for='case_form_insurance' class='form-label'>Insurance</label>
<input type='text' name='{{ field_name(form.insurance) }}' id='case_form_insurance' value='{{ case.insurance }}' class='form-control'/>
</div>
<div class='input-group input-group-outline mb-3{% if case.medicaid %} is-filled{% endif %}'>
<label for='case_form_medicaid' class='form-label'>Medicaid</label>
<input type='text' name='{{ field_name(form.medicaid) }}' id='case_form_medicaid' value='{{ case.medicaid }}' class='form-control'/>
</div>
</div>
</div>
<div class='row'>
<div class="text-center">
<button type="submit" class="btn btn-lg bg-gradient-dark btn-lg w-100 mt-4 mb-0">Update Case</button>
</div>
</div>
{{ form_end(form) }}
</div>
</div>
</div>
</section>
</main>
{% endblock %}

View File

@ -40,6 +40,9 @@
<tr> <tr>
<td> <td>
<div class='d-flex px-2 py-1'> <div class='d-flex px-2 py-1'>
<div>
<img src='' class='avatar avatar-sm me-3 border-radius-large' alt='{{ src.name }}'>
</div>
<div class='d-flex flex-column justify-content-center'> <div class='d-flex flex-column justify-content-center'>
<h6 class='mb-0 text-small'>{{ src.name }}</h6> <h6 class='mb-0 text-small'>{{ src.name }}</h6>
<p class='text-xs text-secondary mb-0'> <p class='text-xs text-secondary mb-0'>

View File

@ -0,0 +1,45 @@
{% extends 'base.html.twig' %}
{% block body %}
{{ block('nav', 'internal/libs/nav.html.twig') }}
<main class="main-content position-relative max-height-vh-100 h-100 border-radius-lg ">
{{ block('topnav', 'internal/libs/top-nav.html.twig') }}
<div class="container-fluid py-2">
<div class="row">
<div class="col-12">
<div class="card my-4">
<div class="card-header p-0 position-relative mt-n4 mx-3 z-index-2">
<div class="d-flex justify-content-between bg-gradient-dark shadow-dark border-radius-lg pt-4 pb-3 ps-3 p-2">
<div>
<h6 class="text-white text-capitalize ps-3">Case List</h6>
</div>
<div>
<button type="button" class="btn btn-block btn-light mb-3" onclick="window.open('/index.php/add-case', '_self')">Add Case</button>
</div>
</div>
</div>
<div class="card-body px-0 pb-2">
<div class="table-responsive p-0">
<table class="table align-items-center mb-0">
<thead>
<tr>
<th class="text-uppercase text-secondary text-xxs font-weight-bolder opacity-7">Name</th>
<th class="text-uppercase text-secondary text-xxs font-weight-bolder opacity-7 ps-2">Case #</th>
<th class="text-center text-uppercase text-secondary text-xxs font-weight-bolder opacity-7">Referral #</th>
<th class="text-center text-uppercase text-secondary text-xxs font-weight-bolder opacity-7">Hours Rem</th>
<th class="text-center text-uppercase text-secondary text-xxs font-weight-bolder opacity-7">End Date</th>
<th class="text-secondary opacity-7"></th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
{% endblock %}

View File

@ -1,104 +0,0 @@
{% extends 'base.html.twig' %}
{% block body %}
{{ block('nav', 'internal/libs/nav.html.twig') }}
<main class="main-content position-relative max-height-vh-100 h-100 border-radius-lg ">
{{ block('topnav', 'internal/libs/top-nav.html.twig') }}
<div class="container-fluid py-2">
<div class="row">
<div class="col-12">
<div class="card my-4">
<div class="card-header p-0 position-relative mt-n4 mx-3 z-index-2">
<div class="d-flex justify-content-between bg-gradient-dark shadow-dark border-radius-lg pt-4 pb-3 ps-3 p-2">
<div>
<h6 class="text-white text-capitalize ps-3">Case List</h6>
</div>
<div>
<button type="button" class="btn btn-block btn-light mb-3" onclick="window.open('/index.php/add-case', '_self')">Add Case</button>
</div>
</div>
</div>
<div class="card-body px-0 pb-2">
<div>
Filters:
<select onchange='javascript:filterCasesByUser(this.value)'>
<option value=''></option>
{% for w in workers %}
<option value='{{ w.id }}'>{{ w.name }}</option>
{% endfor %}
</select>
</div>
<div class="table-responsive p-0">
<table class="table align-items-center mb-0">
<thead>
<tr>
<th class="text-uppercase text-secondary text-xxs font-weight-bolder opacity-7">Name</th>
<th class="text-uppercase text-secondary text-xxs font-weight-bolder opacity-7 ps-2">Case #</th>
<th class="text-center text-uppercase text-secondary text-xxs font-weight-bolder opacity-7">DCS Case ID</th>
<th class="text-center text-uppercase text-secondary text-xxs font-weight-bolder opacity-7">Type/Source</th>
<th class='text-center text-uppercase text-secondary text-xxs font-weight-bolder opacity-7'>County</th>
<th class="text-center text-uppercase text-secondary text-xxs font-weight-bolder opacity-7">Case Worker</th>
<th class="text-secondary opacity-7"></th>
</tr>
</thead>
<tbody>
{% for c in cases %}
<tr>
<td>
<div class='d-flex px-2 py-1'>
<div class='d-flex flex-column justify-content-center'>
<h6 class='mb-0 text-small'>{{ c.caseName }}</h6>
</div>
</div>
</td>
<td>
<p class='text-xs font-weight-bold mb-0'>{{ c.caseNumber }}</p>
</td>
<td>
<p class='text-xs font-weight-bold mb-0'>{{ c.dcsCaseId }}</p>
</td>
<td>
<p class='text-xs font-weight-bold mb-0'>
{{ c.referralType }}/{{ c.referralSource.name }}<br/>
<a href='mailto:{{ c.referralSource.email }}'>{{ c.referralSource.email }}</a>
</p>
</td>
<td>
<p class='text-xs font-weight-bold mb-0'>{{ c.county.value }}</p>
</td>
<td class='align-middle text-center text-xs'>
<p class='text-xs font-weight-bold mb-0'>
{% if c.userCases|length > 0 %}
{{ c.userCases.0.user.name }}
{% endif %}
</p>
</td>
<td class='align-right'>
<a href='/index.php/edit-case/{{ c.id }}' class='' data-toggle='tooltip' data-original-title='Edit Case'>
<i class="material-symbols-rounded opacity-5">edit</i>
</a>
<a href='/index.php/assign-case/{{ c.id }}' class='' data-toggle='tooltip' data-original-title='Assign Worker'>
<i class='material-symbols-rounded opacity-5'>person_add</i>
</a>
<a href='/index.php/add-referral/{{ c.id }}' class='' data-toggle='tooltip' data-original-title='Add Referral'>
<i class='material-symbols-rounded opacity-5'>create_new_folder</i>
</a>
<a href='/index.php/list-members/{{ c.id }}' class='' data-toggle='tooltip' data-original-title='Add Member'>
<i class='material-symbols-rounded opacity-5'>person_add</i>
</a>
</td>
</tr>
</td>
</tbody>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div></div></main>{% endblock %}

View File

@ -2,8 +2,8 @@
<aside class="sidenav navbar navbar-vertical navbar-expand-xs border-radius-lg fixed-start ms-2 bg-white my-2" id="sidenav-main"> <aside class="sidenav navbar navbar-vertical navbar-expand-xs border-radius-lg fixed-start ms-2 bg-white my-2" id="sidenav-main">
<div class="sidenav-header"> <div class="sidenav-header">
<i class="fas fa-times p-3 cursor-pointer text-dark opacity-5 position-absolute end-0 top-0 d-none d-xl-none" aria-hidden="true" id="iconSidenav"></i> <i class="fas fa-times p-3 cursor-pointer text-dark opacity-5 position-absolute end-0 top-0 d-none d-xl-none" aria-hidden="true" id="iconSidenav"></i>
<a class="navbar-brand px-4 py-3 m-0" href="/index.php/dashboard"> <a class="navbar-brand px-4 py-3 m-0" href="/index.php/dashboard " target="_blank">
<img src="/assets/img/logo-ct-dark-fede0e8581dd87c5e6217653376c32a4.png" class="navbar-brand-img" width="26" height="26" alt="main_logo"> <img src="/assets/img/logo-ct-dark.png" class="navbar-brand-img" width="26" height="26" alt="main_logo">
<span class="ms-1 text-sm text-dark">CM Tracker</span> <span class="ms-1 text-sm text-dark">CM Tracker</span>
</a> </a>
</div> </div>

View File

@ -2,7 +2,7 @@
<!-- Navbar --> <!-- Navbar -->
<nav class="navbar navbar-expand-lg blur border-radius-xl top-0 z-index-3 shadow position-absolute my-3 py-2 start-0 end-0 mx-4"> <nav class="navbar navbar-expand-lg blur border-radius-xl top-0 z-index-3 shadow position-absolute my-3 py-2 start-0 end-0 mx-4">
<div class="container-fluid ps-2 pe-0"> <div class="container-fluid ps-2 pe-0">
<a class="navbar-brand font-weight-bolder ms-lg-0 ms-3 " href="/index.php/dashboard"> <a class="navbar-brand font-weight-bolder ms-lg-0 ms-3 " href="../pages/dashboard.html">
CM Tracker CM Tracker
</a> </a>
<button class="navbar-toggler shadow-none ms-2" type="button" data-bs-toggle="collapse" data-bs-target="#navigation" aria-controls="navigation" aria-expanded="false" aria-label="Toggle navigation"> <button class="navbar-toggler shadow-none ms-2" type="button" data-bs-toggle="collapse" data-bs-target="#navigation" aria-controls="navigation" aria-expanded="false" aria-label="Toggle navigation">
@ -18,7 +18,7 @@
<!-- @todo only display when logged in --> <!-- @todo only display when logged in -->
{% if app.user %} {% if app.user %}
<li class="nav-item"> <li class="nav-item">
<a class="nav-link d-flex align-items-center me-2 active" aria-current="page" href="/index.php/dashboard"> <a class="nav-link d-flex align-items-center me-2 active" aria-current="page" href="/index.php/">
<i class="fa fa-chart-pie opacity-6 text-dark me-1"></i> <i class="fa fa-chart-pie opacity-6 text-dark me-1"></i>
Dashboard Dashboard
</a> </a>
@ -45,7 +45,17 @@
</li> </li>
{% endif %} {% endif %}
</ul> </ul>
<ul class="navbar-nav d-lg-flex d-none"></ul> <ul
class="navbar-nav d-lg-flex d-none"><!--
replace with other link
<li class="nav-item d-flex align-items-center">
<a class="btn btn-outline-primary btn-sm mb-0 me-2" target="_blank" href="https://www.creative-tim.com/builder?ref=navbar-material-dashboard">Online Builder</a>
</li>
<li class="nav-item">
<a href="https://www.creative-tim.com/product/material-dashboard" class="btn btn-sm mb-0 me-1 bg-gradient-dark">Free download</a>
</li>
-->
</ul>
</div> </div>
</div> </div>
</nav> </nav>