Skip to content

Commit

Permalink
translation of restricted modal
Browse files Browse the repository at this point in the history
  • Loading branch information
valerioprds committed Nov 21, 2023
1 parent 52786b7 commit 750719f
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class ChallengeHeaderComponent {
challenge_date: Date | undefined;
challenge_level: string | undefined;

isLogged: boolean = true //& tiene que estar en true para que este logueado
isLogged: boolean = false //& tiene que estar en true para que este logueado
solutionSent: boolean = false


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class ChallengeInfoComponent {
solutionsDummy = [{ solutionName: "dummy1" }, { solutionName: "dummy2" }];

showStatement = true;
isLogged: boolean = true //& tiene que estar en true para que este logueado
isLogged: boolean = false //& tiene que estar en true para que este logueado
activeId = 1;

idChallenge!: string | any;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,52 @@

<div class="modal-header align-items-center justify-content-end pb-0">
<div class="close" data-bs-dismiss="modal" (click)="closeModal()" aria-label="Close">
<span></span>
<span></span>
</div>
<div
class="close"
data-bs-dismiss="modal"
(click)="closeModal()"
aria-label="Close"
>
<span></span>
<span></span>
</div>
</div>
<div class="d-flex justify-content-center">
<div class="d-flex flex-column justify-content-center gap-3 col-12 col-md-5 form">
<div class="modal-body d-flex flex-column gap-3 pt-0">
<img src="../../../../assets/img/icon/lock-color.svg" alt="Lock">
<h2 class="modal-title">Acceso restringido</h2>
<p>Regístrate para subir, etregar y ver soluciones a los retos</p>
</div>
<div class="modal-footer d-flex flex-column gap-3 mb-3">
<button type="submit" class="btn btn-primary w-100"(click)="openRegisterModal()">Registrarme</button>
<button type="submit" class="btn btn-outline-primary w-100" (click)="openLoginModal()">Entrar</button>
</div>
</div>
</div>
<div
class="d-flex flex-column justify-content-center gap-3 col-12 col-md-5 form"
>
<div class="modal-body d-flex flex-column gap-3 pt-0">
<img src="../../../../assets/img/icon/lock-color.svg" alt="Lock" />
<h2 class="modal-title">
{{
"modules.modals.restricted.modalTitleRestricted" | translate
}}
</h2>

<p>
<!-- Regístrate para subir, etregar y ver soluciones a los retos -->
{{
"modules.modals.restricted.modalTitleRestricted" | translate
}}
</p>
</div>
<div class="modal-footer d-flex flex-column gap-3 mb-3">
<button
type="submit"
class="btn btn-primary w-100"
(click)="openRegisterModal()"
>
{{
"modules.modals.restricted.registerButton" | translate
}}
</button>
<button
type="submit"
class="btn btn-outline-primary w-100"
(click)="openLoginModal()"
>
{{
"modules.modals.restricted.enterButton" | translate
}}
</button>
</div>
</div>
</div>
3 changes: 3 additions & 0 deletions src/assets/i18n/cat.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@
"openRegisterModal": "Tens compte?, accedir"
},
"restricted":{
"modalTitleRestricted": "Accés Restringit",
"registerButton": "Dóna'm d'alta",
"enterButton": "Entrar"

},
"send-solution":{
Expand Down
4 changes: 4 additions & 0 deletions src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@
"openRegisterModal": "Do you have an account?, log in"
},
"restricted":{
"modalTitleRestricted": "Restricted Access",
"registerButton": "Sign me-up",
"enterButton": "Enter"


},
"send-solution":{
Expand Down
3 changes: 3 additions & 0 deletions src/assets/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@
"openRegisterModal": "¿Tienes cuenta?, acceder"
},
"restricted":{
"modalTitleRestricted": "Acceso restringido",
"registerButton": "Registrame",
"enterButton": "Entrar"

},
"send-solution":{
Expand Down

0 comments on commit 750719f

Please sign in to comment.