Skip to content

Commit

Permalink
Merge pull request #937 from portabilis/teacher-report-card
Browse files Browse the repository at this point in the history
Implementa opções de boletins do professor através do contrato
  • Loading branch information
edersoares authored Feb 20, 2024
2 parents b077719 + c1c2b07 commit 0f4ee32
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions app/Console/Commands/LegacyCreateTestsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ private function excludeRoutersList(): array
'migra_alunos.php',
'index.php',
'copia_vinculos_servidores_cad.php',
'educar_configuracoes_gerais.php',
];
}

Expand Down
10 changes: 4 additions & 6 deletions ieducar/intranet/educar_configuracoes_gerais.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

use iEducar\Reports\Contracts\TeacherReportCard;
use Illuminate\Support\Facades\Cache;

return new class extends clsCadastro
Expand Down Expand Up @@ -173,16 +174,13 @@ public function Gerar()
'value' => $this->tamanho_min_rede_estadual,
]);

$teacherReporcCard = app(TeacherReportCard::class);
$options = [
'label' => 'Modelo do boletim do professor',
'resources' => [
1 => _cl(key: 'report.boletim_professor.modelo_padrao'),
2 => _cl(key: 'report.boletim_professor.modelo_recuperacao_por_etapa'),
3 => _cl(key: 'report.boletim_professor.modelo_recuperacao_paralela'),
4 => _cl(key: 'report.boletim_professor.modelo_html'),
],
'resources' => $teacherReporcCard->getOptions(),
'value' => $this->modelo_boletim_professor,
];

$this->inputsHelper()->select(attrName: 'modelo_boletim_professor', inputOptions: $options);

$this->inputsHelper()->text(attrNames: 'url_cadastro_usuario', inputOptions: [
Expand Down
1 change: 1 addition & 0 deletions src/Reports/Contracts/TeacherReportCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@

interface TeacherReportCard
{
public function getOptions(): array;
}

0 comments on commit 0f4ee32

Please sign in to comment.