-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added account recovery data edit page #797
- Loading branch information
1 parent
e64f527
commit a014b25
Showing
9 changed files
with
84 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
12 changes: 12 additions & 0 deletions
12
src/LoginCidadao/AccountRecoveryBundle/Resources/translations/messages.pt_BR.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
account_recovery: | ||
edit: | ||
title: 'Informações de Contato Alternativas' | ||
description: 'Cadastre meios de contato alternativos para que você consiga recuperar sua conta caso perca acesso ao seu email e celular principais.' | ||
form: | ||
email: | ||
label: 'Email Alternativo' | ||
placeholder: 'Digite seu email alternativo' | ||
mobile: | ||
label: 'Celular Alternativo' | ||
placeholder: 'Digite seu celular alternativo' | ||
submit: 'Salvar' |
6 changes: 6 additions & 0 deletions
6
src/LoginCidadao/AccountRecoveryBundle/Resources/translations/validators.en.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
account_recovery: | ||
edit: | ||
email: | ||
should_be_different: 'Your recovery email must be different from your main email.' | ||
phone: | ||
should_be_different: 'Your recovery phone must be different from your main phone number.' |
6 changes: 6 additions & 0 deletions
6
src/LoginCidadao/AccountRecoveryBundle/Resources/translations/validators.pt_BR.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
account_recovery: | ||
edit: | ||
email: | ||
should_be_different: 'Seu email alternativo deve ser diferente do seu email principal.' | ||
phone: | ||
should_be_different: 'Seu telefone alternativo deve ser diferente do seu telefone principal.' |
36 changes: 32 additions & 4 deletions
36
src/LoginCidadao/AccountRecoveryBundle/Resources/views/AccountRecoveryData/edit.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,39 @@ | ||
{% extends "::base.html.twig" %} | ||
{% extends 'LoginCidadaoCoreBundle::compact.base.html.twig' %} | ||
|
||
{% block panel_body_class %}account-recovery-data-edit{% endblock %} | ||
|
||
{% block title %}LoginCidadaoCoreBundle:AccountRecoveryData:edit{% endblock %} | ||
|
||
{% block body %} | ||
<h1>Welcome to the AccountRecoveryData:edit page</h1> | ||
{% block panel_body %} | ||
<h1>{{ 'account_recovery.edit.title' | trans }}</h1> | ||
|
||
<p>{{ 'account_recovery.edit.description' | trans }}</p> | ||
|
||
{{ form_start(form) }} | ||
<button type="submit">Submit</button> | ||
<div class="form-group"> | ||
{{ form_label(form.email, null, {'label_attr': {'class': 'sr-only'}}) }} | ||
<div class="input-group"> | ||
<div class="input-group-addon"> | ||
<span class="glyphicon glyphicon-envelope" aria-hidden="true"></span> | ||
</div> | ||
{{ form_widget(form.email) }} | ||
</div> | ||
<div class="has-error">{{ form_errors(form.email) }}</div> | ||
</div> | ||
|
||
<div class="form-group"> | ||
{{ form_label(form.mobile, null, {'label_attr': {'class': 'sr-only'}}) }} | ||
<div class="input-group"> | ||
<div class="input-group-addon"> | ||
<span class="glyphicon glyphicon-phone" aria-hidden="true"></span> | ||
</div> | ||
{{ form_widget(form.mobile) }} | ||
</div> | ||
<div class="has-error">{{ form_errors(form.mobile) }}</div> | ||
</div> | ||
|
||
<button class="btn btn-block btn-success" type="submit"> | ||
{{ 'account_recovery.form.submit' | trans }} | ||
</button> | ||
{{ form_end(form) }} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters