Skip to content

Commit

Permalink
Add pagina de exclusao
Browse files Browse the repository at this point in the history
  • Loading branch information
renatocron committed May 24, 2024
1 parent 4029d29 commit 14f733e
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 14 deletions.
8 changes: 8 additions & 0 deletions api/deploy_db/deploy/0033-texto_conta_exclusao.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- Deploy penhas:0033-texto_conta_exclusao to pg
-- requires: 0032-fix-campo_livre

BEGIN;

ALTER TABLE configuracoes ADD COLUMN texto_conta_exclusao VARCHAR;

COMMIT;
1 change: 1 addition & 0 deletions api/deploy_db/sqitch.plan
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@
0030-ja_completou_mf [0029-cliente_offline] 2023-09-15T13:05:31Z renato,,, <renato@renato-MS-7A34> # ja_completou_mf
0031-mf_block_clear [0030-ja_completou_mf] 2024-02-01T12:16:07Z renato,,, <renato@renato-MS-7A34> # clear tasks when block start
0032-fix-campo_livre [0031-mf_block_clear] 2024-03-01T01:37:39Z renato,,, <renato@renato-MS-7A34> # Fix campo_livre movendo da tarefa pro cliente-tarefa
0033-texto_conta_exclusao [0032-fix-campo_livre] 2024-05-24T14:52:30Z renato,,, <renato@renato-MS-7A34> # Add texto_conta_exclusao
30 changes: 16 additions & 14 deletions api/lib/Penhas/Controller/WebFAQ.pm
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@ sub apply_rps {
}

sub webfaq_index {
my $c = shift;
$c->stash(
texto_faq_index => $c->schema2->resultset('Configuraco')->get_column('texto_faq_index')->next()
);
my $c = shift;
$c->stash(texto_faq_index => $c->schema2->resultset('Configuraco')->get_column('texto_faq_index')->next());

my @faqs = $c->schema2->resultset('FaqTelaSobre')->search(
{
Expand Down Expand Up @@ -89,20 +87,26 @@ sub webfaq_detail {
sub webfaq_botao_contato {
my $c = shift;

$c->stash(
texto_faq_contato => $c->schema2->resultset('Configuraco')->get_column('texto_faq_contato')->next()
);
$c->stash(template => 'webfaq/botao_contato');
$c->stash(texto_faq_contato => $c->schema2->resultset('Configuraco')->get_column('texto_faq_contato')->next());
$c->stash(template => 'webfaq/botao_contato');

return $c->render(html => {});
}

sub webfaq_conta_exclusao {
my $c = shift;

$c->stash(texto_faq_exclusao => $c->schema2->resultset('Configuraco')->get_column('texto_conta_exclusao')->next());
$c->stash(template => 'webfaq/conta_exclusao');

return $c->render(html => {});
}


sub web_politica_privacidade {
my $c = shift;

$c->stash(
texto => $c->schema2->resultset('Configuraco')->get_column('privacidade')->next()
);
$c->stash(texto => $c->schema2->resultset('Configuraco')->get_column('privacidade')->next());

$c->stash(template => 'webfaq/texto');

Expand All @@ -112,9 +116,7 @@ sub web_politica_privacidade {
sub web_termos_de_uso {
my $c = shift;

$c->stash(
texto => $c->schema2->resultset('Configuraco')->get_column('termos_de_uso')->next()
);
$c->stash(texto => $c->schema2->resultset('Configuraco')->get_column('termos_de_uso')->next());

$c->stash(template => 'webfaq/texto');

Expand Down
3 changes: 3 additions & 0 deletions api/lib/Penhas/Routes.pm
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ sub register {
# GET /web/faq/_botao_contato_
$faq->get('_botao_contato_')->to(action => 'webfaq_botao_contato');

# GET /web/faq/conta-exclusao
$faq->get('conta-exclusao')->to(action => 'webfaq_conta_exclusao');

# GET /web/termos-de-uso
$web->get('termos-de-uso')->to(action => 'web_termos_de_uso');

Expand Down

0 comments on commit 14f733e

Please sign in to comment.