From 667cdbf49f861228cc59d536da811c9cb6ce71cd Mon Sep 17 00:00:00 2001 From: emanuel-marinho Date: Thu, 11 Apr 2024 21:00:50 -0300 Subject: [PATCH] feat: layout column status --- translations/en.php | 2 ++ translations/pt-br.php | 2 ++ views/curso/listar.php | 11 +++++++++-- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/translations/en.php b/translations/en.php index 94594bf..c516655 100644 --- a/translations/en.php +++ b/translations/en.php @@ -13,5 +13,7 @@ 'text-confirm' => 'Ok', 'input-type-here' => 'Type here', 'new-course' => 'New Course', + 'active'=> 'Active', + 'inactive'=>'Inactive', ]; diff --git a/translations/pt-br.php b/translations/pt-br.php index 091ab00..ebdac33 100644 --- a/translations/pt-br.php +++ b/translations/pt-br.php @@ -13,5 +13,7 @@ 'text-confirm' => 'Pronto', 'input-type-here' => 'Digite aqui', 'new-course' => 'Novo Curso', + 'active'=>'Ativo', + 'inactive'=>'Inativo', ]; diff --git a/views/curso/listar.php b/views/curso/listar.php index 8d440a5..3272ed4 100644 --- a/views/curso/listar.php +++ b/views/curso/listar.php @@ -16,13 +16,20 @@ status === true) { + $label = translate('active'); + $label = "{$label}"; + } else { + $label = translate('inactive'); + $label = "{$label}"; + } echo " {$cada->name} {$cada->description} - {$cada->status} + {$label} {$buttonEdit} {$buttonDelete}