diff --git a/config/routes/admin/user.yaml b/config/routes/admin/user.yaml
index 30f565f9..9832678a 100644
--- a/config/routes/admin/user.yaml
+++ b/config/routes/admin/user.yaml
@@ -7,3 +7,10 @@ timeline:
path: /{id}/timeline
controller: App\Controller\Web\Admin\UserAdminController::timeline
methods: ['GET']
+
+account_privacy:
+ path: /{id}/account-privacy
+ controller: App\Controller\Web\Admin\UserAdminController::accountPrivacy
+ methods: ['GET']
+
+
diff --git a/src/Controller/Web/Admin/UserAdminController.php b/src/Controller/Web/Admin/UserAdminController.php
index 788c3fc8..6f5d7ab1 100644
--- a/src/Controller/Web/Admin/UserAdminController.php
+++ b/src/Controller/Web/Admin/UserAdminController.php
@@ -17,6 +17,9 @@ public function __construct(
) {
}
+ /**
+ * Lista todos os usuários
+ */
public function list(): Response
{
$users = $this->service->findAll();
@@ -35,4 +38,17 @@ public function timeline(Uuid $id): Response
'events' => $events,
]);
}
+
+ public function accountPrivacy(Uuid $id): Response
+ {
+ $user = $this->service->get($id);
+
+ if (!$user) {
+ return $this->redirectToRoute('login');
+ }
+
+ return $this->render('user/account-privacy.html.twig', [
+ 'user' => $user,
+ ]);
+ }
}
diff --git a/src/EventSubscriber/ApiCustomResponseSubscriber.php b/src/EventSubscriber/ApiCustomResponseSubscriber.php
index 1e980043..e8402a80 100644
--- a/src/EventSubscriber/ApiCustomResponseSubscriber.php
+++ b/src/EventSubscriber/ApiCustomResponseSubscriber.php
@@ -37,6 +37,8 @@ public function generateCustomError(ExceptionEvent $event): void
{
$exception = $event->getThrowable();
+ dd($exception);
+
if ($exception instanceof NotFoundHttpException || $exception instanceof ResourceNotFoundException) {
$this->generateNotFoundError($event);
diff --git a/templates/_admin/user/account-privacy.html.twig b/templates/_admin/user/account-privacy.html.twig
new file mode 100644
index 00000000..9c74f5f8
--- /dev/null
+++ b/templates/_admin/user/account-privacy.html.twig
@@ -0,0 +1,17 @@
+{% extends "_layouts/base.html.twig" %}
+
+{% block content %}
+
{{ 'account_privacy'|trans }}
+ {{ user.name }}
+{% endblock %}
+
+
+{#{% extends "_layouts/blank.html.twig" %}#}
+
+{#{% block title %} conta e privacidade {% endblock %}#}
+
+{#{% block content %}#}
+
+
+{#{% endblock %}#}
+
diff --git a/templates/_components/navbar.html.twig b/templates/_components/navbar.html.twig
index 92f5f4ea..06dc3219 100644
--- a/templates/_components/navbar.html.twig
+++ b/templates/_components/navbar.html.twig
@@ -30,57 +30,57 @@
{% if (env.aurora.modules.opportunities != '' ) %}
-
-
- lightbulb
- {{env.aurora.modules.opportunities ?? 'opportunities'|trans }}
-
-
+
+
+ lightbulb
+ {{env.aurora.modules.opportunities ?? 'opportunities'|trans }}
+
+
{% endif %}
{% if (env.aurora.modules.agents != '' ) %}
-
-
- group
- {{ env.aurora.modules.agents ?? 'agents'|trans }}
-
-
+
+
+ group
+ {{ env.aurora.modules.agents ?? 'agents'|trans }}
+
+
{% endif %}
{% if (env.aurora.modules.organizations != '' ) %}
-
-
- corporate_fare
- {{ env.aurora.modules.organizations ?? 'organizations'|trans }}
-
-
+
+
+ corporate_fare
+ {{ env.aurora.modules.organizations ?? 'organizations'|trans }}
+
+
{% endif %}
{% if (env.aurora.modules.events != '' ) %}
-
-
- event
- {{ env.aurora.modules.events ?? 'events'|trans }}
-
-
+
+
+ event
+ {{ env.aurora.modules.events ?? 'events'|trans }}
+
+
{% endif %}
{% if (env.aurora.modules.spaces != '' ) %}
-
-
- domain
- {{ env.aurora.modules.spaces ?? 'spaces'|trans }}
-
-
+
+
+ domain
+ {{ env.aurora.modules.spaces ?? 'spaces'|trans }}
+
+
{% endif %}
{% if (env.aurora.modules.initiatives != '' ) %}
-
-
- article
- {{ env.aurora.modules.initiatives ?? 'initiatives'|trans }}
-
-
+
+
+ article
+ {{ env.aurora.modules.initiatives ?? 'initiatives'|trans }}
+
+
{% endif %}
@@ -123,7 +123,7 @@
-
+
settings {{ 'account_privacy' | trans }}
diff --git a/var/translations/index.d.ts b/var/translations/index.d.ts
index 5216b9ce..38ebbc27 100644
--- a/var/translations/index.d.ts
+++ b/var/translations/index.d.ts
@@ -593,6 +593,10 @@ export declare const VIEW_OPPORTUNITY_QUANTITY_OPENED: Message<{ 'messages': { p
export declare const VIEW_OPPORTUNITY_QUANTITY_LAST_DAYS: Message<{ 'messages': { parameters: NoParametersType } }, 'en'|'pt-br'|'es'>;
export declare const VIEW_OPPORTUNITY_PERIOD: Message<{ 'messages': { parameters: NoParametersType } }, 'en'|'pt-br'|'es'>;
export declare const VIEW_OPPORTUNITY_TYPE_OF: Message<{ 'messages': { parameters: NoParametersType } }, 'en'|'pt-br'|'es'>;
+export declare const VIEW_OPPORTUNITY_ADMIN_INSCRIPTIONS_SECTION: Message<{ 'messages': { parameters: NoParametersType } }, 'en'|'pt-br'|'es'>;
+export declare const VIEW_OPPORTUNITY_ADMIN_INSCRIPTIONS_STATUS_ACTIVE: Message<{ 'messages': { parameters: NoParametersType } }, 'en'|'pt-br'|'es'>;
+export declare const VIEW_OPPORTUNITY_ADMIN_INSCRIPTIONS_STATUS_INACTIVE: Message<{ 'messages': { parameters: NoParametersType } }, 'en'|'pt-br'|'es'>;
+export declare const VIEW_OPPORTUNITY_ADMIN_INSCRIPTIONS_SEE_INSCRIPTION: Message<{ 'messages': { parameters: NoParametersType } }, 'en'|'pt-br'|'es'>;
export declare const VIEW_ORGANIZATION_DATE: Message<{ 'messages': { parameters: NoParametersType } }, 'en'|'pt-br'|'es'>;
export declare const VIEW_ORGANIZATION_MESSAGE_DELETED: Message<{ 'messages': { parameters: NoParametersType } }, 'en'|'pt-br'|'es'>;
export declare const VIEW_ORGANIZATION_QUANTITY_TOTAL: Message<{ 'messages': { parameters: NoParametersType } }, 'en'|'pt-br'|'es'>;
@@ -650,7 +654,3 @@ export declare const VIEW_NOT_FOUND_ERROR_TEXT_SECOND: Message<{ 'messages': { p
export declare const VIEW_NOT_FOUND_ERROR_TEXT_THIRD: Message<{ 'messages': { parameters: NoParametersType } }, 'en'|'pt-br'|'es'>;
export declare const VIEW_NOT_FOUND_ERROR_HOMEPAGE: Message<{ 'messages': { parameters: NoParametersType } }, 'en'|'pt-br'|'es'>;
export declare const VIEW_NOT_FOUND_ERROR_IMAGE: Message<{ 'messages': { parameters: NoParametersType } }, 'en'|'pt-br'|'es'>;
-export declare const VIEW_OPPORTUNITY_ADMIN_INSCRIPTIONS_SECTION: Message<{ 'messages': { parameters: NoParametersType } }, 'pt-br'>;
-export declare const VIEW_OPPORTUNITY_ADMIN_INSCRIPTIONS_STATUS_ACTIVE: Message<{ 'messages': { parameters: NoParametersType } }, 'pt-br'>;
-export declare const VIEW_OPPORTUNITY_ADMIN_INSCRIPTIONS_STATUS_INACTIVE: Message<{ 'messages': { parameters: NoParametersType } }, 'pt-br'>;
-export declare const VIEW_OPPORTUNITY_ADMIN_INSCRIPTIONS_SEE_INSCRIPTION: Message<{ 'messages': { parameters: NoParametersType } }, 'pt-br'>;
diff --git a/var/translations/index.js b/var/translations/index.js
index 3f919b84..32ca537f 100644
--- a/var/translations/index.js
+++ b/var/translations/index.js
@@ -591,6 +591,10 @@ export const VIEW_OPPORTUNITY_QUANTITY_OPENED = {"id":"view.opportunity.quantity
export const VIEW_OPPORTUNITY_QUANTITY_LAST_DAYS = {"id":"view.opportunity.quantity.last_days","translations":{"messages":{"en":"Registered in the last 7 days","pt-br":"Registradas nos \u00faltimos 7 dias","es":"Registradas en los \u00faltimos 7 d\u00edas"}}};
export const VIEW_OPPORTUNITY_PERIOD = {"id":"view.opportunity.period","translations":{"messages":{"en":"Opportunity period","pt-br":"Per\u00edodo da oportunidade","es":"Per\u00edodo de la oportunidad"}}};
export const VIEW_OPPORTUNITY_TYPE_OF = {"id":"view.opportunity.type_of","translations":{"messages":{"en":"Opportunity Type","pt-br":"Tipo de oportunidade","es":"Tipo de la oportunidad"}}};
+export const VIEW_OPPORTUNITY_ADMIN_INSCRIPTIONS_SECTION = {"id":"view.opportunity_admin.inscriptions.section","translations":{"messages":{"en":"Inscriptions","pt-br":"Inscri\u00e7\u00f5es","es":"Inscripciones"}}};
+export const VIEW_OPPORTUNITY_ADMIN_INSCRIPTIONS_STATUS_ACTIVE = {"id":"view.opportunity_admin.inscriptions.status.active","translations":{"messages":{"en":"Active","pt-br":"Ativo","es":"Activo"}}};
+export const VIEW_OPPORTUNITY_ADMIN_INSCRIPTIONS_STATUS_INACTIVE = {"id":"view.opportunity_admin.inscriptions.status.inactive","translations":{"messages":{"en":"Inactive","pt-br":"Inativo","es":"Inactivo"}}};
+export const VIEW_OPPORTUNITY_ADMIN_INSCRIPTIONS_SEE_INSCRIPTION = {"id":"view.opportunity_admin.inscriptions.see_inscription","translations":{"messages":{"en":"See Inscription","pt-br":"Ver Inscri\u00e7\u00e3o","es":"Ver Inscripcione"}}};
export const VIEW_ORGANIZATION_DATE = {"id":"view.organization.date","translations":{"messages":{"en":"Organization was created on","pt-br":"Organiza\u00e7\u00e3o foi criada em","es":"Organizaci\u00f3n fue creada en"}}};
export const VIEW_ORGANIZATION_MESSAGE_DELETED = {"id":"view.organization.message.deleted","translations":{"messages":{"en":"The organization has been deleted","pt-br":"A Organiza\u00e7\u00e3o foi exclu\u00edda","es":"La organizaci\u00f3n ha sido eliminada"}}};
export const VIEW_ORGANIZATION_QUANTITY_TOTAL = {"id":"view.organization.quantity.total","translations":{"messages":{"en":"Organizations Found","pt-br":"Organiza\u00e7\u00f5es Encontradas","es":"Organizaciones Encontradas"}}};
@@ -648,7 +652,3 @@ export const VIEW_NOT_FOUND_ERROR_TEXT_SECOND = {"id":"view.not-found.error-text
export const VIEW_NOT_FOUND_ERROR_TEXT_THIRD = {"id":"view.not-found.error-text_third","translations":{"messages":{"en":"But don't worry, there are many other pages to discover here at Aurora.","pt-br":"Mas n\u00e3o se preocupe, existem muitas outras p\u00e1ginas para conhecer aqui na Aurora.","es":"Pero no te preocupes, hay muchas otras p\u00e1ginas por descubrir aqu\u00ed en Maps."}}};
export const VIEW_NOT_FOUND_ERROR_HOMEPAGE = {"id":"view.not-found.error-homepage","translations":{"messages":{"en":"Back to home page","pt-br":"Voltar para a p\u00e1gina inicial","es":"Volver a la p\u00e1gina de inicio"}}};
export const VIEW_NOT_FOUND_ERROR_IMAGE = {"id":"view.not-found.error-image","translations":{"messages":{"en":"Doubt image","pt-br":"Imagem de d\u00favida","es":"Imagen de duda"}}};
-export const VIEW_OPPORTUNITY_ADMIN_INSCRIPTIONS_SECTION = {"id":"view.opportunity_admin.inscriptions.section","translations":{"messages":{"pt-br":"Inscri\u00e7\u00f5es"}}};
-export const VIEW_OPPORTUNITY_ADMIN_INSCRIPTIONS_STATUS_ACTIVE = {"id":"view.opportunity_admin.inscriptions.status.active","translations":{"messages":{"pt-br":"Ativo"}}};
-export const VIEW_OPPORTUNITY_ADMIN_INSCRIPTIONS_STATUS_INACTIVE = {"id":"view.opportunity_admin.inscriptions.status.inactive","translations":{"messages":{"pt-br":"Inativo"}}};
-export const VIEW_OPPORTUNITY_ADMIN_INSCRIPTIONS_SEE_INSCRIPTION = {"id":"view.opportunity_admin.inscriptions.see_inscription","translations":{"messages":{"pt-br":"Ver Inscri\u00e7\u00e3o"}}};