From 467362974864c57b8019ecd358bc68bed7c5ef9c Mon Sep 17 00:00:00 2001 From: Edinei Valdameri Date: Mon, 19 Feb 2024 11:00:52 -0300 Subject: [PATCH 1/2] =?UTF-8?q?Implementa=20op=C3=A7=C3=B5es=20de=20boleti?= =?UTF-8?q?ns=20atrav=C3=A9s=20do=20contrato?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ieducar/intranet/educar_configuracoes_gerais.php | 10 ++++------ src/Reports/Contracts/TeacherReportCard.php | 1 + 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/ieducar/intranet/educar_configuracoes_gerais.php b/ieducar/intranet/educar_configuracoes_gerais.php index 4ac75e1e20..89381a62a9 100644 --- a/ieducar/intranet/educar_configuracoes_gerais.php +++ b/ieducar/intranet/educar_configuracoes_gerais.php @@ -1,5 +1,6 @@ $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: [ diff --git a/src/Reports/Contracts/TeacherReportCard.php b/src/Reports/Contracts/TeacherReportCard.php index 9de72a4c86..5f5837af06 100644 --- a/src/Reports/Contracts/TeacherReportCard.php +++ b/src/Reports/Contracts/TeacherReportCard.php @@ -4,4 +4,5 @@ interface TeacherReportCard { + public function getOptions(): array; } From c1c2b0701d6e663ee33e66775ab0442afa88dbd0 Mon Sep 17 00:00:00 2001 From: Edinei Valdameri Date: Mon, 19 Feb 2024 15:32:47 -0300 Subject: [PATCH 2/2] =?UTF-8?q?Remove=20p=C3=A1gina=20de=20configura=C3=A7?= =?UTF-8?q?=C3=B5es=20da=20execu=C3=A7=C3=A3o=20dos=20testes=20legados?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Console/Commands/LegacyCreateTestsCommand.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Console/Commands/LegacyCreateTestsCommand.php b/app/Console/Commands/LegacyCreateTestsCommand.php index 90d42b1b54..e922c623c7 100644 --- a/app/Console/Commands/LegacyCreateTestsCommand.php +++ b/app/Console/Commands/LegacyCreateTestsCommand.php @@ -210,6 +210,7 @@ private function excludeRoutersList(): array 'migra_alunos.php', 'index.php', 'copia_vinculos_servidores_cad.php', + 'educar_configuracoes_gerais.php', ]; }