Camibos a html y otras cosas peqeñas

master
vicsash 6 months ago
parent 1680d87945
commit 4883c6e2ed

@ -1,7 +0,0 @@
package com.example.proyectofinal.controllers;
import org.springframework.stereotype.Controller;
@Controller
public class EmailController {
}

@ -44,7 +44,7 @@ public class Alumno {
private String genero;
@NonNull
@Column(length = 45)
@Column(length = 8)
private String nia;
@NonNull

@ -20,12 +20,11 @@ public class Ciclo {
private long id;
@NonNull
@Column(length = 70)
@Column(length = 100)
private String nombre;
//TODO add String codigo 40
@NonNull
@Column(length = 70)
@Column(length = 15)
private String codigo;
@ManyToOne(cascade = {CascadeType.PERSIST,CascadeType.MERGE,CascadeType.REFRESH},fetch = FetchType.EAGER)

@ -21,20 +21,20 @@ public class Contacto {
private long id;
@NonNull
@Column(length = 75)
@Column(length = 100)
private String nombre;
@NonNull
@Column(length = 125)
@Column(length = 100)
private String apellido;
@Column(length = 125)
@Column(length = 100)
private String apellido2;
@Column(length = 100)
private String correo;
@Column(length = 70)
@Column(length = 10)
private String telefono;
@ManyToOne(cascade = {CascadeType.PERSIST,CascadeType.MERGE,CascadeType.REFRESH},fetch = FetchType.EAGER)

@ -19,11 +19,11 @@ public class Empresa {
private long id;
@NonNull
@Column(length = 70)
@Column(length = 100)
private String nombre;
@NonNull
@Column(length = 70)
@Column(length = 9)
private String cif;
@NonNull
@ -31,7 +31,7 @@ public class Empresa {
private String correo;
@NonNull
@Column(length = 70)
@Column(length = 10)
private String telefono;

@ -17,7 +17,7 @@ public class Familia {
private long id;
@NonNull
@Column(length = 70)
@Column(length = 100)
private String nombre;
public Familia(@NonNull String nombre) {

@ -23,7 +23,7 @@ public class Oferta {
private long id;
@NonNull
@Column(length = 70)
@Column(length = 100)
private String nombre;
//TODO see the order of elements

@ -17,7 +17,7 @@ public class Sector {
private long id;
@NonNull
@Column(length = 75)
@Column(length = 100)
private String nombre;
}

@ -22,7 +22,7 @@ public class Skill {
private long id;
@NonNull
@Column(length = 75)
@Column(length = 100)
private String nombre;
@JsonBackReference

@ -20,11 +20,11 @@ public class Sucursal {
private long id;
@NonNull
@Column(length = 75)
@Column(length = 100)
private String nombre;
@NonNull
@Column(length = 75)
@Column(length = 100)
private String localidad;
@NonNull

@ -222,11 +222,10 @@ public class OfertaService implements IOferta {
sbMessage.append("Empresa: ").append(oferta.getSucursal().getEmpresa().getNombre()).append("\n");
System.out.println("TEST " + alumno.getNombre());
System.out.println("TEST CORREO " + alumno.getCorreo());
//mailService.sendEmail(alumno.getCorreo(), "Nueva oferta de practicas", sbMessage.toString());
mailService.sendEmail(alumno.getCorreo(), "Nueva oferta de practicas", sbMessage.toString());
if(alumno.getCorreo2() != null){
//mailService.sendEmail(alumno.getCorreo2(), "Nueva oferta de practicas", sbMessage.toString());
mailService.sendEmail(alumno.getCorreo2(), "Nueva oferta de practicas", sbMessage.toString());
}
}
}

@ -35,9 +35,28 @@
form input[type="submit"], form input[type="button"] {
width: 100px;
}
form input[type="text"]{
width: 75%;
form input {
width: 85%;
height: 20px;
font-size: 18px;
}
#keywords {
width: 100%;
height: auto;
min-height: 40px;
}
.tagify {
width: 100%; /* Limit the width to the parent's width */
height: auto; /* Adjusts the height automatically based on content */
min-height: 40px; /* Minimum height when there are no or few keywords */
display: block; /* Makes the input field a block-level element */
white-space: pre-wrap; /* Allows the input field to wrap its contents */
overflow-wrap: break-word; /* Breaks the word in case it's too long */
}
form label{
font-size: 20px;
margin-bottom: 10px;
@ -134,7 +153,7 @@
<div class="form-group row">
<label class="col-sm-3 col-form-label" for="keywords">Keywords</label>
<div class="col-sm-9">
<input name="tags" id="keywords" placeholder="Introduce keywords">
<input name="tags" id="keywords" class ="tagify" placeholder="Introduce keywords">
</div>
</div>
@ -173,6 +192,9 @@
$('#skills').select2();
var tagifyInput = document.querySelector('input[name=tags]');
var tagify = new Tagify(tagifyInput, {
dropdown:{
enabled: 0
},
callbacks: {
add: function(e){
if(e.detail.data.value.trim() === ""){
@ -195,8 +217,6 @@
var tags = tagify.value.map(function(tagData) {
return tagData.value ? tagData.value.trim() : null;
}).filter(function(tag) { return tag; });
// Convert the tags array to a comma-separated string
var joinedKeywords = tags.join(',');
formDataArray.push({name: 'ciclo', value: $('#ciclo').val()});

@ -75,7 +75,7 @@
<div class ="form-group row">
<label class="col-sm-3 col-form-label" for="apellido2">Apellido2</label>
<div class = "col-sm-9">
<input type="text" th:field="*{apellido2}" required minlength="1" maxlength="100" class="form-control" id="apellido2">
<input type="text" th:field="*{apellido2}" minlength="1" maxlength="100" class="form-control" id="apellido2">
</div>
</div>
@ -121,7 +121,7 @@
<div class="form-group row">
<label class="col-sm-3 col-form-label" for="correo2">Correo2</label>
<div class="col-sm-9">
<input type="email" th:field="*{correo2}" minlength="5" maxlength="100"class="form-control" id="correo2" title="Introduce correo alternativo">
<input type="email" th:field="*{correo2}" minlength="5" maxlength="100" class="form-control" id="correo2" title="Introduce correo alternativo">
</div>
</div>

@ -57,28 +57,28 @@
<div class ="form-group row">
<label class="col-sm-3 col-form-label" for="nombre">Nombre</label>
<div class = "col-sm-9">
<input type="text" th:field="*{nombre}" required minlength="2" maxlength="75" class="form-control" id="nombre">
<input type="text" th:field="*{nombre}" required minlength="2" maxlength="100" class="form-control" id="nombre">
</div>
</div>
<div class ="form-group row">
<label class="col-sm-3 col-form-label" for="cif">Apellido</label>
<div class = "col-sm-9">
<input type="text" th:field="*{apellido}" required minlength="2" maxlength="75" title="Entra un nombre" class="form-control" id="cif">
<input type="text" th:field="*{apellido}" required minlength="2" maxlength="100" title="Entra un nombre" class="form-control" id="cif">
</div>
</div>
<div class ="form-group row">
<label class="col-sm-3 col-form-label" for="apellido2">Apellido2</label>
<div class = "col-sm-9">
<input type="text" th:field="*{apellido2}" minlength="2" maxlength="75" class="form-control" id="apellido2">
<input type="text" th:field="*{apellido2}" minlength="2" maxlength="100" class="form-control" id="apellido2">
</div>
</div>
<div class ="form-group row">
<label class="col-sm-3 col-form-label" for="correo">Correo</label>
<div class = "col-sm-9">
<input type="text" th:field="*{correo}" title="Entra en correo valido." class="form-control" id="correo">
<input type="email" th:field="*{correo}" maxlength="100" title="Entra en correo valido." class="form-control" id="correo">
</div>
</div>

@ -57,28 +57,28 @@
<div class ="form-group row">
<label class="col-sm-3 col-form-label" for="nombre">Nombre</label>
<div class = "col-sm-9">
<input type="text" th:field="*{nombre}" required minlength="2" maxlength="75" class="form-control" id="nombre">
<input type="text" th:field="*{nombre}" required minlength="2" maxlength="100" class="form-control" id="nombre">
</div>
</div>
<div class ="form-group row">
<label class="col-sm-3 col-form-label" for="cif">Apellido</label>
<div class = "col-sm-9">
<input type="text" th:field="*{apellido}" required minlength="2" maxlength="75" title="Entra un nombre" class="form-control" id="cif">
<input type="text" th:field="*{apellido}" required minlength="2" maxlength=100" title="Entra un nombre" class="form-control" id="cif">
</div>
</div>
<div class ="form-group row">
<label class="col-sm-3 col-form-label" for="apellido2">Apellido2</label>
<div class = "col-sm-9">
<input type="text" th:field="*{apellido2}" minlength="2" maxlength="75" class="form-control" id="apellido2">
<input type="text" th:field="*{apellido2}" minlength="2" maxlength="100" class="form-control" id="apellido2">
</div>
</div>
<div class ="form-group row">
<label class="col-sm-3 col-form-label" for="correo">Correo</label>
<div class = "col-sm-9">
<input type="text" th:field="*{correo}" required pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$" title="Entra en correo valido." class="form-control" id="correo">
<input type="email" th:field="*{correo}" maxlength="100" title="Entra en correo valido." class="form-control" id="correo">
</div>
</div>
<div class ="form-group row">

@ -59,7 +59,7 @@
<div class ="form-group row">
<label class="col-sm-3 col-form-label" for="nombre">Nombre</label>
<div class = "col-sm-9">
<input type="text" th:field="*{nombre}" required minlength="2" maxlength="128" class="form-control" id="nombre">
<input type="text" th:field="*{nombre}" required minlength="2" maxlength="100" class="form-control" id="nombre">
</div>
</div>
@ -110,12 +110,12 @@
</form>
<script>
var tagify; // Declare tagify outside of the $(document).ready() function
var tagify;
$(document).ready(function() {
// Set the value of the keywords input field
var tagifyInput = document.querySelector('input[name=tags]');
tagify = new Tagify(tagifyInput); // Initialize tagify
tagify = new Tagify(tagifyInput);
});
function goBack() {

@ -60,7 +60,7 @@
<div class ="form-group row">
<label class="col-sm-3 col-form-label" for="nombre">Nombre</label>
<div class = "col-sm-9">
<input type="text" th:field="*{nombre}" th:value="*{nombre}" required minlength="2" maxlength="128" class="form-control" id="nombre">
<input type="text" th:field="*{nombre}" th:value="*{nombre}" required minlength="2" maxlength="100" class="form-control" id="nombre">
</div>
</div>
@ -74,7 +74,7 @@
<div class ="form-group row">
<label class="col-sm-3 col-form-label" for="correo">Correo</label>
<div class = "col-sm-9">
<input type="text" th:field="*{correo}" th:value="*{correo}" required pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$" title="Entra en correo valido." class="form-control" id="correo">
<input type="email" th:field="*{correo}" th:value="*{correo}" required title="Entra en correo valido." class="form-control" id="correo">
</div>
</div>

@ -56,7 +56,7 @@
<div class ="form-group row">
<label class="col-sm-3 col-form-label" for="nombre">Nombre</label>
<div class = "col-sm-9">
<input type="text" th:field="*{nombre}" required minlength="2" maxlength="75" class="form-control" id="nombre">
<input type="text" th:field="*{nombre}" required minlength="2" maxlength="100" class="form-control" id="nombre">
</div>
</div>

@ -57,7 +57,7 @@
<div class ="form-group row">
<label class="col-sm-3 col-form-label" for="nombre">Nombre</label>
<div class = "col-sm-9">
<input type="text" th:field="*{nombre}" required minlength="2" maxlength="75" class="form-control" id="nombre">
<input type="text" th:field="*{nombre}" required minlength="2" maxlength="100" class="form-control" id="nombre">
</div>
</div>
<div class="text-center">

@ -58,7 +58,7 @@
<div class ="form-group row">
<label class="col-sm-3 col-form-label" for="nombre">Nombre</label>
<div class = "col-sm-9">
<input type="text" th:field="*{nombre}" required minlength="2" maxlength="128" class="form-control" id="nombre">
<input type="text" th:field="*{nombre}" required minlength="2" maxlength="100" class="form-control" id="nombre">
</div>
</div>
@ -72,7 +72,7 @@
<div class ="form-group row">
<label class="col-sm-3 col-form-label" for="descripcion">Descripcion</label>
<div class = "col-sm-9">
<input type="text" th:field="*{descripcion}" class="form-control" id="descripcion">
<input type="text" th:field="*{descripcion}" required maxlength="2500" class="form-control" id="descripcion">
</div>
</div>

@ -59,7 +59,7 @@
<div class ="form-group row">
<label class="col-sm-3 col-form-label" for="nombre">Nombre</label>
<div class = "col-sm-9">
<input type="text" th:field="*{nombre}" required minlength="2" maxlength="128" class="form-control" id="nombre">
<input type="text" th:field="*{nombre}" required minlength="2" maxlength="100" class="form-control" id="nombre">
</div>
</div>
@ -73,7 +73,7 @@
<div class ="form-group row">
<label class="col-sm-3 col-form-label" for="descripcion">Descripcion</label>
<div class = "col-sm-9">
<input type="text" th:field="*{descripcion}" class="form-control" id="descripcion">
<input type="text" th:field="*{descripcion}" required maxlength="2500" class="form-control" id="descripcion">
</div>
</div>

@ -57,7 +57,7 @@
<div class ="form-group row">
<label class="col-sm-3 col-form-label" for="nombre">Nombre</label>
<div class = "col-sm-9">
<input type="text" th:field="*{nombre}" required minlength="2" maxlength="128" class="form-control" id="nombre">
<input type="text" th:field="*{nombre}" required minlength="2" maxlength="100" class="form-control" id="nombre">
</div>
</div>
<div class="text-center">

@ -58,7 +58,7 @@
<div class ="form-group row">
<label class="col-sm-3 col-form-label" for="nombre">Nombre</label>
<div class = "col-sm-9">
<input type="text" th:field="*{nombre}" th:value="*{nombre}" required minlength="2" maxlength="128" class="form-control" id="nombre">
<input type="text" th:field="*{nombre}" th:value="*{nombre}" required minlength="2" maxlength="100" class="form-control" id="nombre">
</div>
</div>
<div class="text-center">

@ -56,7 +56,7 @@
<div class ="form-group row">
<label class="col-sm-3 col-form-label" for="nombre">Nombre</label>
<div class = "col-sm-9">
<input type="text" th:field="*{nombre}" required minlength="2" maxlength="128" class="form-control" id="nombre">
<input type="text" th:field="*{nombre}" required minlength="2" maxlength="100" class="form-control" id="nombre">
</div>
</div>
<div class="text-center">

@ -58,7 +58,7 @@
<div class ="form-group row">
<label class="col-sm-3 col-form-label" for="nombre">Nombre</label>
<div class = "col-sm-9">
<input type="text" th:field="*{nombre}" required minlength="2" maxlength="128" class="form-control" id="nombre">
<input type="text" th:field="*{nombre}" required minlength="2" maxlength="100" class="form-control" id="nombre">
</div>
</div>

@ -57,28 +57,28 @@
<div class ="form-group row">
<label class="col-sm-3 col-form-label" for="nombre">Nombre</label>
<div class = "col-sm-9">
<input type="text" th:field="*{nombre}" required minlength="2" maxlength="128" class="form-control" id="nombre">
<input type="text" th:field="*{nombre}" required minlength="2" maxlength="100" class="form-control" id="nombre">
</div>
</div>
<div class ="form-group row">
<label class="col-sm-3 col-form-label" for="localidad">Localidad</label>
<div class = "col-sm-9">
<input type="text" th:field="*{localidad}" required minlength="2" maxlength="75" title="Entra una localidad valida" class="form-control" id="localidad">
<input type="text" th:field="*{localidad}" required minlength="2" maxlength="100" title="Entra una localidad valida" class="form-control" id="localidad">
</div>
</div>
<div class ="form-group row">
<label class="col-sm-3 col-form-label" for="direccion">Direccion</label>
<div class = "col-sm-9">
<input type="text" th:field="*{direccion}" required minlength="2" maxlength="75" title="Entra una dirreccion valida." class="form-control" id="direccion">
<input type="text" th:field="*{direccion}" required minlength="2" maxlength="100" title="Entra una dirreccion valida." class="form-control" id="direccion">
</div>
</div>
<div class ="form-group row">
<label class="col-sm-3 col-form-label" for="sedeCentral">Sede Central</label>
<div class = "col-sm-9">
<input type="number" th:field="*{sedeCentral}" required min="0" max="1" title="Entra 0 o 1" class="form-control" id="sedeCentral">
<input type="number" th:field="*{sedeCentral}" required min="0" max="1" title="Entra 0 falso o 1 verdad" class="form-control" id="sedeCentral">
</div>
</div>

@ -57,28 +57,28 @@
<div class ="form-group row">
<label class="col-sm-3 col-form-label" for="nombre">Nombre</label>
<div class = "col-sm-9">
<input type="text" th:field="*{nombre}" required minlength="2" maxlength="128" class="form-control" id="nombre">
<input type="text" th:field="*{nombre}" required minlength="2" maxlength="100" class="form-control" id="nombre">
</div>
</div>
<div class ="form-group row">
<label class="col-sm-3 col-form-label" for="localidad">Localidad</label>
<div class = "col-sm-9">
<input type="text" th:field="*{localidad}" required minlength="2" maxlength="75" title="Entra una localidad valida" class="form-control" id="localidad">
<input type="text" th:field="*{localidad}" required minlength="2" maxlength="100" title="Entra una localidad valida" class="form-control" id="localidad">
</div>
</div>
<div class ="form-group row">
<label class="col-sm-3 col-form-label" for="direccion">Direccion</label>
<div class = "col-sm-9">
<input type="text" th:field="*{direccion}" required minlength="2" maxlength="75" title="Entra una dirreccion valida." class="form-control" id="direccion">
<input type="text" th:field="*{direccion}" required minlength="2" maxlength="100" title="Entra una dirreccion valida." class="form-control" id="direccion">
</div>
</div>
<div class ="form-group row">
<label class="col-sm-3 col-form-label" for="sedeCentral">Sede Central</label>
<div class = "col-sm-9">
<input type="text" th:field="*{sedeCentral}" pattern="[0-1]" title="Enter either 0 or 1" class="form-control" id="sedeCentral" th:value="${sedeCentral}">
<input type="text" th:field="*{sedeCentral}" pattern="[0-1]" title="Entra 0 falso o 1 verdad" class="form-control" id="sedeCentral" th:value="${sedeCentral}">
</div>
</div>

@ -55,28 +55,28 @@
<div class="form-group row">
<label class="col-sm-3 col-form-label" for="nombreUsuario">Username:</label>
<div class="col-sm-9">
<input type="text" th:field="*{nombreUsuario}" id="nombreUsuario" required class="form-control">
<input type="text" th:field="*{nombreUsuario}" id="nombreUsuario" required maxlength="250" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-sm-3 col-form-label" for="nombreLogIn">Login Name:</label>
<div class="col-sm-9">
<input type="text" th:field="*{nombreLogIn}" id="nombreLogIn" required class="form-control">
<input type="text" th:field="*{nombreLogIn}" id="nombreLogIn" required maxlength="70" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-sm-3 col-form-label" for="email">Email:</label>
<div class="col-sm-9">
<input type="email" th:field="*{email}" id="email" required class="form-control">
<input type="email" th:field="*{email}" id="email" required maxlength="100" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-sm-3 col-form-label" for="password">Password:</label>
<div class="col-sm-9">
<input type="password" th:field="*{password}" id="password" required class="form-control">
<input type="password" th:field="*{password}" id="password" required maxlength="60" class="form-control">
</div>
</div>

@ -58,7 +58,7 @@
<label class="col-sm-3 col-form-label" for="nombreUsuario">Username:</label>
<div class="col-sm-9">
<select id="userSelect">
<option th:each="user : ${users}" th:value="${user.id}" th:text="${user.nombreUsuario}"></option>
<option th:each="user : ${users}" th:value="${user.id}" th:text="${user.nombreUsuario}"></option>
</select>
</div>
</div>
@ -68,21 +68,21 @@
<div class="form-group row">
<label class="col-sm-3 col-form-label" for="nombreUsuario">Username:</label>
<div class="col-sm-9">
<input type="text" th:field="*{nombreUsuario}" id="nombreUsuario" required class="form-control">
<input type="text" th:field="*{nombreUsuario}" id="nombreUsuario" required maxlength="250" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-sm-3 col-form-label" for="nombreLogIn">Login Name:</label>
<div class="col-sm-9">
<input type="text" th:field="*{nombreLogIn}" id="nombreLogIn" required class="form-control">
<input type="text" th:field="*{nombreLogIn}" id="nombreLogIn" required maxlength=" 70" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-sm-3 col-form-label" for="email">Email:</label>
<div class="col-sm-9">
<input type="email" th:field="*{email}" id="email" required class="form-control">
<input type="email" th:field="*{email}" id="email" required maxlength="100" class="form-control">
</div>
</div>
@ -96,7 +96,7 @@
<div class="form-group row">
<label class="col-sm-3 col-form-label" for="confirmPassword">Confirm Password:</label>
<div class="col-sm-9">
<input type="password" id="confirmPassword" required class="form-control" value="" placeholder=" Confirmar contraseña" disabled>
<input type="password" id="confirmPassword" required maxlength="60" class="form-control" value="" placeholder=" Confirmar contraseña" disabled>
</div>
</div>

Loading…
Cancel
Save

Powered by INFORMATICA.FP.EDU.ES.