Skip to content
This repository has been archived by the owner on Feb 4, 2025. It is now read-only.

Commit

Permalink
Límite de campos en todo menos en el login (#190)
Browse files Browse the repository at this point in the history
* Límite de campos en todo menos en el login

* Arreglada una traducción

* Ajustados los validadores (por límite de caracteres)
  • Loading branch information
hiraryw64 authored Dec 10, 2024
1 parent 3450a51 commit 7e9c03b
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="grid-container">
<div class="nombre">
<label for="REQ_LNAME">{{'REQ_LNAME' | oTranslate}}</label>
<o-text-input [validators]="validatorsWithoutSpace" attr="name" required="yes"></o-text-input>
<o-text-input [validators]="validatorsWithoutSpace" attr="name" max-length="100" required="yes"></o-text-input>
</div>
<div>
<label class="daterange">{{ 'REQ_Fecha Inicio/Fecha Fin' | oTranslate }}</label>
Expand All @@ -25,7 +25,7 @@
</div>
<div class="descripcion">
<label for="LDESPCRIPTION">{{'LDESPCRIPTION' | oTranslate}}</label>
<o-textarea-input attr="description" required="no" max-length="200"></o-textarea-input>
<o-textarea-input attr="description" required="no" max-length="150"></o-textarea-input>
</div>
<div class="notas">
<label for="LNOTE">{{'LNOTE' | oTranslate}}</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
</div>
<div class="descripcion">
<label for="LDESPCRIPTION">{{'LDESPCRIPTION' | oTranslate}}</label>
<o-textarea-input attr="description" required="no" max-length="200"></o-textarea-input>
<o-textarea-input attr="description" required="no" max-length="150"></o-textarea-input>
</div>
<div class="notas">
<label for="LNOTE">{{'LNOTE' | oTranslate}}</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="grid-container">
<div>
<label for="REQ_LSITUATION">{{'REQ_LSITUATION' | oTranslate}}</label>
<o-text-input label-visible="false" attr="situation" required="yes" max-length="100"></o-text-input>
<o-text-input label-visible="false" attr="situation" required="yes" max-length="40"></o-text-input>
</div>
<div fxLayout="row" fxLayoutGap="16px" fxLayoutWrap style="margin-top: 10px;">
<o-button attr="addbutton" id="Add" type="RAISED" label="Add" color="primary" (click)="employment_status_new.insert()"></o-button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="grid-container">
<div>
<label for="REQ_LSTUDENTSTATUS">{{'REQ_LSTUDENTSTATUS' | oTranslate}}</label>
<o-text-input label-visible="false" attr="status" required="yes" max-length="100"></o-text-input>
<o-text-input label-visible="false" attr="status" required="yes" max-length="40"></o-text-input>
</div>
<div fxLayout="row" fxLayoutGap="16px" fxLayoutWrap style="margin-top: 10px;">
<o-button attr="addbutton" id="Add" type="RAISED" label="Add" color="primary" (click)="student_status_new.insert()"></o-button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
</div>
<div>
<label for="location">{{'LLOCATION' | oTranslate}}</label>
<o-text-input attr="location" required="no" (input)="toUpperCamelCase($event)"></o-text-input>
<o-text-input attr="location" required="no" max-length="30" (input)="toUpperCamelCase($event)"></o-text-input>
</div>

<label for="student_status">{{'LSTATUS' | oTranslate}}</label>
Expand All @@ -87,7 +87,7 @@
<div class="usuario">
<label for="usuario">{{'USER' | oTranslate}}</label>
<o-text-input attr="usr_login" [validators]="validatorsWithoutSpace" required="no" id="name"
max-length="255"></o-text-input>
max-length="50"></o-text-input>
</div>
<div class="contraseña">
<label for="contraseña">{{'PASSWORD' | oTranslate}}</label>
Expand All @@ -109,11 +109,11 @@
</div>
<div>
<label for="REQ_LEMAIL">{{'REQ_LEMAIL'|oTranslate}}</label>
<o-email-input attr="personal_email" required="yes"></o-email-input>
<o-email-input attr="personal_email" max-length="200" required="yes"></o-email-input>
</div>
<div>
<label for="LCAMPUS_EMAIL">{{'LCAMPUS_EMAIL' | oTranslate}}</label>
<o-email-input attr="campus_email" required="no"></o-email-input>
<o-email-input attr="campus_email" max-length="200" required="no"></o-email-input>
</div>
</fieldset>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,25 @@
</div>
<div class="nombre">
<label for="name">{{'REQ_LNAME'|oTranslate}}</label>
<o-text-input attr="name" required="yes" id="name" [validators]="validatorsWithoutSpace" max-length="255"
<o-text-input attr="name" required="yes" id="name" [validators]="validatorsWithoutSpace" max-length="150"
(input)="toUpperCamelCase($event)"></o-text-input>
</div>
<div class="apellido">
<label for="surname1">{{'REQ_LSURNAME1'|oTranslate}}</label>
<o-text-input attr="surname1" [validators]="validatorsWithoutSpace" required="yes" max-length="255"
<o-text-input attr="surname1" [validators]="validatorsWithoutSpace" required="yes" max-length="150"
(input)="toUpperCamelCase($event)"></o-text-input>
</div>
<div class="apellido2">
<label for="surname2">{{'LSURNAME2' | oTranslate}}</label>
<o-text-input attr="surname2" required="no" max-length="255"
<o-text-input attr="surname2" required="no" max-length="150"
(input)="toUpperCamelCase($event)"></o-text-input>
</div>
</div>
<div class="datosPrincipales2">
<div class="sepGitUdemy">
<div class="githubUser">
<label for="LGITHUB_USER">{{'LGITHUB_USER' | oTranslate}}</label>
<o-text-input attr="github_user" required="no" max-length="200"></o-text-input>
<o-text-input attr="github_user" required="no" max-length="150"></o-text-input>
</div>
<div class="udemy">
<div class="checkbox-container">
Expand Down Expand Up @@ -62,7 +62,7 @@
</div>
<div class="location">
<label for="location">{{'LLOCATION' | oTranslate}}</label>
<o-text-input attr="location" required="no" (input)="toUpperCamelCase($event)"></o-text-input>
<o-text-input attr="location" required="no" max-length="30" (input)="toUpperCamelCase($event)"></o-text-input>
</div>
<div class="status">
<div class="studentStatus">
Expand All @@ -80,12 +80,12 @@
<legend>Login</legend>
<div class="usuario">
<label for="REQ_USER">{{'USER' | oTranslate}}</label>
<o-text-input attr="usr_login" required="no" id="name" max-length="255"
<o-text-input attr="usr_login" required="no" id="name" max-length="50"
[validators]="validatorsWithoutSpace"></o-text-input>
</div>
<div class="contraseña">
<label for="REQ_PASSWORD">{{'PASSWORD' | oTranslate}}</label>
<o-password-input attr="usr_password" required="no" show-password-button="false" in-length="8"
<o-password-input attr="usr_password" required="no" max-length="60" show-password-button="false" in-length="8"
[validators]="validatorsNewPasswordArray">
<o-validator error-name="hasCapitalCase" error-text="VALIDATOR.HASCAPITALCASE"></o-validator>
<o-validator error-name="hasNumber" error-text="VALIDATOR.HASNUMBER"></o-validator>
Expand All @@ -104,11 +104,11 @@
</div>
<div class="email">
<label for="Personal email">{{'REQ_LEMAIL'|oTranslate}}</label>
<o-email-input attr="personal_email" required="yes"></o-email-input>
<o-email-input attr="personal_email" max-length="200" required="yes"></o-email-input>
</div>
<div class="emailCampus">
<label for="campus_email">{{'LCAMPUS_EMAIL' | oTranslate}}</label>
<o-email-input attr="campus_email" required="no"></o-email-input>
<o-email-input attr="campus_email" max-length="200" required="no"></o-email-input>
</div>
</fieldset>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@
<p class="p_info_foto">{{'Info_foto' | oTranslate}}</p>
<div class="email">
<label for="LEMAIL">{{'REQ_LEMAIL'|oTranslate}}</label>
<o-email-input attr="email" required="yes" [validators]="validatorsWithoutSpace"></o-email-input>
<o-email-input attr="email" required="yes" max-length="200" [validators]="validatorsWithoutSpace"></o-email-input>
</div>
</div>
<div class="datosPrincipales2">
<div class="nombre">
<label for="name">{{'REQ_LNAME'|oTranslate}}</label>
<o-text-input attr="name" required="yes" id="name" max-length="255" (input)="toUpperCamelCase($event)"
<o-text-input attr="name" required="yes" id="name" max-length="150" (input)="toUpperCamelCase($event)"
[validators]="validatorsWithoutSpace"></o-text-input>
</div>
<div class="apellido">
<label for="surname1">{{'REQ_LSURNAME1'|oTranslate}}</label>
<o-text-input attr="surname1" required="yes" max-length="255" (input)="toUpperCamelCase($event)"
<o-text-input attr="surname1" required="yes" max-length="150" (input)="toUpperCamelCase($event)"
[validators]="validatorsWithoutSpace"></o-text-input>
</div>
<div class="apellido2">
<label for="surname2">{{'LSURNAME2' | oTranslate}}</label>
<o-text-input attr="surname2" required="no" max-length="255"
<o-text-input attr="surname2" required="no" max-length="150"
(input)="toUpperCamelCase($event)"></o-text-input>
</div>
</div>
Expand All @@ -44,11 +44,11 @@
<div>
<label for="usuario">{{'USER' | oTranslate}}</label>
<o-text-input attr="usr_login" [validators]="validatorsWithoutSpace" required="no" id="name"
max-length="255"></o-text-input>
max-length="50"></o-text-input>
</div>
<div>
<label for="contraseña">{{'PASSWORD' | oTranslate}}</label>
<o-password-input attr="usr_password" required="no" show-password-button="false" in-length="8"
<o-password-input attr="usr_password" required="no" max-length="60" show-password-button="false" in-length="8"
[validators]="validatorsNewPasswordArray">
<o-validator error-name="hasCapitalCase" error-text="VALIDATOR.HASCAPITALCASE"></o-validator>
<o-validator error-name="hasNumber" error-text="VALIDATOR.HASNUMBER"></o-validator>
Expand Down
3 changes: 2 additions & 1 deletion cd2024bfs4g1-frontend/src/main/ngx/src/assets/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@
"SLIDE_SEARCH": "Búsqueda conjunta",
"SLIDE_TT": "Activa la búsqueda para campos complejos",
"LOCALE_gal": "GAL",
"BOOTCAMP_HAS_STUDENTS":"El bootcamp que quieres borrar tiene alumnos asignados",
"BOOTCAMP_HAS_STUDENTS":"El bootcamp que quieres borrar tiene alumnos o tutores asignados",
"TUTOR_HAS_BOOTCAMPS": "El tutor que quieres borrar tiene bootcamps asignados",
"description":"Descripción",
"notes":"Notas",
"First Surname": "Primer apellido",
Expand Down

0 comments on commit 7e9c03b

Please sign in to comment.