<%- include("template/head.ejs", {tituloWeb})%>
    <link rel="stylesheet" href="/css/register.css">
    </head>

    <body class="problema">
        <%- include("template/header.ejs", {tituloWeb:"Inicio"})%>
        <main class="container-fluid mainproblem">

            <div class="container">
                <div class="row justify-content-center containerFormat">
                    <form action="/problem" class="rounded bg-dark p-4 text-white align-self-center" method="POST">
                        <div class="mt-2 text-center">
                            <h1 class="display-6">Problema</h1>
                        </div>
                        <div class="mb-3 pt-4 ps-5 pe-5">
                            <label for="problema" class="form-label">Asunto</label>
                            <input type="text" class="form-control" id="gasto" placeholder="Nombre del Problema"
                                name="asunto">
                        </div>
                        <div class="mb-3 pt-4 ps-5 pe-5">
                            <label for="descripcionproblema" class="form-label">Descripcion</label>
                            <input type="text" class="form-control" id="descripcionproblema"
                                placeholder="Descripcion del Problema" name="descripcion">
                        </div>
                        <div class="mb-3 pt-4 ps-5 pe-5">
                            <label for="remitente" class="form-label">Remitente</label>
                            <input type="text" class="form-control" id="remitente" placeholder="Remitente Correo"
                                name="remitente" readonly="readonly" value="<%=usuario.nombre%>">
                        </div>
                        <div class="row justify-content-center">
                            <div class="col-12 col-sm-6 text-center">
                                <button type="submit" class="btn btn-success mt-5 buttonFormat me-md-5 me-lg-5 me-xl-5">Enviar
                                    Correo</button>
                            </div>
                            <div class="col-12 col-sm-6 text-center">
                                <a class="btn btn-success mt-5 buttonFormat" href="/">Volver</a>
                            </div>
                            <%if (error){%>
                                <p class="text-center mt-4 p-1 bg-danger">Rellena todos los campos correctamente</p>
                                <%}%>
                                    <%if (success){%>
                                        <p class="text-center mt-4 p-1 bg-success">Problema enviado satisfactoriamente
                                        </p>
                                        <%}%>
                        </div>
                    </form>
                </div>
            </div>
        </main>
        <%- include("template/footerfixed.ejs")%>