166 lines
7.7 KiB
HTML
166 lines
7.7 KiB
HTML
<?xml version='1.0' encoding='UTF-8' ?>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3c.org/1999/xhtml"
|
|
xmlns:h="http://xmlns.jcp.org/jsf/html"
|
|
xmlns:f="http://java.sun.com/jsf/core">
|
|
<h:head>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<link rel="stylesheet" href="https://unpkg.com/tachyons@4.10.0/css/tachyons.min.css"/>
|
|
<link rel="stylesheet" href="https://unpkg.com/normalize.css@8.0.1/normalize.css"/>
|
|
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet"/>
|
|
<h:outputStylesheet library="css" name="all.css"/>
|
|
<style>
|
|
body {
|
|
font-family: 'Open Sans', sans-serif;
|
|
}
|
|
</style>
|
|
</h:head>
|
|
<body class="black-70 pa4">
|
|
<h:form rendered="#{userBean.isLogged() and userBean.isClient()}">
|
|
|
|
<div class="flex justify-between">
|
|
<h1 class="f1 w-100 dib">¡Bienvenido #{clienteBean.cliente.nombre}!</h1>
|
|
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-red" immediate="true" action="#{userBean.logout()}" style="margin-top: auto; margin-bottom: auto">
|
|
<li class="fas fa-sign-out-alt"></li> Cerrar sesion
|
|
</h:commandLink>
|
|
</div>
|
|
|
|
<h2 class="f2">Productos</h2>
|
|
|
|
<!--
|
|
////////////////////////////////////////////////////////////////////
|
|
///////////////////////////Cuentas Corrientes///////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
-->
|
|
<h3 class="f3">Cuentas Corrientes</h3>
|
|
|
|
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3" value="#{clienteBean.cliente.cuentaCorrienteList}" var="cuentaCorriente">
|
|
<h:column>
|
|
<f:facet name="header">
|
|
<h:outputLabel value="Id"/>
|
|
</f:facet>
|
|
<h:outputLabel value="#{cuentaCorriente.id}"/>
|
|
</h:column>
|
|
<h:column>
|
|
<f:facet name="header">
|
|
<h:outputLabel value="Saldo"/>
|
|
</f:facet>
|
|
<h:outputLabel value="#{cuentaCorriente.saldo}"/>
|
|
</h:column>
|
|
<h:column>
|
|
<f:facet name="header">
|
|
<h:outputLabel value="Fecha creacion"/>
|
|
</f:facet>
|
|
<h:outputLabel value="#{cuentaCorriente.insertedAt}">
|
|
<f:convertDateTime pattern="dd/MM/yyyy HH:mm"/>
|
|
</h:outputLabel>
|
|
</h:column>
|
|
<h:column class="tr">
|
|
<h:commandLink class="f6 link dim br2 ph3 pv2 mb2 dib white bg-green tc" action="#{clienteBean.gotoViewCuentaCorriente(cuentaCorriente)}">
|
|
<li class="fas fa-eye"></li>
|
|
</h:commandLink>
|
|
</h:column>
|
|
</h:dataTable>
|
|
|
|
<!--
|
|
////////////////////////////////////////////////////////////////////
|
|
///////////////////////////Tarjetas de Debito///////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
-->
|
|
<h3 class="f3">Tarjetas de Debito</h3>
|
|
|
|
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3" value="#{clienteBean.cliente.tarjetaDebitoList}" var="tarjetaDebito">
|
|
<h:column>
|
|
<f:facet name="header">
|
|
<h:outputLabel value="Id"/>
|
|
</f:facet>
|
|
<h:outputLabel value="#{tarjetaDebito.id}"/>
|
|
</h:column>
|
|
<h:column>
|
|
<f:facet name="header">
|
|
<h:outputLabel value="Saldo"/>
|
|
</f:facet>
|
|
<h:outputLabel value="#{tarjetaDebito.saldo}"/>
|
|
</h:column>
|
|
<h:column>
|
|
<f:facet name="header">
|
|
<h:outputLabel value="Fecha creacion"/>
|
|
</f:facet>
|
|
<h:outputLabel value="#{tarjetaDebito.insertedAt}">
|
|
<f:convertDateTime pattern="dd/MM/yyyy HH:mm"/>
|
|
</h:outputLabel>
|
|
</h:column>
|
|
<h:column class="tr">
|
|
<h:commandLink class="f6 link dim br2 ph3 pv2 mb2 dib white bg-green tc" action="#{clienteBean.gotoViewTarjetaDebito(tarjetaDebito)}">
|
|
<li class="fas fa-eye"></li>
|
|
</h:commandLink>
|
|
</h:column>
|
|
</h:dataTable>
|
|
|
|
<!--
|
|
////////////////////////////////////////////////////////////////////
|
|
///////////////////////////Tarjetas de Credito//////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
-->
|
|
<h3 class="f3">Tarjetas de Credito</h3>
|
|
|
|
|
|
<h:dataTable class="w-100 pv3" headerClass="fw6 bb b--black-20 tl pb2 pr3" value="#{clienteBean.cliente.tarjetaCreditoList}" var="tarjetaCredito">
|
|
<h:column>
|
|
<f:facet name="header">
|
|
<h:outputLabel value="Id"/>
|
|
</f:facet>
|
|
<h:outputLabel value="#{tarjetaCredito.id}"/>
|
|
</h:column>
|
|
<h:column>
|
|
<f:facet name="header">
|
|
<h:outputLabel value="Limite Nacional"/>
|
|
</f:facet>
|
|
<h:outputLabel value="#{tarjetaCredito.limiteNacional}"/>
|
|
</h:column>
|
|
<h:column>
|
|
<f:facet name="header">
|
|
<h:outputLabel value="Deuda Nacional"/>
|
|
</f:facet>
|
|
<h:outputLabel value="#{tarjetaCredito.deudaNacional}"/>
|
|
</h:column>
|
|
<h:column>
|
|
<f:facet name="header">
|
|
<h:outputLabel value="Limite Internacional"/>
|
|
</f:facet>
|
|
<h:outputLabel value="#{tarjetaCredito.limiteInternacional}"/>
|
|
</h:column>
|
|
<h:column>
|
|
<f:facet name="header">
|
|
<h:outputLabel value="Deuda Internacional"/>
|
|
</f:facet>
|
|
<h:outputLabel value="#{tarjetaCredito.deudaInternacional}"/>
|
|
</h:column>
|
|
<h:column>
|
|
<f:facet name="header">
|
|
<h:outputLabel value="Fecha creacion"/>
|
|
</f:facet>
|
|
<h:outputLabel value="#{tarjetaCredito.insertedAt}">
|
|
<f:convertDateTime pattern="dd/MM/yyyy HH:mm"/>
|
|
</h:outputLabel>
|
|
</h:column>
|
|
<h:column class="tr">
|
|
<h:commandLink class="f6 link dim br2 ph3 pv2 mb2 dib white bg-green tc" action="#{clienteBean.gotoViewTarjetaCredito(tarjetaCredito)}">
|
|
<li class="fas fa-eye"></li>
|
|
</h:commandLink>
|
|
</h:column>
|
|
</h:dataTable>
|
|
</h:form>
|
|
|
|
|
|
<h:form rendered="#{!userBean.isLogged()}">
|
|
<div class="tc">
|
|
<h1 class="f1 tc">Acceso no autorizado</h1>
|
|
<h:commandLink class="f5 tc link w-20 dim br2 ph3 pv2 mb1 mr2 dib white bg-red" value="Volver al index" action="index"/>
|
|
</div>
|
|
</h:form>
|
|
</body>
|
|
</html>
|
|
|
|
|